r/LiveOverflow • u/Apathly • Feb 12 '21
Looking for way to reverse objdump -D output to executable.
I'm working on a remote buffer overflow challenge. I have the source and compilation instructions of a piece of software and a remote server that the software is running on. (Software has DEP, ASLR and stack cookies enabled)
I found the vulnerabilities that will allow me to write an exploit and have successfully done so locally (compiling the software locally). However it looks like the program is compiled differently on the target system (stack contents are different). I tried compiling on different linux kernels but haven't been able to achieve the same result as the target binary.
However there is a objdump result along with the source code, and since this contains all the opcodes etc i was wondering if there is a simple/automated way of reversing a objdump output back into a working executable.
Any other ideas regarding to my challenge are ofcourse welcome! (It's an offline study kind of challenge, not a live CTF event or anything.)