shellcoded
shellcoded was mostly a easy reversing challenge rather then pwn since you only had to reverse the encoding applied to the shellcode.
Last updated
Was this helpful?
shellcoded was mostly a easy reversing challenge rather then pwn since you only had to reverse the encoding applied to the shellcode.
Last updated
Was this helpful?
The binary does exactly what it says it does, runs your shellcode, but there is obviously a catch.
This code will loop through the shellcode and, for each position, if it the index is an even number it will add 1 * the index to the byte on that position, if it's an odd number, then it adds -1 * the index to the byte. All we have to do to properly encode our shellcode is to do the same process, but subtracting instead of adding.
I wrote the following encoder for my shellcode:
It's notable that I basically copied and pasted the original loop but replaced += with -= beacuse I want to do do the opposite operation.
After generating my shellcode and saving it to a file I called payload.bin, I simply used the following command to send it over.