View previous topic :: View next topic |
Author |
Message |
w0rst_nitemare How do I cheat?
Reputation: 0
Joined: 16 Apr 2021 Posts: 5
|
Posted: Fri Dec 10, 2021 3:15 am Post subject: How To Hook a DLL From A TableFile |
|
|
I'm trying to Inject a DLL from my trainer but don't know how to include it in the compiled .exe or or how I would go about injecting it from there. It Injects perfectly if the DLL path is known but i'm not sure how I would go about having it as a part of the compiled .exe and injecting from there.
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 467
Joined: 09 May 2003 Posts: 25702 Location: The netherlands
|
Posted: Fri Dec 10, 2021 5:49 am Post subject: |
|
|
when generating the exe you can add the dll to the "extra files"
if you don't give it an path, it will be in the same folder as the rest of your extracted trainer files (ce.exe)
you can use getCheatEngineDir()..'mydll.dll' to get the path to the dll then
_________________
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 |
|
 |
w0rst_nitemare How do I cheat?
Reputation: 0
Joined: 16 Apr 2021 Posts: 5
|
Posted: Fri Dec 10, 2021 6:26 am Post subject: |
|
|
Dark Byte wrote: | when generating the exe you can add the dll to the "extra files"
if you don't give it an path, it will be in the same folder as the rest of your extracted trainer files (ce.exe)
you can use getCheatEngineDir()..'mydll.dll' to get the path to the dll then |
thank you for the response!
i tried injectDLL(getCheatEngineDir()..'ShitPrimal.dll') and nothing injects, pretty sure im missing something simple but im really stuck
Description: |
|
Filesize: |
13.06 KB |
Viewed: |
2864 Time(s) |

|
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 467
Joined: 09 May 2003 Posts: 25702 Location: The netherlands
|
Posted: Fri Dec 10, 2021 7:54 am Post subject: |
|
|
check the extracted location of your trainer and make sure the dll is there (you can use taskmanager to see where it got extracted to)
Does the injectDLL code get executed ?
_________________
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 |
|
 |
w0rst_nitemare How do I cheat?
Reputation: 0
Joined: 16 Apr 2021 Posts: 5
|
Posted: Fri Dec 10, 2021 8:10 am Post subject: |
|
|
Dark Byte wrote: | check the extracted location of your trainer and make sure the dll is there (you can use taskmanager to see where it got extracted to)
Does the injectDLL code get executed ? |
It turns out the issue was with the DLL permissions so i should be able to everything working.
Also TY for the reply!
Edit: Is it possible to change a files permissions with CE?
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 467
Joined: 09 May 2003 Posts: 25702 Location: The netherlands
|
Posted: Fri Dec 10, 2021 8:53 am Post subject: |
|
|
not sure what you mean with permissions for a DLL, but if it's an anti virus thing it'll be difficult.
If you mean it's UWP crap, then look into using shellExecute and icacls
_________________
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 |
|
 |
|