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 


forcedInjection plugin

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Source -> Plugin development
View previous topic :: View next topic  
Author Message
Dark Byte
Site Admin
Reputation: 332

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

PostPosted: Thu Sep 13, 2012 11:51 am    Post subject: forcedInjection plugin Reply with quote

Here is a plugin that will force load a dll into a target instead of using loadLibrary when usining injectDLL

http://cheatengine.org/plugins/forcedinjection.rar

source in svn: http://code.google.com/p/cheat-engine/source/browse/#svn%2Ftrunk%2FCheat%20Engine%2Fplugin%2Fforcedinjection

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Back to top
View user's profile Send private message MSN Messenger
mgr.inz.Player
I post too much
Reputation: 146

Joined: 07 Nov 2008
Posts: 4109
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Fri Sep 14, 2012 12:04 pm    Post subject: Reply with quote

small bug, I've just found dobitwiseAND=nil in CEPlugin_DisablePlugin function Very Happy
_________________
Back to top
View user's profile Send private message MSN Messenger
Dark Byte
Site Admin
Reputation: 332

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

PostPosted: Fri Sep 14, 2012 12:39 pm    Post subject: Reply with quote

yeah, I copied my old bitwise lua plugin example and worked from there.
Not really a big problem though as there's usually no dobitwiseAND defined anyhow, and your plugin uses a different functionname

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Back to top
View user's profile Send private message MSN Messenger
mgr.inz.Player
I post too much
Reputation: 146

Joined: 07 Nov 2008
Posts: 4109
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Thu Sep 27, 2012 8:19 am    Post subject: Reply with quote

Hi DB.

I've just looked at your forcedinjection plugin. Inside pluginconfig.pas I found:
Code:
function CEPlugin_DisablePlugin:BOOL; stdcall;
begin
  lua_dostring(luavm, 'dobitwiseAND=nil');
  result:=true;
end;


So, after disabling forcedinjection plugin, my dobitwiseAND function (from bitwiseLUAoperations plugin) is nil'ed.

_________________
Back to top
View user's profile Send private message MSN Messenger
Dark Byte
Site Admin
Reputation: 332

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

PostPosted: Thu Sep 27, 2012 8:50 am    Post subject: Reply with quote

Hmm, so your plugin did use the same names.

Anyhow, the bigger bug is that you can not unload the plugin at all.
There is no code where it undoes the modifications to ce's windows api and they will keep pointing to the location the dll was before

In short: Just don't unload, or restart ce afterwards

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Back to top
View user's profile Send private message MSN Messenger
mgr.inz.Player
I post too much
Reputation: 146

Joined: 07 Nov 2008
Posts: 4109
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Thu Oct 04, 2012 5:33 am    Post subject: Reply with quote

anyway, line 595
http://code.google.com/p/cheat-engine/source/browse/trunk/Cheat+Engine/plugin/forcedinjection/pluginconfig.pas

You can remove this line? Thank you.

_________________
Back to top
View user's profile Send private message MSN Messenger
xxhehe
Advanced Cheater
Reputation: 0

Joined: 11 Mar 2015
Posts: 96

PostPosted: Tue Feb 21, 2017 3:47 am    Post subject: Re: forcedInjection plugin Reply with quote

Dark Byte wrote:
Here is a plugin that will force load a dll into a target instead of using loadLibrary when usining injectDLL

http://cheatengine.org/plugins/forcedinjection.rar

source in svn: http://code.google.com/p/cheat-engine/source/browse/#svn%2Ftrunk%2FCheat%20Engine%2Fplugin%2Fforcedinjection

ce6.5.1-6.6.0.1



2017-02-21_172923.png
 Description:
 Filesize:  18.34 KB
 Viewed:  6332 Time(s)

2017-02-21_172923.png


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

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

PostPosted: Tue Feb 21, 2017 6:53 am    Post subject: Reply with quote

yeah, you need to compile it with referencing the lua 5.3 library instead for 6.5.1+
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
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 -> Cheat Engine Source -> Plugin development 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