Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[C++] In depth, beginner friendly IAT Hooking guide?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
MrGentle
How do I cheat?
Reputation: 0

Joined: 29 Sep 2015
Posts: 7

PostPosted: Fri Apr 22, 2016 9:38 am    Post subject: [C++] In depth, beginner friendly IAT Hooking guide? Reply with quote

Hi, i'm looking for info regarding IAT hooking(With OpenGL as the hooked API)

I have successfully hooked a DLL to a named process, but i have no clue about where to go from here. Currently my DLL does nothing.
What i am trying to achieve is drawing the x/y coordinates of the playerObject onto the screen, but i have no idea on how to hijack the functions of OpenGL.

This is what i currently know about IAT hooking:

    * The method i am hooking must be imported from another module
    * It is achieved through DLL injecting
    * One can find the addresses for the functions trough the "module table" in OllyDbg
    * The method i need to hook is SwapBuffers()


Could anyone write up or link me to a simple but understandable example (with lots of comments) on what the functions of an injected DLL specified for hooking APIcalls actually does, and how it does it?
Keep in mind that i am a complete beginner in this field, and that my C++ skills are on a hobbyist basis.

I'm growing quite frustrated by these google searches resulting in nothing, so anything pointing me in the right direction is greatly appreciated!
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Fri Apr 22, 2016 2:25 pm    Post subject: Re: [C++] In depth, beginner friendly IAT Hooking guide? Reply with quote

MrGentle wrote:
I'm growing quite frustrated by these google searches resulting in nothing, so anything pointing me in the right direction is greatly appreciated!


Not too sure if this is a joke but Google's search results are fine for looking for this subject. Googling for "IAT Hook C++" yields great results on the first page that go into detail on how IAT hooking works as well as example code to get you started.

You can switch to Google's image searching as well to find images that suit your preferences as well.

IAT stands for Import Address Table, if you want to search more specifically.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites