HoLLy_HaCKeR How do I cheat?
Reputation: 0
Joined: 24 Feb 2015 Posts: 1 Location: Belgium
|
Posted: Wed Mar 23, 2016 9:34 am Post subject: Finding a .net method in memory, by name |
|
|
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: |
|