Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change value of EIP in ollydbg?

Tags:

ollydbg

I double clicked on EIP in register window,but seems un-editable.

Why is EIP special?How can I change it?

alt text

like image 787
COMer Avatar asked Sep 30 '10 07:09

COMer


1 Answers

Find the location you want to set your EIP to, right click and select "New Origin Here". This will reset the EIP to the new address. You can confirm this by inspecting the registers at the top right.

In addition to the reply above, the EIP is basically the pointer to where the current line of execution is. It's used to keep a record of which instruction the program is executing in memory.

like image 147
abnev Avatar answered Sep 20 '22 02:09

abnev