CBWhiz
07-16-2005, 07:01 PM
I want to create a JMP, in memory, to hook a procedure.
To do this I want to create a JMP to my own code.
Using C, I can get the address of the code I want to JMP to as a DWORD.
Looking up JMP online, it's opcode is 0xEA.
So I must replace the code at the hooked location with 0xEA xx xx xx xx.
How do I convert the DWORD memory address into the format needed (xx xx xx xx), and do I need to?
Thanks for the help.
To do this I want to create a JMP to my own code.
Using C, I can get the address of the code I want to JMP to as a DWORD.
Looking up JMP online, it's opcode is 0xEA.
So I must replace the code at the hooked location with 0xEA xx xx xx xx.
How do I convert the DWORD memory address into the format needed (xx xx xx xx), and do I need to?
Thanks for the help.