Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to decompile a Lua file?

I have a lua file, which, when opened in Notepad++ shows a mixture of English (uncorrupted), understandable text, as well as a mixture of "NULS" "ETX's" and other strange symbols, before I delve into attempting to decompile this, I want to work out if it is even possible?

Any help appreciated, thanks.

like image 277
S.Stevens Avatar asked Oct 27 '25 10:10

S.Stevens


1 Answers

First bytes of the compiled Lua file tell the version where the script was compiled in.

Try LuaDec. (5.1 - 5.3) https://github.com/viruscamp/luadec

Alternative project: Chunkspy. (It's only for 5.1 and 5.0.2.) http://chunkspy.luaforge.net/

For 5.1 and 5.0: https://sourceforge.net/projects/unluac

like image 123
Spar Avatar answered Oct 30 '25 01:10

Spar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!