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