| View previous topic :: View next topic |
| Author |
Message |
Simon_says How do I cheat?
Reputation: 0
Joined: 24 Jun 2014 Posts: 2
|
Posted: Tue Jun 24, 2014 4:25 pm Post subject: C# based cheat engine memory scanner |
|
|
Hello.
Is there a way to make a cheat engine based scanner in C#? For example, scanning for a float between 75.0 and 76.0 and to give results(addresses) and to change those results to some other float, just like in cheat engine, and all that in C#? To elaborate, in my C# app I want to scan the memory and change all found floats to some other float, just like when using cheat engine, just so I don't have to go run cheat engine every time I open the app to change some value.
Is there anyone capable of doing something (similar) like this?
Regards.
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Tue Jun 24, 2014 4:26 pm Post subject: |
|
|
Use the same API that Cheat Engine uses to accomplish this.
- ReadProcessMemory
- WriteProcessMemory
- VirtualQueryEx
- VirtualProtectEx
and so on.
_________________
- Retired. |
|
| Back to top |
|
 |
Simon_says How do I cheat?
Reputation: 0
Joined: 24 Jun 2014 Posts: 2
|
Posted: Tue Jun 24, 2014 5:34 pm Post subject: |
|
|
| I'm aware of those functions, but I don't see in C# how to actually scan for 1 value like in cheat engine.
|
|
| Back to top |
|
 |
STN I post too much
Reputation: 43
Joined: 09 Nov 2005 Posts: 2676
|
Posted: Fri Jul 04, 2014 5:56 am Post subject: Re: C# based cheat engine memory scanner |
|
|
| Simon_says wrote: | Hello.
Is there a way to make a cheat engine based scanner in C#? For example, scanning for a float between 75.0 and 76.0 and to give results(addresses) and to change those results to some other float, just like in cheat engine, and all that in C#? To elaborate, in my C# app I want to scan the memory and change all found floats to some other float, just like when using cheat engine, just so I don't have to go run cheat engine every time I open the app to change some value.
Is there anyone capable of doing something (similar) like this?
Regards. |
What you're trying to do is far easier if you just defeat the DMA involved.
However, to answer about how to write a mem scanner. Its really easy if you come down to the basics of it.
Fetch memory, store it in a big buffer/reserved memory, change something in game, fetch memory again and compare with the old stored one and then continue doing this until you are left with very few results.
You don't even need advanced programming skills to accomplish this. I have written a memory scanner in masm (just for fun, was bored at one time) so if it can help you in anyway, i'll gladly show you the source.
I would suggest reading up about DMA or learning pointer scan than making a mem scanner because that is far easier than the latter
_________________
|
|
| Back to top |
|
 |
|