lua code deobfuscation

后端 未结 6 1006
甜味超标
甜味超标 2021-01-07 08:54

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 anybo

6条回答
  •  有刺的猬
    2021-01-07 09:28

    Instead of trying to just hand you a simple answer, I'd like to inform you some things to know if you encounter stuff like this along the way.

    This kind of obfuscation isn't very secure and is actually from an ASCII table. Usually, these kinds of obfuscations are made in Lua 5.1 and can be easily made with a :byte and table.concat. You can simply reverse this code with a more powerful version of Troy's explanation that can bypass most security around it:

    function loadstring(input)
       print(input)
    end
    

    So I hope you get some idea on how this stuff works. As stated before, this is can be replicated by using :byte and table.concat usage.

提交回复
热议问题