Buffer Overflow

Run immunity debugger as administrator and add the executable

connect to the machine and check the imput it accepts

nc IP PORT

configure Mona

CTRL F2 for reloading

F9 for run

!mona config -set workingfolder c:\\\\mona\\\\%p

get your base script over

cp /opt/scripts/BoF/base.py .

To run the file use:

./base.py IP port

crash replication and control of EIP

Get your exploit file over

cp /opt/scripts/BoF/exploit.py .

run the below with 400 bytes more than the bytes crashed by base.py so if its 500 add 400 = 900

msf-pattern_create -l 900

Variables to update: