It may be that someone wants to know how to do, here it is:
lua code:
local script = string.dump(
function()
--Content
print("Camouflaging Done.")
end
)
buff=""
for v=1,string.len(script) do --Convert our string into a hex string.
buff=buff..'\\'..string.byte(script,v)
end
file=io.open('encrypted.txt','w') --Output our bytecode into ascii format to encrypted.txt
file:write(buff)
file:flush()
file:close()
Output of example:
Code:
\27\76\117\97\81\0\1\4\4\4\8\0\54\0\0\0\64\67\58\92\85\115\101\114\115\92\66\114\117\110\111\92\68\111\99\117\109\101\110\116\115\92\88\101\110\111\66\111\116\92\83\99\114\105\112\116\115\92\101\110\99\114\121\112\116\46\108\117\97\0\2\0\0\0\5\0\0\0\0\0\0\2\4\0\0\0\5\0\0\0\65\64\0\0\28\64\0\1\30\0\128\0\2\0\0\0\4\6\0\0\0\112\114\105\110\116\0\4\19\0\0\0\67\97\109\111\117\102\108\97\103\105\110\103\32\68\111\110\101\46\0\0\0\0\0\4\0\0\0\4\0\0\0\4\0\0\0\4\0\0\0\5\0\0\0\0\0\0\0\0\0\0\0
How to load this ?
Example:
lua code:
local code = '\27\76\117\97\81\0\1\4\4\4\8\0\54\0\0\0\64\67\58\92\85\115\101\114\115\92\66\114\117\110\111\92\68\111\99\117\109\101\110\116\115\92\88\101\110\111\66\111\116\92\83\99\114\105\112\116\115\92\101\110\99\114\121\112\116\46\108\117\97\0\2\0\0\0\5\0\0\0\0\0\0\2\4\0\0\0\5\0\0\0\65\64\0\0\28\64\0\1\30\0\128\0\2\0\0\0\4\6\0\0\0\112\114\105\110\116\0\4\19\0\0\0\67\97\109\111\117\102\108\97\103\105\110\103\32\68\111\110\101\46\0\0\0\0\0\4\0\0\0\4\0\0\0\4\0\0\0\4\0\0\0\5\0\0\0\0\0\0\0\0\0\0\0'
loadstring(code) ()
If anyone has any other way to do this and want to share with people, feel free :)
Att,
Diabolic