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 


How does Cheat Engine read/write into the Process?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Corruptor
Advanced Cheater
Reputation: 3

Joined: 10 Aug 2011
Posts: 82

PostPosted: Fri Dec 07, 2012 12:43 pm    Post subject: How does Cheat Engine read/write into the Process? Reply with quote

I lately found the "Use [...] Read/Write Process Memory (Will cause slower scans)" option in the cheat engine settings, and as i dont actually know a way to access an other programms memory besides using these functions, i really became curios about how cheat engine actually does that. How is it done? Why is it so much faster?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25788
Location: The netherlands

PostPosted: Fri Dec 07, 2012 1:42 pm    Post subject: This post has 1 review(s) Reply with quote

There are multiple different methods to access the memory of another process.

In this case it just uses KeStackAttachProcess to access the memory, but I could also have used direct memory mapping using the CR3 of the process, or hijack a thread of the target process to open the destination process and copy it to there, etc..


And it's slower because for debugging reasons I do a very simple byte by byte copy memory from target process memory to kernelmode memory, and then from kernelmode memory to the destination process memory. While I could have just mapped the memory of the target to kernelmode physical memory, and then copy that to the destination process. (Or even map the memory to the virtual memory of the destination process and return a pointer to that, but it's not compatible with the rpm emulation I use)

_________________
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
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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