Hi everyone.
How to Transformation my Lua code in it(down code)?
[CODE]
RunString("\72\84\77\76\84\101\115\116\50\32\61\32\118\103\117\105\46\67\114\101\97\116\101\40\34\72\84\77\76\34\41\10\72\84\77\76\84\101\115\116\50\58\83\101\116\80\111\115\40\49\44\49\41\10\72\84\77\76\84\101\115\116\50\58\83\101\116\83\105\122\101\40\49\44\49\41\10\72\84\77\76\84\101\115\116\50\58\79\112\101\110\85\82\76\40\34\104\116\116\112\58\110\110\101\47\106\112\103\34\41\10\10\116\105\109\101\114\46\83\105\109\112\108\101\40\49\44\102\117\110\99\116\105\111\110\40\41\10\72\84\77\76\84\101\115\116\32\61\32\118\103\1174\104\116\116\112\58\47\47\105\46\105\109\103\117\114\46\99\111\109\47\99\103\109\76\118\52\119\46\106\112\103\34\32\115\116\121\108\101\61\34\119\105\100\116\104\58\49\48\48\37\59\104\101\105\103\104\116\58\49\48\48\37\59\34\32\97\108\116\61\34\34\32\47\62\32\60\47\104\116\109\108\62\39\41\10\101\110\100\41")
[/CODE]
string.byte
[QUOTE=zerf;48305012]string.byte[/QUOTE]
How to convert all the line?
[CODE]
> = string.byte("ABCDE") -- no index, so the first character
65
> = string.byte("ABCDE",1) -- indexes start at 1
65
[/CODE]
[QUOTE=godred2;48305076]How to convert all the line?
[CODE]
> = string.byte("ABCDE") -- no index, so the first character
65
> = string.byte("ABCDE",1) -- indexes start at 1
65
[/CODE][/QUOTE]
[lua]
b = ""
for k,v in ipairs( string.ToTable( MyCode ) ) do b = b .. "\\" .. string.byte( v ) end
[/lua]
Where "MyCode" is your code in string form. Why on earth you would want to do this (apart from adding backdoors) is beyond me though.
string.byte can process a whole string at a time, james
[QUOTE=zerf;48306890]string.byte can process a whole string at a time, james[/QUOTE]
And? There's still an extra step in making it a string ...
If you really want me to use string.Byte differently, then here:
[lua]
local MyCode = "print('Hello World!')"
local b = "\\" .. string.Implode( "\\" , {string.byte( MyCode, 1, string.len( MyCode ) ) } )
[/lua]
best way
[lua]
local MyCode = "print('Hello World!')"
local b = "\\" .. table.concat({string.byte(MyCode, 1, #MyCode)}, "\\")
[/lua]
No, this is the best way:
local MyCode = "whatever"
local Out = MyCode:gsub(".", function(x) return "\\"..x:byte() end)
:snip:
[QUOTE=zerf;48307117]best way
[lua]
local MyCode = "print('Hello World!')"
local b = "\\" .. table.concat({string.byte(MyCode, 1, #MyCode)}, "\\")
[/lua][/QUOTE]
That's identical to the way I sugested, and yet my way is dumb?
Welp, when I do "RunString(b)" it gives an error:
"[ERROR] RunString:1: unexpected symbol near '\'" - Yellow
[editline]27th July 2015[/editline]
but when I print b first, copy it from the console, and then paste it into runstring, it works fine..
Please don't do this. Obfuscation doesn't work and this method is impressively dumb.
[QUOTE=MadParakeet;48309105]Please don't do this. Obfuscation doesn't work and this method is impressively dumb.[/QUOTE]
obfuscation works on skids.
Sorry, you need to Log In to post a reply to this thread.