3 Buffer Overflow
Env setup
1. Mona working directory
2. Run the binary/service
3. Start immunity debugger as admin
4. Attach the processFuzzing
1. Identify crashing point
2. Msf pattern create -l crashpointControl EIP
1. Msf pattern offset -q EIP value
2. Exploit code set offset and observe EIP valueFinding bad chars
1. Generate all bad chars with python
2. Generate bad chars with mona bytearray
3. Mona compare with esp address (or follow esp dump manually)
4. Remove next bad char from payload, fire
5. Generate new mona bytechar with excluded bad char
6. Repeat steps e and f for all bad chars until unmodifiedFind jump esp
Generate shellcode
Grand Finale!
Last updated