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 


Rename lua53.dll

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

Joined: 12 Sep 2020
Posts: 3

PostPosted: Sat Sep 12, 2020 12:39 am    Post subject: Rename lua53.dll Reply with quote

Hello i successfully edited most of the cheat engine source to make it undetected and also edited the driver to my needs but i am facing a problem, i am dealing with an kernel anticheat wich place a callback to every loaded module of any program and they have blacklisted lua53-64.dll so to bypass this i need to rename or disable the load of this module, i tried deleting everything that uses lua on ce source but it also ask me for the module, i am not using any plugin or auto run script, in the folder i only have my .exe (wich is cheat engine) and it only runs if it have the lua module, if not they print me the messagebox, any help is appreciated thank you.


FIXED AND SOLUTION

Well after taking a better look into the source looking about lua dynamic library i found it, i was very ignorant when i din't check the lua folder before making this thread, by the way here is the solution if someone wants to rename the library to bypass this callback: Go to CE source folder then -> LUA folder and open lua.pas edit, at the start of the file you will found this:

Code:
{$IFDEF UNIX}
  {$ifdef darwin}
  LUA_NAME = 'yourlua32.dylib';
  LUA_LIB_NAME = 'yourlua64.dylib';
  {$else}
  LUA_NAME = 'yourlua5.3.so';
  LUA_LIB_NAME = 'yourlua5.3.so';
  {$endif}
{$ELSE}
  {$ifdef cpu64}
    LUA_NAME = 'yourlua64.dll';
    LUA_LIB_NAME = 'yourlua64.dll';
  {$else}
  LUA_NAME = 'yourlua32.dll';
  LUA_LIB_NAME = 'yourlua32.dll';
  {$endif}
{$ENDIF}

type
  Psize_t = ^size_t;

const
  LUA_VERSION = 'Lua 5.3';
  LUA_RELEASE = 'Lua 5.3.1';
  LUA_VERSION_NUM = 503;
  LUA_COPYRIGHT = 'Copyright (C) 1994-2015 Lua.org, PUC-Rio';
  LUA_AUTHORS = 'R. Ierusalimschy, L. H. de Figueiredo, W. Celes';


Rename what do you want to rename by your needs and then build the lua library with Visual Studio to avoid the digital signature check by known anticheats since the original lua dll is signed with cheat engine certificate.


Last edited by zContext on Sat Sep 12, 2020 9:10 am; edited 3 times in total
Back to top
View user's profile Send private message
Csimbi
I post too much
Reputation: 97

Joined: 14 Jul 2007
Posts: 3340

PostPosted: Sat Sep 12, 2020 1:28 am    Post subject: Reply with quote

So, you did all that and you can't rename a simple DLL? Wink
Back to top
View user's profile Send private message
zContext
How do I cheat?
Reputation: 0

Joined: 12 Sep 2020
Posts: 3

PostPosted: Sat Sep 12, 2020 6:28 am    Post subject: Reply with quote

Csimbi wrote:
So, you did all that and you can't rename a simple DLL? Wink


Yes maybe i am stupid and i can't get this work without the lua module or maybe i am missing anything any help?, btw the problem is not rename it the problem is get the exe ask for the renamed dll for me.
Back to top
View user's profile Send private message
panraven
Grandmaster Cheater
Reputation: 62

Joined: 01 Oct 2008
Posts: 959

PostPosted: Sat Sep 12, 2020 6:45 am    Post subject: Reply with quote

I'm not sure, may be there is a setup to static bind lua api function into ce exe?
ie.
dynamic bind:
ce.exe -> load lua.dll on execution -> map api function -> call
static bind:
ce.exe generated with api function inside exe, no dll, directly call

https://www.techiedelight.com/difference-between-static-dynamic-binding-cpp/
but lua is in c while ce is in Delphi

_________________
- Retarded.
Back to top
View user's profile Send private message
zContext
How do I cheat?
Reputation: 0

Joined: 12 Sep 2020
Posts: 3

PostPosted: Sat Sep 12, 2020 7:43 am    Post subject: Reply with quote

panraven wrote:
I'm not sure, may be there is a setup to static bind lua api function into ce exe?
ie.
dynamic bind:
ce.exe -> load lua.dll on execution -> map api function -> call
static bind:
ce.exe generated with api function inside exe, no dll, directly call

but lua is in c while ce is in Delphi


Well since my Pascal experiene is too low and i only experienced it with CE Source it makes me hard to understand the syntax of it, but you are right there should be something that is calling that dll yes or yes since its a dependency that is being called in some line of the code even is you remove the lua things from the source (wich makes dvm not work to load the driver) but my main objective is at least rename the dynamic library because the anticheat detect it by its name (not only by digital signature or byte pattern) so i can solve by loading it by a different name and i will still be able to load the driver via dvm. (sorry for my english i am not using translator but i am still learning english) Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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