Hooking a client function.

Ask questions about cheating in any games you would like. Does not need to pertain to MicroMacro.
Post Reply
Message
Author
Exempt
Posts: 197
Joined: Wed Jan 20, 2010 9:55 am

Hooking a client function.

#1 Post 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.
User avatar
Administrator
Site Admin
Posts: 5341
Joined: Sat Jan 05, 2008 4:21 pm

Re: Hooking a client function.

#2 Post 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.
Attachments
detours.zip
(1.78 KiB) Downloaded 249 times
Exempt
Posts: 197
Joined: Wed Jan 20, 2010 9:55 am

Re: Hooking a client function.

#3 Post by Exempt »

Thanks for the zip but does detours only work with 32 bit systems, Unless you buy the 64bit version of it?
User avatar
Administrator
Site Admin
Posts: 5341
Joined: Sat Jan 05, 2008 4:21 pm

Re: Hooking a client function.

#4 Post 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.
Post Reply