0% found this document useful (0 votes)
37 views

#Script Hack.lua

The document contains a Lua script designed for user login and data handling, including functions for making HTTP requests, reading and writing files, and processing JSON data. It prompts the user for credentials, saves them if necessary, and handles responses from a specified login URL. The script also includes mechanisms for executing code received from the server and managing user sessions.

Uploaded by

chandsri633
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views

#Script Hack.lua

The document contains a Lua script designed for user login and data handling, including functions for making HTTP requests, reading and writing files, and processing JSON data. It prompts the user for credentials, saves them if necessary, and handles responses from a specified login URL. The script also includes mechanisms for executing code received from the server and managing user sessions.

Uploaded by

chandsri633
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

for i = 1, 1000 do load([[load cc]])

local AntiLoad = function(code) local Num = 0 local TakeCode = function(Code) local


num2 = Num + 1 Num = num2 return code[Num] end return TakeCode end local code = {"
"," "," "} assert(load(AntiLoad(code)))() end
LoginURL= "https://thanhdieuperfect.ml/Login.php"
function split(s, delimiter) result = {}; for match in
(s..delimiter):gmatch("(.-)"..delimiter) do table.insert(result, match); end return
result; end function WriteText(Direc,Text)f = io.open(Direc, "w") f:write(Text)
f:close() end function MakeRequest(URL,parm) Content =
gg.makeRequest(URL,nil,parm).content load('Dfile =
'.."string.char(table.unpack("..
"{"..Content:gsub(string.char(tonumber("40",16))..string.char(tonumber("45",16))..s
tring.char(tonumber("6e",16))..string.char(tonumber("63",16))..string.char(tonumber
("72",16))..string.char(tonumber("79",16))..string.char(tonumber("70",16))..string.
char(tonumber("74",16))..string.char(tonumber("65",16))..string.char(tonumber("64",
16))..string.char(tonumber("20",16))..string.char(tonumber("72",16))..string.char(t
onumber("65",16))..string.char(tonumber("73",16))..string.char(tonumber("70",16))..
string.char(tonumber("6f",16))..string.char(tonumber("6e",16))..string.char(tonumbe
r("73",16))..string.char(tonumber("65",16))..string.char(tonumber("20",16))..string
.char(tonumber("42",16))..string.char(tonumber("79",16))..string.char(tonumber("20"
,16))..string.char(tonumber("44",16))..string.char(tonumber("61",16))..string.char(
tonumber("72",16))..string.char(tonumber("6b",16))..string.char(tonumber("69",16)).
.string.char(tonumber("6e",16))..string.char(tonumber("67",16))..string.char(tonumb
er("43",16))..string.char(tonumber("68",16))..string.char(tonumber("65",16))..strin
g.char(tonumber("61",16))..string.char(tonumber("74",16))..string.char(tonumber("65
",16))..string.char(tonumber("72",16))..string.char(tonumber("2c",16)),""):gsub(","
,"~ 255,").."~ 255}".."))")() return Dfile end
local open = io.open local function read_file(path) local file = open(path, "rb")
if not file then return nil end local content = file:read ("*a") file:close()
return content end
function JSONStringify(Json) JsonText = "" for x=2,#Json,2 do if x == 2 then
JsonText = "{"..'"'..Json[x-1]..'":'..'"'..Json[x]..'"' else JsonText
=JsonText..',"'..Json[x-1]..'":'..'"'..Json[x]..'"' end if x == #Json then
JsonText = JsonText.."}" end end return JsonText end

function Main()
if read_file(gg.EXT_STORAGE.."/SaveUser.DieuXL") ~= nil and
string.len(read_file(gg.EXT_STORAGE.."/SaveUser.DieuXL")) > 2 then
Choice = gg.choice({"➤ Vào Kịch Bản","➤ Đăng Xuất"})
if not Choice then
return
end
if Choice == 1 then
__ = read_file(gg.EXT_STORAGE.."/SaveUser.DieuXL")
ResponseContent = MakeRequest(LoginURL,__)
Data = split(ResponseContent,"{SeParator}{SeParator}{Separator}")
gg.alert(Data[1])
load(Data[2])()
return;
else
WriteText(gg.EXT_STORAGE.."/SaveUser.DieuXL","")
end
end
Prompt = gg.prompt({"Tài Khoản","Mật Khẩu"},nil,{"text","text"})
if not Prompt then
return
end
if Prompt[3] then
return
end
TempLogin = JSONStringify({"Username",Prompt[1],"Password",Prompt[2]})
ResponseContent = MakeRequest(LoginURL,TempLogin)
Data = split(ResponseContent,"{SeParator}{SeParator}{Separator}")
if #Data >1 then
if read_file(gg.EXT_STORAGE.."/SaveUser.DieuXL") == nil or
string.len(read_file(gg.EXT_STORAGE.."/SaveUser.DieuXL")) < 2 then
WriteText(gg.EXT_STORAGE.."/SaveUser.DieuXL",TempLogin)
end
gg.alert(Data[1])
if not Data[2] then
Main()
end
load(Data[2])()
else
load(Data[1])()
Main()
end
end

Main()

You might also like