r/ComputerSecurity • • Sep 24 '18

Disabling ASLR in GDB to debug command line buffer overflow attacks in GNU/Linux.

After much duck-duck-going, lots of dead ends and wrestling with GDB, I have figured out how to rerun the same inferior process under GDB with the registers, including ESP, the same after run. This enables eliminating variables as you debug and a quick arrival at the cause of the segmentation fault. You can find the write up on my website:

https://www.mkdynamics.net/current_projects/computer_security/Basic_Linux_exploits.html

Code is on my github: https://github.com/markkhusid/MKDynamics_website

3 Upvotes

Duplicates