Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


How To Hook a DLL From A TableFile

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions
View previous topic :: View next topic  
Author Message
w0rst_nitemare
How do I cheat?
Reputation: 0

Joined: 16 Apr 2021
Posts: 5

PostPosted: Fri Dec 10, 2021 3:15 am    Post subject: How To Hook a DLL From A TableFile Reply with quote

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
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

Joined: 09 May 2003
Posts: 25262
Location: The netherlands

PostPosted: Fri Dec 10, 2021 5:49 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
w0rst_nitemare
How do I cheat?
Reputation: 0

Joined: 16 Apr 2021
Posts: 5

PostPosted: Fri Dec 10, 2021 6:26 am    Post subject: Reply with quote

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



Capture.PNG
 Description:
 Filesize:  13.06 KB
 Viewed:  2179 Time(s)

Capture.PNG


Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

Joined: 09 May 2003
Posts: 25262
Location: The netherlands

PostPosted: Fri Dec 10, 2021 7:54 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
w0rst_nitemare
How do I cheat?
Reputation: 0

Joined: 16 Apr 2021
Posts: 5

PostPosted: Fri Dec 10, 2021 8:10 am    Post subject: Reply with quote

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! Very Happy
Edit: Is it possible to change a files permissions with CE?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

Joined: 09 May 2003
Posts: 25262
Location: The netherlands

PostPosted: Fri Dec 10, 2021 8:53 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites