lua代码反混淆 [英] lua code deobfuscation
问题描述
我最近下载了一些lua代码,我在里面发现的是一些混淆的字符串.这让我想知道那里使用了哪种混淆技术.有人有主意吗?
I've recently downloaded some lua code and what I found inside was some obfuscated string. That made me wonder what sort of obfuscation technique was used there. Does anybody have an idea?
local code='\27\76\117\97\81\0\1\4\4\4\8\0\64\0\0\0\64\67\58\92\85\115\101\114\115\92\65\108\101\120\92\68\101\115\107\116\111\112'
loadstring(code)()
更多(加密的?)代码.
Some more (encrypted?) code.
'\ 196 \ 2 \ 28 \ 66 \ 0 \ 1 \ 198 \ 193 \ 194 \ 2 \ 25 \ 128 \ 129 \ 3 \ 22 \ 64 \ 14 \ 128 \ 197 \ 193 \ 0 \ 0 \ 198 \ 193 \ 195 \ 3 \ 6 \ 2 \ 196 \ 2 \ 220 \ 129 \ 0 \ 1 \ 218'
'\196\2\28\66\0\1\198\193\194\2\25\128\129\3\22\64\14\128\197\193\0\0\198\193\195\3\6\2\196\2\220\129\0\1\218'
推荐答案
看起来根本没有加密.似乎只是一个字节序列.每个反斜杠代表一个带有其字节码的字符.
Doesn't look encrypted at all. Seems like it's just a sequence of bytes. Each backslash represents a character with its byte code.
27是逃脱,76是"L",117是"u",97是"a",依此类推.
27 is escape, 76 is 'L', 117 is 'u', 97 is 'a' and so on.
通过一个简短的脚本运行它会给我这个字符串(符号是特殊字符,例如转义符,标题的开头和null):←LuaQ☺♦♦@ @C:\ Users \ Alex \ Desktop
Running it through a short script gives me this string (symbols are special characters, such as escape, start of heading and null): ←LuaQ ☺♦♦ @ @C:\Users\Alex\Desktop
您可以在 ascii表中查找字节.
更新:一些研究告诉我LuaQ意味着它是预编译的脚本或类似的东西.不过我可能会离开.
Update: A bit of research told me that LuaQ means that it's a precompiled script or something of the sort. I could be way off though.
这篇关于lua代码反混淆的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!