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 


Identify DLLs and the memory regions of them in Unity games

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
marmotas
Newbie cheater
Reputation: 0

Joined: 31 Dec 2014
Posts: 10

PostPosted: Wed Dec 31, 2014 6:56 pm    Post subject: Identify DLLs and the memory regions of them in Unity games Reply with quote

Happy new near everybody!

I have used SWF Memory Dumper to dump the dlls from chrome.exe or plugin-container.exe. I want to create a simple program in C/ C#/ C++ that opens the chrome.exe or plugin-container.exe, like the SWF Memory Dumper and identifies the dlls.

Any help or guidance will be appreciated. Thank you
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Thu Jan 01, 2015 3:39 pm    Post subject: Reply with quote

In C++ you can use:
- CreateToolhelp32Snapshot
- Process32First / Process32Next
- Module32First / Module32Next

These API will help you locate the desired process and loop each module. If you want to dump their memory then you will also need:
- OpenProcess
- ReadProcessMemory

And be sure to cleanup your handles with:
- CloseHandle

In C# you can do this with the Process class.
http://msdn.microsoft.com/en-us/library/system.diagnostics.process%28v=vs.110%29.aspx

You will also need ReadProcessMemory if you plan to dump the memory of the modules etc.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
marmotas
Newbie cheater
Reputation: 0

Joined: 31 Dec 2014
Posts: 10

PostPosted: Thu Jan 01, 2015 5:38 pm    Post subject: Reply with quote

Thanks Very Happy
Back to top
View user's profile Send private message
schaka
How do I cheat?
Reputation: 0

Joined: 11 Feb 2015
Posts: 4

PostPosted: Wed Feb 11, 2015 7:58 am    Post subject: Reply with quote

How is this different from EnumProcessModules()? I think I may have the same problem, because I'm iterating through modules found that way, rather than the way you describe, leading to a difference in modules found in CE and my software.
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Wed Feb 11, 2015 5:47 pm    Post subject: Reply with quote

Just a different set of API accomplishing the same task.

What I mentioned above uses Tlhelp32 API, where as EnumProcessModules makes use of PSAPI. Both accomplish the same thing, just via different API. So it's up to you which one you want to pick/use.

For your problem, you may need to look into EnumProcessModulesEx.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
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