4- Overwriting EIP
Overwriting the EIP: We use that offset to overwrite the EIP that pointer address.
Now, we're trying to overwrite the EIP. We have found that the offset value is 2003 bytes. That's mean there's 2003 bytes right before you get to the EIP and the EIP itself is 4 bytes long. We're going to overwrite those exact specific 4 bytes.
Let create another python script to overwrite the EIP value by 42424242 (BBBB)
Try to run the payload offset1.py and notice that there's no error. As well as, the immunity debug blink and Access Violation.
Check the value EBP contain 41414141 (AAAA) and notice EIP contain value 42424242 (BBBB).
We have sent only 4 bytes of B and they all landed in EIP. That is mean we control this EIP.
Last updated