This commit is contained in:
2025-03-24 22:08:34 +01:00
parent 04a5de372e
commit f8f73b47ef
14 changed files with 52 additions and 12 deletions

View File

@@ -0,0 +1,20 @@
# A custom template for binary exploitation that uses pwntools.
# Examples:
# python exploit.py DEBUG NOASLR GDB
# python exploit.py DEBUG REMOTE
from pwn import *
with process("./challenge") as p:
print(p.recvuntil(b'>').decode())
p.sendline("1".encode())
print(p.recvuntil(b'>').decode())
for i in range(3000):
p.sendline("1".encode())
print(p.recvuntil(b'>').decode())
p.sendline(b"584057")
print(p.recvline())
p.interactive()