Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
LolHacksRule
Posts: 865 Joined: Fri Apr 20, 2018 12:41 am
Post
by LolHacksRule » Wed Feb 13, 2019 4:50 am
The middleware game engine commonly has developers using compiled Lua scripts inside game data archives. It's very simple to decompile them after removing the 20 bytes up top of it which has the following info.
Code: Select all
4bytes: BZLA 20bytes: MD5 hash of uncompiled source file used beyond: Compiled Lua file.
Last edited by
LolHacksRule on Tue Oct 26, 2021 1:23 am, edited 2 times in total.
Trippixyz
Posts: 1 Joined: Sat Oct 16, 2021 8:04 am
Post
by Trippixyz » Sat Oct 16, 2021 8:06 am
Hey! Im curious as to how u could decompile the Files, because i wasnt able to.
LolHacksRule
Posts: 865 Joined: Fri Apr 20, 2018 12:41 am
Post
by LolHacksRule » Sun Oct 17, 2021 9:50 pm
Try this .sh script.
Code: Select all
find . -name "*.lua" -exec sh -c 'tail -c +21 "$1" > "$1.ex"; java -jar "UNLUACDIRHERE\unluac.jar" "$1.ex" > "$1.ex.txt"' x {} \;