| View previous topic :: View next topic |
| Author |
Message |
marco0999 Cheater
Reputation: 0
Joined: 28 Jun 2020 Posts: 29 Location: Italy
|
Posted: Sun Sep 27, 2020 6:37 am Post subject: show debug message |
|
|
Hi,
I have created with ms detours a dll with dll injection for a game that work perfectly.
I have used this code as "template" for another game (both are DRM free) but this time not work or this is my impression.
In short I have tried to call many function adresses (I have used IDA to find the functions) but never trigger.
Now I don' sure if is true that the functions will never called, or my code not work (I suspect the second ...).
I ask if is possible use Cheat Engine or other to add a sort or "Print Debug message".
For example add a message "test" when the function address: 0x043AA30 (sub_43AA30 IDA function name pseudocode) will call by the game.
Is possible do it or similar ?
Thanks !
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25806 Location: The netherlands
|
Posted: Sun Sep 27, 2020 7:38 am Post subject: |
|
|
yes, look at https://forum.cheatengine.org/viewtopic.php?t=615359
Alternatively, you could use breakpoints and in the handler print out info, or even just write to a file
Or you could let your injected dll output something. E.g MessageBoxA(0,"It workes","Caption",0)
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
marco0999 Cheater
Reputation: 0
Joined: 28 Jun 2020 Posts: 29 Location: Italy
|
Posted: Sun Sep 27, 2020 8:38 am Post subject: |
|
|
Hi Dark byte,
Many thanks for your response !!
The idea of add breakpoints seem very interested and easy to do.
I have tried to find my assembly function with Cheat Engine.
First I have found the start (004F314A) and end (004F32B3) adress with IDA.
[/img]
After tried to found it with cheatengine:
But don't find the function.
How I can find the function with CheatEngine to add a breakpoint ?
Thanks !
| Description: |
|
| Filesize: |
222.82 KB |
| Viewed: |
2495 Time(s) |

|
| Description: |
|
| Filesize: |
164.95 KB |
| Viewed: |
2495 Time(s) |

|
|
|
| Back to top |
|
 |
marco0999 Cheater
Reputation: 0
Joined: 28 Jun 2020 Posts: 29 Location: Italy
|
Posted: Mon Sep 28, 2020 2:44 am Post subject: |
|
|
update,
I have inserted this script:
| Code: | debugProcess() -- Attach Debugger to the process.
function debugger_onBreakpoint()
print("hello hacking")
return 0 --Break
end
debug_setBreakpoint(0x004F314A) -- Address where to set breakpoint |
after execute I see a read line at the address: 4F314A so I suppose the breakpoint was inserted.With this script what happen if the game go here ?
I see the message inside the game or the game will break ?
Thanks !
P.S. only to get sure can you confirm if the address "004F314A" is referred to assembly game exe offset (provided by IDA) or is a Physical Memory Adresses ?
|
|
| Back to top |
|
 |
|