On Mon, 9 Jan 2012 19:41:16 +0100
Jan Lieven <[email protected]> wrote:

> ; function to patch is here
> push ebp
> mov ebp, esp
> ; some code
> mov eax, 4; replace this with jmp -8
I made a small mistake here. You'll have to adjust the negative offset
according to the function. Also a short jump has a maximum range of 128
byte. If you need to jump more than that you need a near or far jump,
of course.

Attachment: signature.asc
Description: PGP signature

_______________________________________________
radare mailing list
[email protected]
http://lists.nopcode.org/listinfo.cgi/radare-nopcode.org

Reply via email to