ctf-primer icon indicating copy to clipboard operation
ctf-primer copied to clipboard

Update Binary Exploitation - Stack overflow attack section

Open syreal17 opened this issue 1 year ago • 0 comments

Consider issues with current Stack overflow attack section:

  • Gives source code for vulnerable program and solution exploit, but the return address needed is liable to change, and padding might change between systems as well.
  • Solution exploit uses python3 and print which is unable to output non-printable characters
  • The current working solution: python3 -c "import sys; sys.stdout.buffer.write(b'abcdefghijkl\x76\x11\x40\x00\x00\x00\x00\x00')" | ./vuln1
  • This might be a good first candidate to move to a Gym problem instead of local thing

syreal17 avatar Jan 04 '24 22:01 syreal17