Joined: 09 May 2003 Posts: 25807 Location: The netherlands
Posted: Thu Feb 29, 2024 7:38 am Post subject:
it won't be the original readable code but you can use decodeFunction and string.dump it and then save the string and then read the string with a hexeditor. _________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping
You can download the unluac tool from the site "sourceforge.net/projects/unluac/" and perform the decode operation.
Code:
function createTempFunction()
local data = UDF1.CEEdit1.Text
local tempfunction = decodeFunction(data)
local dumpedFunction = string.dump(tempfunction)
local file = io.open("temp.lua", "wb")
file:write(dumpedFunction)
file:close()
end
function checkJar()
local filename = "unluac.jar"
local file, err = io.open(filename, "r")
if file then
file:close()
print("unluac.jar file found.")
return true
else
print("Error: " .. err)
return false
end
end
function UDF1_CEButton1Click(sender)
local unluac = checkJar()
if unluac then
createTempFunction()
local lfs = require("lfs")
-- Get current working directory
local currentDir = lfs.currentdir()
-- Execute the command
local result = os.execute(command)
if result then
print("JAR file executed successfully.")
local command = "notepad dectemp.lua"
os.execute(command)
else
print("An error occurred while executing the JAR file.")
end
end
end
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum