lua decrypt and encrypt

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
wahaha
Posts: 26
Joined: Fri Mar 20, 2015 2:04 pm

lua decrypt and encrypt

Post by wahaha »

plz,help me
lua decrypt and encrypt......thank you very much!
MerlinSVK
Posts: 165
Joined: Wed Aug 13, 2014 10:00 am

Re: lua decrypt and encrypt

Post by MerlinSVK »

They are not encrypted, only compiled. For decompilation you can use unLuac.
wahaha
Posts: 26
Joined: Fri Mar 20, 2015 2:04 pm

Re: lua decrypt and encrypt

Post by wahaha »

i used the unluac,but error....
raulpuro
Posts: 62
Joined: Sun Feb 01, 2015 5:31 pm

Re: lua decrypt and encrypt

Post by raulpuro »

wahaha wrote:i used the unluac,but error....


Hi,

Well, I've been testing your files and i think that are compressed with version of lua 5.1, this program works correctly.

Use:
java -jar unluac.jar avalist.lua > avalist.txt


greetings.
wahaha
Posts: 26
Joined: Fri Mar 20, 2015 2:04 pm

Re: lua decrypt and encrypt

Post by wahaha »

thanks,it work well,but it dont surport the chinese characters.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: lua decrypt and encrypt

Post by aluigi »

You can use this quickbms script to make the decompiled lua script readable:
http://aluigi.org/papers/bms/unescape_strings.bms

It looks like the decompiler cannot make the difference between text and binary strings so it preferes to consider them binary and using the hex notation for the non-printable chars.
wahaha
Posts: 26
Joined: Fri Mar 20, 2015 2:04 pm

Re: lua decrypt and encrypt

Post by wahaha »

yes,all ok,thanks again!