Page 1 of 1

Hooking a client function.

Posted: Thu Nov 04, 2010 10:51 pm
by Exempt
I'm trying to figure out how to hook a function in it's simplest form. The function i'm wanting to hooking is a Decrypt function for incoming packets.

I'm looking around for examples atm but I'm a little lost cause most are about hooking completely different things like direct input, there is just to much to them.

If you know any good tutorials that are pretty bare that may cover this please tell me or if you know your please help me.

Re: Hooking a client function.

Posted: Sat Nov 06, 2010 6:53 pm
by Administrator
Use the attached source in your project. You'll use DetourFunc() in this case. I assume you've already found the address of the function(s) you want to hook.

Re: Hooking a client function.

Posted: Tue Nov 09, 2010 4:41 pm
by Exempt
Thanks for the zip but does detours only work with 32 bit systems, Unless you buy the 64bit version of it?

Re: Hooking a client function.

Posted: Thu Nov 11, 2010 7:03 pm
by Administrator
That's not the Microsoft detours that you probably think it is. However, yes, it's designed to target 32-bit softwares (but will run fine on a 64-bit OS). I'm honestly not sure how it will work or might need to be changed to work with 64-bit softwares.