Posted: Sat Nov 25, 2006 6:27 am Post subject: MOV (Address Of Code) into EIP
hi, im trying make a script that automatically puts in the eip address for u, but im not very sure what i should do...
Quote:
[ENABLE]
registersymbol(code)
alloc(code, 1024)
code:
CODE GOES HERE
Address EIP should be into:
MOVING THE ADDY INTO EIP HERE
[DISABLE]
dealloc(code)
unregistersymbol(code)
1. do i need to register symbol for Address EIP should be into?
2. which one i the correct code for MOVING THE ADDY INTO EIP HERE
A. Mov Eip, Code (Move Address of Code into Adress of EIP?)
B. Mov EIP, [c0de] (Move value of code into address of EIP?)
C. Mov [EIP], Code (Move address of code into Value of EIP?)
Joined: 09 Aug 2006 Posts: 146 Location: In your washing machine
Posted: Sat Nov 25, 2006 9:20 am Post subject:
you cant change the EIP... if you want to change the return address do it on the stack
the EIP points to the next instruction in a code segment its not to be used to store data, either make a jump, or change the return address in the stack
not sure why you want to change the EIP
or use a different register to store your data.. i assume you wont need the data stored in it for a very long time so you could just replace it with its old value if its static _________________
Give a man a fish; you have fed him for today. Teach a man to fish; and you have fed him for a lifetime.
Dynamic memory is my playground..
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum