Skip to content

Instantly share code, notes, and snippets.



Last active May 25, 2018
What would you like to do?
Simple tool script for building memory corruption payloads for exploit development
import struct
import sys
def encode(byte="41_41_41_41"):
return struct.pack("<I",int(byte.replace("_",""),16))
if __name__=="__main__":
payload = ""
for idx,arg in enumerate(sys.argv[1:]):
payload += encode(arg.split("-")[0])*int(arg.split("-")[1])
print payload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.