Quick actions

cmd+k|ctrl+k

Navigation

Languages

LUA Loadstring Obfuscation - Nested brackets

Snippet info

Language

Lua

Visibility

public

Author

p00dyffs69

Created

2025-06-20T08:03:34.250777Z

Updated

2025-06-20T08:03:34.250777Z

print("LOADSTRING - compatible with in script [[ ]] brackets")

local function encode_script(script)
    return script:gsub(".", function(char) 
        return "\\" .. char:byte() 
    end)
end

-- Nested brackets
local script_level1 = [=[
-- YOUR SCRIPT HERE
]=]

local encoded_level1 = encode_script(script_level1)
print('loadstring("' .. encoded_level1 .. '")()')
print()
INFO