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 


Code injection coding with c++

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

Joined: 05 Aug 2010
Posts: 1

PostPosted: Thu Aug 05, 2010 2:19 am    Post subject: Code injection coding with c++ Reply with quote

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
View user's profile Send private message
justa_dude
Grandmaster Cheater
Reputation: 23

Joined: 29 Jun 2010
Posts: 891

PostPosted: Thu Aug 05, 2010 2:24 am    Post subject: Reply with quote

http://forum.cheatengine.org/viewtopic.php?t=436391&postdays=0&postorder=asc&start=0
Back to top
View user's profile Send private message
iPromise
Grandmaster Cheater
Reputation: -1

Joined: 27 Jun 2009
Posts: 529
Location: Canada

PostPosted: Wed Aug 25, 2010 2:20 am    Post subject: Reply with quote

Alloc new memory each time the game starts?
Back to top
View user's profile Send private message MSN Messenger
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Wed Aug 25, 2010 2:41 am    Post subject: Reply with quote

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
View user's profile Send private message
justa_dude
Grandmaster Cheater
Reputation: 23

Joined: 29 Jun 2010
Posts: 891

PostPosted: Wed Aug 25, 2010 6:37 am    Post subject: Reply with quote

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
View user's profile Send private message
the_undead
Expert Cheater
Reputation: 1

Joined: 12 Nov 2006
Posts: 235
Location: Johannesburg, South Africa

PostPosted: Mon Aug 30, 2010 1:23 pm    Post subject: Reply with quote

http://somebastardstolemyname.wordpress.com/2008/07/27/c-send-hook/
_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
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