<filename>Templates/local/template_exploit.py
#!/usr/bin/env python
# $Id: template_exploit.py,v 1.0 2018/07/08 00:07:01 dhn Exp $

import struct

def p(x):
	return struct.pack("<L", x)

def write(payload):
	f = open("poc.txt", "w")
	f.write(payload)
	f.close()

if __name__ == "__main__":
	# TODO: Change me!
	shellcode = (
	)

	padding = "A" * 666

	# TODO: Change me!
	payload = padding
	payload += p(0xdeadbeef)
	payload += shellcode

	write(payload)
