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 i can Protect Trainer from decryption
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
dedlyblady
Cheater
Reputation: 0

Joined: 14 Sep 2017
Posts: 33

PostPosted: Mon Jan 15, 2018 7:24 pm    Post subject: How i can Protect Trainer from decryption Reply with quote

Hi guys .. So How i can Protect Trainer from decryption In any way possible ?
Back to top
View user's profile Send private message
FreeER
Grandmaster Cheater Supreme
Reputation: 53

Joined: 09 Aug 2013
Posts: 1091

PostPosted: Mon Jan 15, 2018 8:05 pm    Post subject: This post has 1 review(s) Reply with quote

haha, when you figure it out be sure to let all the game companies paying for things like Themida and Denuvo know so they can pay you instead.

In other words, it's really really really *ing hard to truly do so. To start out don't use CE to generate your trainers, it's open source so it's easy to look up how it works and undo it (and people have created programs/scripts to do so already). Don't use a language you can't compile, and don't use a language like C# where you can easily pull information from the "binary". Use something like C++ to write it, then google for basic anti-debugging code and obfuscation techniques and tools to make it harder.

Or if you can bring yourself to do it try using an interpreted language that's naturally obfuscated like lolcode or brainfuck (see https://dzone.com/articles/most-difficult-and-strangest-programming-languages while they may not be interpreted or originally intended that way many likely have interpreters people wrote for fun). You want it to be interpreted and not compiled in this case otherwise they'd have normal assembly code to work with and that's a hell of a lot easier to reverse than the language itself lmao
Back to top
View user's profile Send private message
TheyCallMeTim13
Wiki Contributor
Reputation: 50

Joined: 24 Feb 2017
Posts: 976
Location: Pluto

PostPosted: Mon Jan 15, 2018 8:53 pm    Post subject: Reply with quote

It's an arms race.
_________________
Back to top
View user's profile Send private message Visit poster's website
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1667

PostPosted: Mon Jan 15, 2018 10:29 pm    Post subject: Reply with quote

Quote:
Hi guys .. So How i can Protect Trainer from decryption In any way possible ?


easy..!!.. DON'T SHARE IT.. Embarassed Embarassed Embarassed

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
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: Tue Jan 16, 2018 2:36 am    Post subject: Reply with quote

encodeFunction is a decent way to stop people from scanning for text as decodeFunction doesn't convert it to text
_________________
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
predprey
Master Cheater
Reputation: 24

Joined: 08 Oct 2015
Posts: 486

PostPosted: Tue Jan 16, 2018 6:19 am    Post subject: Reply with quote

Whatever protection you have is rendered useless once someone with the intention to rip your trainer decides to just scan for changes in the executable memory. Unless you decide to obfuscate your injection code, in which case you are just subjecting the users of your trainer to unnecessary bloat and redundant CPU cycles for your own "benefit", a la denuvo.
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: Tue Jan 16, 2018 6:53 am    Post subject: Reply with quote

use enableDRM 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
dedlyblady
Cheater
Reputation: 0

Joined: 14 Sep 2017
Posts: 33

PostPosted: Wed Jan 17, 2018 9:35 am    Post subject: Reply with quote

@FreeER

Thank you for reply. Well, even if I save an exe file, is it easy to decrypt? Rolling Eyes
Back to top
View user's profile Send private message
OldCheatEngineUser
Whateven rank
Reputation: 20

Joined: 01 Feb 2016
Posts: 1586

PostPosted: Wed Jan 17, 2018 9:46 am    Post subject: Reply with quote

maybe not to be decrypted, but reverse engineered.
_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
Jul 26, 2020
STN wrote:
i am a sweetheart.
Back to top
View user's profile Send private message Visit poster's website
atom0s
Moderator
Reputation: 198

Joined: 25 Jan 2006
Posts: 8516
Location: 127.0.0.1

PostPosted: Fri Jan 19, 2018 3:19 pm    Post subject: Reply with quote

dedlyblady wrote:
@FreeER

Thank you for reply. Well, even if I save an exe file, is it easy to decrypt? Rolling Eyes


If you are using Cheat Engines built in trainer maker, the end result can always be decompiled back to the original table. Using the encodeFunction method DarkByte mentioned will compile the Lua to byte code. However, this can also be decompiled back to the original Lua string, although a bit harder than just getting the table back.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
dedlyblady
Cheater
Reputation: 0

Joined: 14 Sep 2017
Posts: 33

PostPosted: Sat Jan 20, 2018 12:29 am    Post subject: Reply with quote

atom0s wrote:
dedlyblady wrote:
@FreeER

Thank you for reply. Well, even if I save an exe file, is it easy to decrypt? Rolling Eyes


If you are using Cheat Engines built in trainer maker, the end result can always be decompiled back to the original table. Using the encodeFunction method DarkByte mentioned will compile the Lua to byte code. However, this can also be decompiled back to the original Lua string, although a bit harder than just getting the table back.



This means that someone can decrypt the Trainer even after i have set the .exe. format and get the Sorce inside it?
Back to top
View user's profile Send private message
TheyCallMeTim13
Wiki Contributor
Reputation: 50

Joined: 24 Feb 2017
Posts: 976
Location: Pluto

PostPosted: Sat Jan 20, 2018 12:44 am    Post subject: Reply with quote

You really can't hide much of any thing that you generate with open source software. Just one of those funny ways the universe balances things out.

I'm betting that if you just focus on making the best trainers you can, you will get to the point that you might be able to pull this off, but I'm thinking you'll need to learn more about writing programs in general.

_________________
Back to top
View user's profile Send private message Visit poster's website
panraven
Grandmaster Cheater
Reputation: 54

Joined: 01 Oct 2008
Posts: 941

PostPosted: Sat Jan 20, 2018 1:07 am    Post subject: Reply with quote

Not exactly, CE encode function use lua's dump function to convert text source (or internal compiled function) to byte code with striping debug information, then compress and finally convert to acsii85 encoding text (the final random-like text string)
ref: find lua_encodefunction.
Someone may reference CE source to decode the ascii85 encoding and unzip to get the byte code, but with striping debug information, at least the LOCAL variable name is not recoverable.
The GLOBAL variable name is like dll's export function, it still may be a hint to what and how the script do.

You may minify your lua source eg. lua minifier (but this for 5.1, not fully support lua 5.3) before hand so to add a bit more entropy to your source.

_________________
- Retarded.
Back to top
View user's profile Send private message
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1667

PostPosted: Sat Jan 20, 2018 4:12 am    Post subject: Reply with quote

Quote:
Hi guys .. So How i can Protect Trainer from decryption In any way possible ?


Before going any further on this, it may be better to understand first about cryptography.
Thus, ourselves will know exactly what we want about the source code / trainer we have.

Do we want to do Encoding, Obfuscation, Hashing or Encryption with its all.
Google is a best friend then

Cheers...

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 198

Joined: 25 Jan 2006
Posts: 8516
Location: 127.0.0.1

PostPosted: Sat Jan 20, 2018 4:48 am    Post subject: Reply with quote

dedlyblady wrote:
atom0s wrote:
dedlyblady wrote:
@FreeER

Thank you for reply. Well, even if I save an exe file, is it easy to decrypt? Rolling Eyes


If you are using Cheat Engines built in trainer maker, the end result can always be decompiled back to the original table. Using the encodeFunction method DarkByte mentioned will compile the Lua to byte code. However, this can also be decompiled back to the original Lua string, although a bit harder than just getting the table back.



This means that someone can decrypt the Trainer even after i have set the .exe. format and get the Sorce inside it?


Yes.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Goto page 1, 2, 3  Next
Page 1 of 3

 
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