反編譯 Lua 字節碼的最佳工具? (Best tool(s) for decompiling Lua bytecode?)


問題描述

反編譯 Lua 字節碼的最佳工具? (Best tool(s) for decompiling Lua bytecode?)

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?


參考解法

方法 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.

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.

方法 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...

(by Jonathan PriorRBerteigf3lix)

參考文件

  1. Best tool(s) for decompiling Lua bytecode? (CC BY-SA 3.0/4.0)

#lua #scripting #bytecode #decompiling






相關問題

使用 MSXML2.ServerXMLHTTP 從網頁訪問數據會在 Lua 中返回截斷的數據 (Using MSXML2.ServerXMLHTTP to access data from a web page returns truncated data in Lua)

如何在 VS 2008 中包含 Lua 庫 (How can I include Lua library in VS 2008)

Corona 中的 iPad 式慣性滾動 (iPad-style inertial scrolling in Corona)

Lua cư xử kỳ lạ trên nền tảng PowerPC / LynxOS, tại sao? (Lua behaves weird on PowerPC/LynxOS platform, why?)

我們如何在函數輸入參數中輸入類型值作為對象? (How do we input type value as object in function input parameter?)

反編譯 Lua 字節碼的最佳工具? (Best tool(s) for decompiling Lua bytecode?)

本機 Lua 中的高效可變字節數組 (Efficient mutable byte array in native Lua)

在 Lua 中字符串化對象名稱 (Stringify object name in Lua)

純 Lua 中的全功能正則表達式庫 (Fully-featured regex library in pure Lua)

自我作為參數,並設置範圍? (self as param, and setting scope?)

已經放 } 但錯誤仍然說 } 是預期的? (Already put } but the error still says that } is expected?)

我想使用 HPC 的 gpu 並嘗試 module add CUDA ...但出現錯誤。錯誤是“Lmod 檢測到以下錯誤: (I want to use the gpu of the HPC and try module add CUDA... But errors occurs. The error is "Lmod has detected the following error:)







留言討論