 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
GigaTexel How do I cheat?
Reputation: 0
Joined: 20 Dec 2023 Posts: 1
|
Posted: Wed Dec 20, 2023 6:47 am Post subject: .net c# not breaking on entrypoint |
|
|
Hi all.
For a specific hack, I need to edit a const-value in memory before the program starts running.
I cannot hex-edit its value in the .exe, because the application has quite a complex amount of detection-mechanisms to detect modifications to the exe. For example, it calculates the MD5 hash of the executable and compares this hash to complex calculations of other file hashes.
My first success was accomplished using dnSpy. I launch the debugger and let int break on entrypoint. I search the memory for the specific string I need, I edit it and let the debugger continue. All works well.
However, I don't want to rely permanently on dnSpy so I was looking to program a launcher in CheatEngine.
First things first I thought, and I wrote this line of code to load up the exe but make it break on entrypoint.
| Code: | | createProcess("C:\\path\\file.exe",null,true,true) |
Unfortunately, this does not work. The application just loads as it would when starting it through windows explorer
But when doing the same thing with the notepad.exe, it correctly halts on entrypoint
| Code: | | createProcess("C:\\Windows\\System32\\notepad.exe",null,true,true) |
Anything I am missing?
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
|
| Back to top |
|
 |
|
|
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
|
|