| View previous topic :: View next topic |
| Author |
Message |
zContext How do I cheat?
Reputation: 0
Joined: 12 Sep 2020 Posts: 3
|
Posted: Sat Sep 12, 2020 12:39 am Post subject: Rename lua53.dll |
|
|
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 |
|
 |
Csimbi I post too much
Reputation: 97
Joined: 14 Jul 2007 Posts: 3340
|
Posted: Sat Sep 12, 2020 1:28 am Post subject: |
|
|
So, you did all that and you can't rename a simple DLL?
|
|
| Back to top |
|
 |
zContext How do I cheat?
Reputation: 0
Joined: 12 Sep 2020 Posts: 3
|
Posted: Sat Sep 12, 2020 6:28 am Post subject: |
|
|
| Csimbi wrote: | So, you did all that and you can't rename a simple DLL?  |
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 |
|
 |
panraven Grandmaster Cheater
Reputation: 62
Joined: 01 Oct 2008 Posts: 959
|
Posted: Sat Sep 12, 2020 6:45 am Post subject: |
|
|
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 |
|
 |
zContext How do I cheat?
Reputation: 0
Joined: 12 Sep 2020 Posts: 3
|
Posted: Sat Sep 12, 2020 7:43 am Post subject: |
|
|
| 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)
|
|
| Back to top |
|
 |
|