View previous topic :: View next topic |
Author |
Message |
Odecey Master Cheater
Reputation: 1
Joined: 19 Apr 2007 Posts: 259 Location: Scandinavia
|
Posted: Sun Nov 30, 2008 3:47 pm Post subject: Hooking event? |
|
|
I was wondering if its possible to hook events like textchanged and click in C++? I would also like to know how I can get the address of a user defined function in a program. Thanks in advance =).
_________________
Never confuse activity with productivity. You can be busy without a purpose, but what's the point?- Rick Warren |
|
Back to top |
|
 |
Mindw0rk Newbie cheater
Reputation: 0
Joined: 07 Oct 2007 Posts: 16
|
Posted: Sun Nov 30, 2008 3:57 pm Post subject: |
|
|
Well you could hook click internally by writing your hook in window procedure under certain message, because a click on a client area of some window means that window's procedure recieves a message not sure what you mean with textchanged though, In c++ i believe you could do it the same way by writing process memory perharps, never done it myself. But it sure would be different since it is not just some API, well atleast that's what I think. And you can get adress of user functions by debugging.
_________________
Your paradise is my hell. |
|
Back to top |
|
 |
BirdsEye Advanced Cheater
Reputation: 0
Joined: 05 Apr 2008 Posts: 94
|
Posted: Sun Nov 30, 2008 4:15 pm Post subject: |
|
|
I'm not sure what you mean by 'textchanged' but for the 'click' part: Maybe you should look into SetWindowsHookEx (WH_MOUSE)
|
|
Back to top |
|
 |
Odecey Master Cheater
Reputation: 1
Joined: 19 Apr 2007 Posts: 259 Location: Scandinavia
|
Posted: Sun Nov 30, 2008 4:20 pm Post subject: |
|
|
When you say "And you can get adresses of user defined functions by debugging"? do you mean looking at it through disassemblers like IDA? I've tried using this before, but it's confusing. A little more detailed description on what to do would be appreciated.Also, by textchanged i mean the event that occurs when the text within a certain control in a program changes.
Edit: When i say click event, i mean the click event associated with a specific control.
_________________
Never confuse activity with productivity. You can be busy without a purpose, but what's the point?- Rick Warren |
|
Back to top |
|
 |
Mindw0rk Newbie cheater
Reputation: 0
Joined: 07 Oct 2007 Posts: 16
|
Posted: Sun Nov 30, 2008 7:21 pm Post subject: |
|
|
the text is stored in a buffer, for example in dialog all controls will be at the start of dialogbox call since it initializes dialog at the start, you can find adresses of those buffers there it will look like PUSH address and then change it externally with some program of yours or internally with debugger, what i meant by debugging is to reverse the program, it can't be described in detail , or in some fixed algorithm what you should do, unless its for specific target. You trace the code until you find what you need in most basic way, ofcourse this is newbish way of doing it, reversing is a separate field on it's own.
You could check out Olly debbuger, IDA is good for dissasemler not for debugging ( my opinion ) you can use whatever gets job done for you. and if you want to learn reversing then start in some place like ARTeam, tuts4you , or any other RE related site. Also you could try gamedeception, that one is more technical board, also for gamehacking, but they dont like noobs so be warned.
This is for user functions, because you can never know where they will be, for APIs you could use hooking engine by deroko , check it out to learn how it works. all the mentioned things you can find via google. Maybe someone else has done it and will show you another, better way how to do it though i doubt it.
_________________
Your paradise is my hell. |
|
Back to top |
|
 |
|