Raised This Month: $ Target: $400
 0% 

Dynamic detouring library


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
pRED*
Join Date: Dec 2006
Old 05-25-2010 , 19:26   Re: Dynamic detouring library
Reply With Quote #21

Recon: When copy_bytes is passed 0 as the second parameter it will return a count of how many bytes need to be copied.

The third parameter (6) is how many bytes of space we are going to be overwriting, and copy_bytes will find the next instruction boundary at or beyond 6, so that we only copy whole instructions. (Leaving half an instruction at the source wouldn't be pretty).

You are absolutely correct with the fixing jump/call code!

Keeper: Yes, he's using the 6 byte version of jump.
pRED* is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:09.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode