View previous topic :: View next topic |
Author |
Message |
arsalanawan How do I cheat?
Reputation: 0
Joined: 05 Aug 2010 Posts: 1
|
Posted: Thu Aug 05, 2010 2:19 am Post subject: Code injection coding with c++ |
|
|
I was wondering how can i code code injection with c++ like cheat engine does.
I can create jump and make the code from a memory. But the problem is when i want to jump back to the address which is actually dynamic and changes every time i restart the game.
so how can i code to jump back to the real memory that is dynamic memory.
Can u give an example.
Thanks
|
|
Back to top |
|
 |
justa_dude Grandmaster Cheater
Reputation: 23
Joined: 29 Jun 2010 Posts: 891
|
|
Back to top |
|
 |
iPromise Grandmaster Cheater
Reputation: -1
Joined: 27 Jun 2009 Posts: 529 Location: Canada
|
Posted: Wed Aug 25, 2010 2:20 am Post subject: |
|
|
Alloc new memory each time the game starts?
|
|
Back to top |
|
 |
Slugsnack Grandmaster Cheater Supreme
Reputation: 71
Joined: 24 Jan 2007 Posts: 1857
|
Posted: Wed Aug 25, 2010 2:41 am Post subject: |
|
|
Code addresses are rarely dynamic, only data variables that were allocated on the fly. I suspect you are doing something wrong. If you really are wanting to jump back to a dynamic address though, simply store the pointer in a variable and then do jmp dword ptr ds:[LALA] or whatever.
|
|
Back to top |
|
 |
justa_dude Grandmaster Cheater
Reputation: 23
Joined: 29 Jun 2010 Posts: 891
|
Posted: Wed Aug 25, 2010 6:37 am Post subject: |
|
|
iPromise wrote: | Alloc new memory each time the game starts? |
If you're injecting w/ a dll, the memory will be allocated each time the dll is injected. If you're using a code-cave w/ writeprocessmem, there's no need. If you're using virtualalloc or some such, then you will need to alloc each time the game starts.
|
|
Back to top |
|
 |
the_undead Expert Cheater
Reputation: 1
Joined: 12 Nov 2006 Posts: 235 Location: Johannesburg, South Africa
|
|
Back to top |
|
 |
|