Forum > General >

[Release] LuaUnF*ck - reverse LuaF*ck "protection"

Kiko

Fake it 'till you make it

Posts: 23

Threads: 5

Joined: Mar, 2022

Reputation: 3

Posted

I was VERY bored and decided to do this, even though I know LuaF*ck Isn't an obfuscator.

LuaF*ck: https://wearedevs.net/forum/t/26409

 

LuaUnF*ck:

local script = [=[
local _=string.char;getfenv()[_((#'...')*(#'...'..#'......')).._((#'...')*(#'...'..#'.......')).._(#'.........'..#'.......').._((#'.....'..#{})*(#'..')).._((#'.....')*(#'..'..#'...')).._((#'.....'..#'........')*(#'..')).._((#'.....'..#'.......')*(#'..')).._((#'.......')*(#'.'..#'.....')).._((#'.'..#'.')*(#'.'..#{})).._(#'.'..#{}..#'...')](_((#'...')*(#'...'..#'....')).._((#'.........')*(#'.'..#'...')).._((#'.....')*(#'..'..#'..')).._((#'...')*(#'...'..#'...')).._((#'.....'..#'........')*(#'..')).._((#'.....')*(#'..'..#'.')).._((#'...'..#'.......')*(#'...')).._((#'..'..#'..')*(#'.....')).._((#'....')*(#'........')).._(#'.........'..#'.......').._((#'.....')*(#'........')).._(#'....'..#'.').._((#'...')*(#'...'..#'........')).._(#'.'..#{}..#'.').._((#'....')*(#'..'..#'.........')).._((#'...'..#'.........')*(#'...')).._((#'..')*(#'.....'..#'.......')).._((#'.'..#{})*(#'.'..#'.')).._((#'.'..#'.......')*(#'..')).._(#'.........'..#'.......').._((#'.'..#'.......')*(#'..')).._(#'.'..#{}..#'.').._((#'.'..#'.')*(#'.'..#{})).._((#'..'..#'.....')*(#'....')).._(#'.....'..#'.........').._((#'...')*(#'...'..#'....')).._((#'.'..#'...')*(#'.........')).._((#'.....'..#'.....')*(#'..')).._((#'...')*(#'...'..#'...')).._((#'....')*(#'..'..#'.........')).._((#'..'..#'.')*(#'.....')).._((#'...'..#'.......')*(#'...')).._((#'.'..#{})*(#'.'..#'.')).._((#'........')*(#'....')).._((#'.......')*(#'.'..#'....')).._((#'..')*(#'..'..#{})).._(#'....'..#'.').._((#'.....'..#'.......')*(#'..')).._(#'.'..#{}..#'.').._((#'....')*(#'..'..#'.........')).._((#'.........')*(#'.'..#'...')).._((#'..')*(#'.....'..#'.......')).._((#'..')*(#'.....'..#'.....')).._((#'.'..#'......')*(#'..')).._(#'.........'..#'.......').._((#'........')*(#'.....')).._(#'....'..#'.').._((#'..')*(#'..'..#'...')).._((#'..'..#'...')*(#'..')).._((#'..')*(#'.'..#'.......')).._((#'.......')*(#'.'..#'....')).._((#'.'..#'.......')*(#'..')).._(#'.'..#{}..#'.').._((#'.'..#{})*(#'.'..#'.')).._((#'....')*(#'..'..#'.....')).._(#'.....'..#'.........').._((#'..')*(#'.....'..#'.')).._((#'...'..#'.........')*(#'...')).._((#'..')*(#'.....'..#'.....')).._((#'...'..#'...')*(#'...')).._((#'..'..#'.........')*(#'....')).._((#'.....')*(#'..'..#'.')).._((#'...')*(#'...'..#'.......')).._((#'.....'..#'.....')*(#'..')).._((#'.'..#'......')*(#'..')).._((#'.........')*(#'.'..#'.')).._((#'.'..#{})*(#'....')).._(#'....'..#'.').._((#'......')*(#'.'..#'.........')).._(#'.'..#{}..#'.').._((#'.....'..#'........')*(#'..')).._((#'...')*(#'...'..#'.........')).._((#'.....'..#'.......')*(#'..')).._((#'.'..#{})*(#'.'..#'.')).._((#'.'..#'......')*(#'..')).._((#'....'..#'.........')*(#'..')).._((#'.'..#{})*(#'....')).._(#'....'..#'.').._((#'..'..#'...')*(#'..')).._((#'..')*(#'..'..#'...')).._((#'.'..#'.......')*(#'..')).._((#'.........')*(#'.'..#'.')).._((#'..')*(#'.'..#'.......')).._(#'.'..#{}..#'.').._((#'..')*(#'.....'..#'.....')).._((#'..')*(#'.....'..#{})).._(#'.....'..#'.........').._((#'.......')*(#'.'..#'......')).._((#'......')*(#'.'..#'.........')).._((#'.'..#'.....')*(#'.......')).._((#'.'..#{})*(#'.'..#'.')).._((#'.....'..#'........')*(#'..')).._((#'....')*(#'.'..#{})).._((#'.'..#'.')*(#'.........')).._((#'.'..#{})*(#'....')).._(#'....'..#'.').._(#'....'..#'.'))()
]=]

local split_string = string.split or function(inputstr, sep)
        if sep == nil then
                sep = "%s"
        end
        local t={}
        for str in string.gmatch(inputstr, "([^"..sep.."]+)") do
                table.insert(t, str)
        end
        return t
end
for num, line in next, split_string(script, "\n") do
    print(line:gsub("getfenv%(%)%[.+%]%((.+)%)%(%)", function (capture)
    	local loads = "local _ = string.char; return " .. capture
        local result = loadstring(loads)()
        return result
    end))
end

Output:

local _=string.char;function a()return"a"end;function b()return a().."b"end;function c()return b().."c"end;print(c())

 

Note: This only supports LuaF*ck with the loadstring option ticked.

  • 0

https://yesitskiko.github.io/about-me/

I've got a PHD in Scratch.

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )