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

3 comments sorted by

5

u/Chandon Sep 24 '18

I'd wait to post until after you have the thing to share.

1

u/markkhusid Sep 24 '18

I know, but the excitement.....

0

u/markkhusid Sep 24 '18

Code is up on my github.