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 


EncodeLuaScriptExtension

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Extensions
View previous topic :: View next topic  
Author Message
mgr.inz.Player
I post too much
Reputation: 217

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

PostPosted: Mon Dec 24, 2018 9:00 am    Post subject: EncodeLuaScriptExtension This post has 1 review(s) Reply with quote

EncodeLuaScriptExtension

How it works?

Paste your script on the left side, e.g.:
Code:
print("This was a triumph!")
print("I'm making a note here:")
print("Huge success!")


Press "Convert" button. You will get something like this on the right side:
Code:
local script32bit = [===[c-oWpDNPJ!ketlRCB=/U!otB)5ypT38s!d+2p%I77m#FQaA0tBU_;+jU_/BZ8/5xsAZ#@.1[l/OS^Al}qRhM!7LkyQ%wmP_#A1a,g[5Go)%ga!MHUH9@/0JA#O%zxbf9oveo3lAMru+26$[t7X=m)cacOdLYH[h5$N?-;fC2![,8-7]===]
local script64bit = [===[c-oWpDNPJ!ketlRCB=/U!NS2(5ypT38s!d+2p%I77m#FQaA0tBU_;+jU_/BZ8/5xsAZ#@.1[l/OS^Al}qRhM!7LkyQ%wmP_#A1a,g[5Go)%ga!MHUH9@/0JA#O%zxbf9oveo3lAMru+26$[t7X=m)cacOdLYH[h5$N?-;fC2!_h94R]===]

if   cheatEngineIs64Bit() then
     decodeFunction(script64bit)()
else decodeFunction(script32bit)()
end






Download installer:
https://docs.google.com/uc?authuser=0&id=1xag2cNYHQ6tiYUE9kWUyjwD2oLvXgwy7&export=download


Download zip:
https://docs.google.com/uc?authuser=0&id=1abb_jE2YmAwAKf72VmmrjjTV-RoUHzny&export=download

_________________
Back to top
View user's profile Send private message MSN Messenger
AylinCE
Grandmaster Cheater Supreme
Reputation: 30

Joined: 16 Feb 2017
Posts: 1227

PostPosted: Tue Dec 25, 2018 11:39 am    Post subject: Reply with quote

Hello there @mgr.inz.Player
You've been gone a long time. I thought you broke up. Sad
Thanks for the example you gave above.

and I have a question:
Can the sample you give us be solved?
So is it possible to steal?


Thank you for your Current share.

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
predprey
Master Cheater
Reputation: 24

Joined: 08 Oct 2015
Posts: 486

PostPosted: Wed Dec 26, 2018 4:39 am    Post subject: Reply with quote

Aylin wrote:
Hello there @mgr.inz.Player
You've been gone a long time. I thought you broke up. Sad
Thanks for the example you gave above.

and I have a question:
Can the sample you give us be solved?
So is it possible to steal?


Thank you for your Current share.


I believe that has been discussed before here: https://forum.cheatengine.org/viewtopic.php?t=595142

Ultimately, it is still possible to steal if someone is so determined to, but at the least it should prevent script kiddies from decrypting and using your important functions.
Back to top
View user's profile Send private message
AylinCE
Grandmaster Cheater Supreme
Reputation: 30

Joined: 16 Feb 2017
Posts: 1227

PostPosted: Wed Dec 26, 2018 5:34 am    Post subject: Reply with quote

predprey wrote:

I believe that has been discussed before here: https://forum.cheatengine.org/viewtopic.php?t=595142

Ultimately, it is still possible to steal if someone is so determined to, but at the least it should prevent script kiddies from decrypting and using your important functions.



Yeah, I followed that forum. I concur.
Mine's just a hope. Smile
But the above coding is more charismatic Smile
I published it and shared it immediately.
Hopefully more powerful encodings will be available.
Because a project to complete, can take 2 days.
It's not nice to be stolen.

New Proge:

https://www.youtube.com/watch?v=rGrItDGFSwQ&list=PL1yPHiegVpRoWx7jy6ecTqmbejos75O37&index=77&t=0s

I'm a little crazy. Must be fun designs Smile

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Wed Dec 26, 2018 10:04 am    Post subject: Reply with quote

Aylin wrote:

Can the sample you give us be solved?
So is it possible to steal?


it will never return to textformn so idiots doing textscans won't be able to do it, but those that have hours of time reconstructing your code and actions, sure they can.

but you can of course make that a lot more difficult if you recompile lua with a randomized order of the opcodes enum (just keep in mind decodeFunction won't work for scripts made by the normal ce releases 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
noobes
Advanced Cheater
Reputation: 0

Joined: 17 Dec 2018
Posts: 89

PostPosted: Fri Dec 28, 2018 5:36 am    Post subject: Reply with quote

Your download links don't works like the cetrainers don't works
Back to top
View user's profile Send private message
AylinCE
Grandmaster Cheater Supreme
Reputation: 30

Joined: 16 Feb 2017
Posts: 1227

PostPosted: Fri Dec 28, 2018 7:07 am    Post subject: Reply with quote

NoobesGT wrote:
Your download links don't works like the cetrainers don't works


This link is working.

Download zip:
https://docs.google.com/uc?authuser=0&id=1abb_jE2YmAwAKf72VmmrjjTV-RoUHzny&export=download


and this will also help you for use.

https://www.youtube.com/watch?v=rGrItDGFSwQ&list=PL1yPHiegVpRoWx7jy6ecTqmbejos75O37&index=77&t=0s

Enjoy it!

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Scorm
Newbie cheater
Reputation: 0

Joined: 06 Dec 2018
Posts: 11

PostPosted: Sun Jan 06, 2019 12:47 pm    Post subject: Reply with quote

A GUI to call 2 existing CE functions ? I guess it's good for beginners but I thought you had made your own encryption/decryption in the first place when clicking the topic.
Back to top
View user's profile Send private message
st_of_dec
Newbie cheater
Reputation: 0

Joined: 04 Jan 2018
Posts: 10
Location: AUS

PostPosted: Sun Mar 17, 2019 8:14 am    Post subject: Reply with quote

hey, can you get negative value with your dll file?
here is what I get after replacing dll file.

Code:

local t = {-2341,34132,-13}
local t2 = {a = 1, b = {c = -312.000,d = -4222}}
local t3 = {a = 1, b = {c = -312.100,d = -4222.9898977}}
print(t[1])
print(t2.b.c)
print(t3.b.c)
print(t3.b.d)

--  2341, supposed to be negative
--  312, supposed to be negative
--  -312.1
--  -4222.9898977


_________________
gta5 creator st_of_dec
Back to top
View user's profile Send private message
Rodriguez
How do I cheat?
Reputation: 0

Joined: 28 Sep 2019
Posts: 4

PostPosted: Sat Sep 28, 2019 2:50 pm    Post subject: Reply with quote

Dark Byte wrote:
Aylin wrote:

Can the sample you give us be solved?
So is it possible to steal?


it will never return to textformn so idiots doing textscans won't be able to do it, but those that have hours of time reconstructing your code and actions, sure they can.

but you can of course make that a lot more difficult if you recompile lua with a randomized order of the opcodes enum (just keep in mind decodeFunction won't work for scripts made by the normal ce releases then)


sorry but where is protection from viewing through search text-browse memory about which you write?...

maybe I did something wrong, but I compiled lua-script(fully written in lua, no AA in cheat table) as explained in this topic(and .exe and through .cetrainer) and all functions at a hand via memory view...

please explain what this protection is or i did something completely wrong? thx in advance

Edit:
I meand - maybe some hard reading or unknown symbol added(that replaced my lua code) with this encoding 32/64...
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Sat Sep 28, 2019 3:27 pm    Post subject: Reply with quote

the protection is that if you write
Code:

while x<2 do x=x+1 end

that text will not be in the memory, as it will be raw bytecode

But keep in mind that code like
Code:

print("bla")

will show the text bla, just not the print part

So don't think that using autoAssemble script using lua is going to be any more difficult to read, you have to emulate what that script does instead using manual allocations, writeBytes, etc...

_________________
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
Rodriguez
How do I cheat?
Reputation: 0

Joined: 28 Sep 2019
Posts: 4

PostPosted: Sat Sep 28, 2019 4:05 pm    Post subject: Reply with quote

Dark Byte wrote:
the protection is that if you write
Code:

while x<2 do x=x+1 end

that text will not be in the memory, as it will be raw bytecode

But keep in mind that code like
Code:

print("bla")

will show the text bla, just not the print part

So don't think that using autoAssemble script using lua is going to be any more difficult to read, you have to emulate what that script does instead using manual allocations, writeBytes, etc...


thx for the answer

but pls post the example of usage yr code("while x<2 do x=x+1 end"), thx

I spent some long time coding from zero at lua.. so maybe this is that way which can protect my code not AA scripts from dirty copying... again thx for yr answer
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 Extensions 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