| View previous topic :: View next topic |
| Author |
Message |
gizdaman How do I cheat?
Reputation: 0
Joined: 22 Jun 2012 Posts: 1
|
Posted: Fri Jun 22, 2012 4:32 pm Post subject: How can I run a function after I got the adress of it? |
|
|
| Hey, I am new to CH and programming itself, and I wonder, how I can run a function after I got the adress of it. Using CH, I found the values I was looking for, and the address of the function that accesses/writes to it. Now I want to run somehow that function. I tried in c++ but I didn't succeed. Thanks in advance.
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25832 Location: The netherlands
|
Posted: Fri Jun 22, 2012 4:44 pm Post subject: |
|
|
Do a code injection in a often called routine by the same thread.
When signaled (like a certain byte set to 1) it should call that function using the proper addresses and regisster values. (ECX, given parameters, etc...)
The register values (class pointer for example) will be different for each object that function affects if it's shared code, so you'll have to do some more hooking to find out what proper values are
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
Fresco Grandmaster Cheater
Reputation: 4
Joined: 07 Nov 2010 Posts: 600
|
Posted: Fri Jun 22, 2012 5:44 pm Post subject: |
|
|
you need the whole function, not just the code that affects a certain address.
like Dark Byte said, auto assemble and call function, not jump to code that affects address.
depending on some other addresses the function may return to the point from where it was called without even executing your code.
it's recommended that you execute the function by playing the game till happens that the code itself requires the execution of your code not by calling the function because again, there may be some factors that prevent the code from being executed.
_________________
... Fresco |
|
| Back to top |
|
 |
|