Encryption 反编译编译编译成ASCII的lua字符串(文本)
我正在尝试解密加密的lua代码,因为: 第一:我不想从乞讨中创造它。 第二:听起来很有趣 我在Visual Basic 2013上创建了一个简单的程序,它从一个文件中执行lua函数,大家可以看到,下面的文件包含ASCII字节中定义为“代码”的加密代码,我的lua代码将其转换回原始形式 问题是:我可以翻译一些单词和符号,但它仍然非常混乱,因为这是一个lua代码,包含数字、符号和单词 程序的文件,如加密的代码和要解密的代码,可以在我的要点中找到:;所以你们可以复制我目前的进展 我需要建议来改进我下面的代码,因为到目前为止,它解密了一些单词,但其他仍然只是数字和一些符号。看起来还是一团糟Encryption 反编译编译编译成ASCII的lua字符串(文本),encryption,lua,Encryption,Lua,我正在尝试解密加密的lua代码,因为: 第一:我不想从乞讨中创造它。 第二:听起来很有趣 我在Visual Basic 2013上创建了一个简单的程序,它从一个文件中执行lua函数,大家可以看到,下面的文件包含ASCII字节中定义为“代码”的加密代码,我的lua代码将其转换回原始形式 问题是:我可以翻译一些单词和符号,但它仍然非常混乱,因为这是一个lua代码,包含数字、符号和单词 程序的文件,如加密的代码和要解密的代码,可以在我的要点中找到:;所以你们可以复制我目前的进展 我需要建议来改进我下面
function tablelength(T)
local count = 0
for _ in pairs(T) do count = count + 1 end
return count
end
local code = {SOME COMPILED LUA CODE} //Mine is too extensive to be added here
local finalString = "Yay! :"
local codeLength = tablelength(code)
local text = nil
for i = 1, codeLength do
local letter = string.char(code[i])
if (letter:match("%w")) then
elseif (letter:match("%d")) then
elseif (letter:match("%s")) then
elseif (letter:match("%p")) then
elseif (letter:match("%(")) then
elseif (letter:match("%)")) then
elseif (letter:match("%.")) then
elseif (letter:match("%+")) then
elseif (letter:match("%*")) then
elseif (letter:match("%@")) then
elseif (letter:match("%?")) then
elseif (letter:match("%^")) then
elseif (letter:match("%$")) then
elseif (letter:match("%-")) then
elseif (letter:match("%=")) then
elseif (letter:match("%_")) then
elseif (letter:match("%[")) then
elseif (letter:match("%]")) then
elseif (letter:match("%:")) then
elseif (letter:match("%,")) then
elseif (letter:match("%#")) then
elseif (letter:match("%&")) then
else
letra = string.byte(letter)
end
finalString = finalString .. letra
end
print(finalString)
我希望我有一个完整干净的lua源代码。我不理解您的问题或疑问。也许您只是在寻找改进现有代码的建议?如果是这样的话,这个问题属于你要寻找的是“反编译”,而不是解密@Phrogz由于其扩展,我无法添加整个代码,因此我添加了“反编译程序代码”,但没有我试图反编译的编译代码。请发布一些示例输入、您期望的输出以及您得到的结果。@Phrogz刚刚编辑了主线程。