Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -----------------------------------
- --- Lua Code Obfuscator ---
- --- Povered by AvA ---
- -----------------------------------
- local function ToByte( Code ) return Code:gsub( ".", function( Char ) return "\\" .. string.byte( Char ) end); end
- local function Random( V ) local a = ""; for i = V, math.random( V * 1, V * 3 ) do a = a .. " ".. ( "_" ):rep( i ) .."=_[\"".. ToByte( table.Random( { "RunStringEx", "DOF_Kill", "ColorToHSV", "DOFModeLHack", "AddOriginTpPVS", "AccessorFuncNW", "ErrorNoHalt", "GetTaskID", "LerpVector", "NewMesh", "PlayerDataUpdate", "STNDRD" } ) ) .. "\"]" end return a end
- local function Obfuscate( Code ) return "_=_G".. Random( 5 ) .."__=_[\"" .. ToByte( "string" ) .. "\"][\"" .. ToByte( "reverse" ) .. "\"]".. Random( 8 ) .."_[\"".. ToByte( "RunString" ) .. "\"](__\"" .. ToByte( Code:reverse() ) .. "\")".. Random( 5 ); end
- local Code = [[print("Lol, hi!\nThis is my GLua obfuscator.")]];
- print( "--->>> " .. Code .. "\nObfuscated GLua code: \n" .. Obfuscate( Code ) .. "\nResult: \n" )
- _G["RunString"](Obfuscate( Code ))
Advertisement
Advertisement