简体   繁体   English

如何反编译Lua文件?

[英]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?我有一个 lua 文件,当在 Notepad++ 中打开时,它显示了英语(未损坏)、可理解文本的混合,以及“NULS”、“ETX”和其他奇怪符号的混合,在我深入尝试反编译之前,如果有可能,我想锻炼一下?

Any help appreciated, thanks.任何帮助表示赞赏,谢谢。

First bytes of the compiled Lua file tell the version where the script was compiled in.编译后的 Lua 文件的第一个字节告诉脚本编译的版本。

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

Alternative project: Chunkspy.替代项目:Chunkspy。 (It's only for 5.1 and 5.0.2.) http://chunkspy.luaforge.net/ (仅适用于 5.1 和 5.0.2。) http://chunkspy.luaforge.net/

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM