用于反编译Lua字节码的最佳工具?

用于反编译Lua字节码的最佳工具?

问题描述:

我真的很难找到一个可以正常工作的Lua字节码反编译器.我正在尝试反编译我在游戏中找到的一些脚本文件,但它们似乎已被编译,但似乎并非不可能解码.什么是反编译Lua二进制文件的最佳工具?

I am really having trouble finding a good working Lua bytecode decompiler. I'm trying to decompile some scripting files I found in a game but they appear to be compiled, yet don't seem impossible to decode. What's the best tool to decompile Lua binaries?

看起来像 LuaDec 本身是最后一个已针对Lua 5.0.2更新.针对Lua 5.1.x字节码的新版本已发布为 LuaDec51 .如f3lix所述, Wiki 始终是开始寻找资源的好地方. 邮件列表也是一个好地方.

It looks like LuaDec itself was last updated for Lua 5.0.2. A new version targeting Lua 5.1.x bytecode has been released as LuaDec51. The wiki is always a good place to start looking for resources as mentioned by f3lix. The mailing list is also a good place to ask.

请注意,向字节码加载器添加混淆甚至加密相对容易.两者都不需要对Lua核心进行编辑.如果您要分析的系统已采取任何这些措施,则可能需要做更多的工作.

Do note that it is relatively easy to add obfuscation or even encryption to the bytecode loader. Neither would require edits to the Lua core. If the system you are analyzing has taken any of those measures, you might have more work to do.