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

时间:2023-01-23 00:28:24

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?

我真的很难找到一个好的工作Lua字节码反编译器。我正在尝试反编译我在游戏中发现的一些脚本文件,但它们似乎是编译的,但似乎无法解码。反编译Lua二进制文件的最佳工具是什么?

3 个解决方案

#1


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.

看起来LuaDec本身最后更新为Lua 5.0.2。针对Lua 5.1.x字节码的新版本已发布为LuaDec51。 wiki总是一个开始寻找f3lix提到的资源的好地方。邮件列表也是一个值得问的好地方。

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.

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

#2


The Lua Tools page of the lua-users.org wiki lists a couple of decompilers. Your choice will depend on which Lua version your are trying to decompile...

lua-users.org wiki的Lua Tools页面列出了几个反编译器。您的选择将取决于您尝试反编译的Lua版本...

#3


It seems there was some tool named LuaDec, but the site seems to be down. There's another decompiler available here, it seems to be good for massive decompiling.

似乎有一些名为LuaDec的工具,但该网站似乎已经失效。这里有另一个反编译器,它似乎适用于大规模反编译。

#1


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.

看起来LuaDec本身最后更新为Lua 5.0.2。针对Lua 5.1.x字节码的新版本已发布为LuaDec51。 wiki总是一个开始寻找f3lix提到的资源的好地方。邮件列表也是一个值得问的好地方。

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.

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

#2


The Lua Tools page of the lua-users.org wiki lists a couple of decompilers. Your choice will depend on which Lua version your are trying to decompile...

lua-users.org wiki的Lua Tools页面列出了几个反编译器。您的选择将取决于您尝试反编译的Lua版本...

#3


It seems there was some tool named LuaDec, but the site seems to be down. There's another decompiler available here, it seems to be good for massive decompiling.

似乎有一些名为LuaDec的工具,但该网站似乎已经失效。这里有另一个反编译器,它似乎适用于大规模反编译。