On Mon, 9 Jan 2012 17:17:42 -0200
Rafael de Oliveira Costa <[email protected]> wrote:

> I think that your another approach about using .data segment is
> similar to "Phrack 66: manual binary mangling with radare" mentioned
> before. but I really need to add an instruction in some specific
> places in a .text segment.
In this case how about writing a wrapper application that debugs the
target, places breakpoints at the desired offsets, does it's magic and
then resumes execution?
That would save you the trouble of fixing all non-relative offsets.
The downsides are a performance loss and potential anti-debug tricks
you'd need to fool...
Another approach would be DLL injection on Windows or LD_PRELOAD on
*nix if the target is part of a loaded library.
I hope this helps, since I ran out of ideas.

Attachment: signature.asc
Description: PGP signature

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

Reply via email to