How to call a relative address? #341
-
I'm trying catch the RIP in the code with this: call +0 ;0xE8 00 00 00 00
pop RAX Therefore if I use the Notice that I can't use labels in the code without rewrite my tool, for me, should be more easy just manually put the 0xE8 00 00 00 00 in the memory after encode instead rewrite. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
If you're using the Assembler C# class you can just call |
Beta Was this translation helpful? Give feedback.
If you're using the Assembler C# class you can just call
call(Label)
and put the label after the call instruction. But since you say you can't use labels, you can just add the bytes yourself withdb(0xE8,0,0,0,0)