Binary Gauntlet 1
Last updated
Was this helpful?
Last updated
Was this helpful?
Okay, time for a challenge. gauntlet nc mercury.picoctf.net 32853
Decompile the binary using Ghidra:
main
function:
Alright, so same program as "Binary Gauntlet 0" except the flag is not printed on a crash and the memory address of local_78
is printed at the beginning of the program.
We can write some shellcode to local_78
, pad out to the return address, and overwrite the return address with the address of local_78
that is printed at the beginning.
Run the solution and then run cat flag.txt
to get the flag.
c6e16a1b4182c2801ed657d4c482af88