Page 1 of 1

FASM: Get IP Register Value

Posted: Thu Dec 27, 2007 11:04 am
by matias_beretta
Hello, thanks for reading my topic. I think the title of my topic says everything :D

Posted: Thu Dec 27, 2007 12:10 pm
by bluecode
Do a call get (e/r)ip from the stack and then return. Then you will get the (e/r)ip after the call instruction.There is no direct way to get the content of this register.

thanks

Posted: Thu Dec 27, 2007 1:55 pm
by matias_beretta
thanks ;)

Posted: Thu Dec 27, 2007 2:36 pm
by Craze Frog
Wouldn't this suffice? (Note: I'm guessing.)

Code: Select all

mov eax, $

reply

Posted: Thu Dec 27, 2007 3:46 pm
by matias_beretta
yes, i think it would work, but $ is very assembler-specific. thanks anyway!