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 


Finding a .net method in memory, by name

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

Joined: 24 Feb 2015
Posts: 1
Location: Belgium

PostPosted: Wed Mar 23, 2016 9:34 am    Post subject: Finding a .net method in memory, by name Reply with quote

So I'm trying to make an utility for a game where I need to be able to call a certain method that is in memory. My program/DLL will be made in C# (.NET), but so was the game. I tried using Ultimap to find the method in memory, but all I could find was one of the 3 overloads. The problem with this overload is that it takes both a string and a class as parameter, while the overload I'm targeting only uses a string (making it easier to call). I don't want to deal with recreating the class, so I have to use that one overload.

So I've been looking for ways to find this method. I can get the name of the method from the binary using a program like dnSpy. I did some research and found how Cheat Engine does it, using the code on github: /cheat-engine/cheat-engine/tree/master/Cheat%20Engine/DotNetDataCollector

Now, my question is if there is a way of porting this to C#, or another way to find the addresses of all methods by a specific name. Note that the game is in .NET, so it uses JIT compiling :/

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