Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Lang = {
- "sᴇʟᴇᴄɪᴏɴᴇ ᴏ ᴀʀǫᴜɪᴠᴏ",
- "sᴇʟᴇᴄᴛ ғɪʟᴇ",
- "⚠ᴇʀʀᴏ⚠\nᴇsᴄᴏʟʜᴀʀ ᴜᴍ ᴀʀǫᴜɪᴠᴏ ᴠᴀʟɪᴅᴏ",
- "⚠ᴇʀʀᴏʀ⚠\nᴄʜᴏᴏsᴇ ᴀ ᴠᴀʟɪᴅ ғɪʟᴇ",
- "❌ᴀᴅc ᴀɴᴛɪ-ʀᴇɴᴏᴍᴇᴀʀ",
- "❌ᴀᴅᴅ ᴀɴᴛɪ-ʀᴇɴᴀᴍᴇ",
- "❌ᴀᴅc ʟᴏɢɪɴ",
- "❌ᴀᴅᴅ ʟᴏɢɪɴ",
- "❌ᴀᴅc ᴇxᴘɪʀᴀçᴀᴏ",
- "❌ᴀᴅᴅ ᴇxᴘɪʀᴀᴛɪᴏɴ",
- "❌ᴀᴅc ɪɴғᴏʀᴍᴀçᴏᴇs ᴅᴏ ᴀᴘᴘ",
- "❌ᴀᴅᴅ ᴀᴘᴘ ɪɴғᴏ",
- "❌ᴀᴅc ᴄᴀʀʀᴇɢᴀʀ",
- "❌ᴀᴅᴅ ʟᴏᴀᴅɪɴɢ",
- "🔁ᴀᴅc ᴍᴇɴsᴀɢᴇᴍ ɴᴏ ɪɴɪᴄɪᴏ",
- "🔁ᴀᴅᴅ ᴍᴇssᴀɢᴇ ᴀᴛ sᴛᴀʀᴛᴜᴘ",
- "ᴀᴜᴛᴏᴍᴀᴛɪᴄᴏ",
- "ᴀᴜᴛᴏᴍᴀᴛɪᴄ",
- "ᴄᴜsᴛᴏᴍɪᴢᴀʀ",
- "ᴄᴜsᴛᴏᴍ",
- "❌ᴜᴍᴀ ʟɪɴʜᴀ",
- "❌ᴏɴᴇ ʟɪɴᴇ",
- "⚠ғᴇʀʀᴀᴍᴇɴᴛᴀ ᴊᴀ ᴀᴅɪᴄɪᴏɴᴀᴅᴀ⚠",
- "⚠ᴛᴏᴏʟ ᴀʟʀᴇᴀᴅʏ ᴀᴅᴅᴇᴅ⚠",
- "ɴᴏᴍᴇ ᴅᴏ sᴄʀɪᴘᴛ",
- "sᴄʀɪᴘᴛ ɴᴀᴍᴇ",
- "sᴇɴʜᴀ",
- "ᴘᴀssᴡᴏʀᴅ",
- "ᴅᴀᴛᴀ",
- "ᴅᴀᴛᴇ",
- "ᴅᴀᴛᴀ ɪɴᴠᴀʟɪᴅᴀ",
- "ɪɴᴠᴀʟɪᴅ ᴅᴀᴛᴇ",
- "ʙᴀʀʀᴀ ᴅᴇ ᴘʀᴏɢʀᴇssᴏ",
- "ᴘʀᴏɢʀᴇssʙᴀʀ",
- "ᴘᴏʀᴄᴇɴᴛᴀɢᴇᴍ",
- "ᴘᴇʀᴄᴇɴᴛᴀɢᴇ",
- "💾sᴀʟᴠᴀʀ ᴀʀǫᴜɪᴠᴏ",
- "💾sᴀᴠᴇ ғɪʟᴇ",
- "ɴᴏᴍᴇ ᴅᴏ ᴀʀǫᴜɪᴠᴏ",
- "ɴᴀᴍᴇ ғɪʟᴇ"
- }
- Menu = {}
- Limit = {}
- FunctionLevel = {}
- SetLang = {}
- FileContent = nil
- file_name= nil
- OneLine = false
- Dir = nil
- function GetMenuToArray(MsM)
- array = {} array["name"] ={} array["Title"] = {} array["function"] = {} for key,value in pairs(MsM) do if tonumber(key) == 1 then array["Title"] = value else if type(value) == "string" then array["name"][#array["name"] + 1] = value end if type(value) == "function" then array["function"][#array["function"] + 1] = value end end end return array
- end
- function OneLinee(Index)
- OneLine = true
- Menu["name"][Index] = Menu["name"][Index]:gsub("❌","✔")
- Limit[Index] = true
- end
- function Add_AppInfo(Index)
- FunctionLevel[6] = 'gg.alert("========App info========\\nApp Name: "..gg.getTargetInfo()["name"].."\\nApp Version: "..gg.getTargetInfo()["versionName"].."\\nPackage Name: "..gg.getTargetInfo()["packageName"].."\\nInstallation Date: "..os.date("%x", gg.getTargetInfo()["firstInstallTime"]).."\\nLast Update: "..os.date("%x", gg.getTargetInfo()["lastUpdateTime"]).."\\n=======================")'
- Menu["name"][Index] = Menu["name"][Index]:gsub("❌","✔")
- Limit[Index] = true
- return
- end
- function Add_Expiration(Index)
- local Function = 'Check_Expiration = os.time({year=Year, month=Month, day=Day}) >= os.time() or (function() gg.alert("⚠EXPIRED⚠\\n Script expired in: Day/Month/Year"); while true do os.exit() end end)()'
- Choice = gg.choice({SetLang[10]}) or nil
- if not Choice then
- return
- end
- if Choice == 1 then
- Prompt = gg.prompt({SetLang[15]},{"00/00/0000"},{"text"})or os.exit()
- if not Prompt then
- return
- end
- Date = {}
- for v in (Prompt[1].."/"):gmatch("(%d.-)/") do
- table.insert(Date,tonumber(v))
- end
- if #Date < 3 then
- gg.alert(SetLang[16])
- return
- end
- for x = 1, 2 do
- Date[x] = (function(fix) if tostring(fix):len() < 2 then return "0"..fix end return fix end)(Date[x])
- end
- Function = Function:gsub("Day",Date[1]):gsub("Month",Date[2]):gsub("Year",Date[3])
- end
- FunctionLevel[3] = Function
- Menu["name"][Index] = Menu["name"][Index]:gsub("❌","✔")
- Limit[Index] = true
- end
- function Add_Message()
- Function = 'MessageTool = gg.alert([[MESSAGE]])'
- Choice = gg.choice({SetLang[10]}) or nil
- if not Choice then
- return
- end
- if Choice == 1 then
- Prompt = gg.prompt({"ᴍᴇɴsᴀɢᴇᴍ"},{""},{"text"})or os.exit()
- if not Prompt then
- return
- end
- Function = Function:gsub("MESSAGE",Prompt[1])
- end
- FunctionLevel[1] = FunctionLevel[1] or {}
- table.insert(FunctionLevel[1],Function)
- end
- function Add_Loading(Index)
- local Function = 'ProgressBar = "║░░░░░░░░░░░░░░░║";for x = 1,15,1 do gg.sleep(500) ProgressBar = ProgressBar:gsub("░","▓",1);gg.toast(ProgressBar) end gg.toast("Loaded")'
- local Function2 = 'for x = 20,100,100/5 do gg.sleep(500);gg.toast("⌛Loading ["..x.."%]") end '
- local Choice = gg.choice({SetLang[9]}) or nil
- if not Choice then
- return
- end
- if Choice == 1 then
- local Method = gg.choice({SetLang[17],SetLang[18]}) or nil
- if not Method then
- return
- end
- if Method == 1 then
- FunctionLevel[4] = Function
- else
- FunctionLevel[4] = Function2
- end
- end
- Menu["name"][Index] = Menu["name"][Index]:gsub("❌","✔")
- Limit[Index] = true
- end
- function Add_Login(Index)
- local Function = 'Check_Login1 = gg.prompt({"⚠Enter Password⚠"},nil,{"text"}) or (function() while true do os.exit() end end)();Check_Login2 = Check_Login1[1] == "str" or (function() gg.alert("⚠ERRO⚠\\n➡Password Wrong"); while true do os.exit() end end)()'
- Choice = gg.choice({SetLang[9],SetLang[10]}) or nil
- if not Choice then
- return
- end
- if Choice == 1 then
- local Password = tostring(math.random(4994,48884774))
- Function = Function:gsub("str",Password)
- end
- if Choice == 2 then
- Prompt = gg.prompt({SetLang[14]},nil,{"text"}) or nil
- if not Prompt then
- return
- end
- Function = Function:gsub("str",Prompt[1])
- end
- FunctionLevel[5] = Function
- Menu["name"][Index] = Menu["name"][Index]:gsub("❌","✔")
- Limit[Index] = true
- end
- function Add_Rename(Index)
- local Function = 'Rename_Check = gg.getFile():match("[^/]+$") == "str" or (function() local __ = gg.alert("⚠DETECTED⚠\\n➡Script name wrong\\n➡Rename script to: str","Copy name");__ = __ or 0; if __ == 1 then gg.copyText("str",false) end while true do os.exit() end end)()'
- Choice = gg.choice({SetLang[9],SetLang[10]}) or nil
- if not Choice then
- return
- end
- if Choice == 1 then
- Function = Function:gsub("str",file_name)
- end
- if Choice == 2 then
- Prompt = gg.prompt({SetLang[13]},nil,{"text"}) or nil
- if not Prompt then
- return
- end
- Function = Function:gsub("str",Prompt[1])
- file_name = Prompt[1]
- end
- FunctionLevel[2] = Function
- Menu["name"][Index] = Menu["name"][Index]:gsub("❌","✔")
- Limit[Index] = true
- end
- function TableOrganize(Table)
- t = {}
- for x , y in pairs(Table) do
- if type(y) == "table" then
- for x = 1,#y,1 do
- table.insert(t,y[x])
- end
- else
- table.insert(t,y)
- end
- end
- return t
- end
- function Add_Tools()
- Choice = gg.choice(Menu["name"],nil,Menu["Title"])
- if not Choice then
- return
- else
- if Limit[Choice] then
- gg.alert(SetLang[12])
- else
- Menu["function"][Choice](Choice)
- end
- end
- Add_Tools()
- end
- function SaveFile()
- TableFixed = TableOrganize(FunctionLevel)
- Prompt = gg.prompt({SetLang[20]},{file_name},{"Text"}) or nil
- if not Prompt then
- return
- end
- file = io.open(Dir..Prompt[1],"w")
- Functions = table.concat(TableFixed,"\n")
- if OneLine == true then
- FileContent = FileContent:gsub("\n"," ")
- Functions = table.concat(TableFixed," ")
- end
- file:write(Functions.." "..FileContent)
- file:close()
- gg.alert("Saved: "..Dir..Prompt[1])
- end
- function SerializeOpenFile()
- Dir = gg.prompt({SetLang[1]},{gg.EXT_STORAGE.."/"},{"file"}) or os.exit()
- local file = io.open(Dir[1],"r") or ExitErro(SetLang[2])
- FileContent = "\n"..file:read("*a")
- file:close()
- file_name = Dir[1]:match("[^/]+$")
- Dir = Dir[1]:match("^.+/")
- Menu = GetMenuToArray({"sᴄʀɪᴘᴛs ᴛᴏᴏʟs v1.0(ᴅᴀʀᴋɪɴɢᴄʜᴇᴀᴛᴇʀ)",SetLang[3],Add_Rename,SetLang[4],Add_Login,SetLang[5],Add_Expiration,SetLang[6],Add_AppInfo,SetLang[7],Add_Loading,SetLang[11],OneLinee,SetLang[8],Add_Message,SetLang[19],SaveFile})
- Add_Tools()
- end
- function SelectLang()
- local Start = gg.choice({"ᴘᴏʀᴛᴜɢᴜᴇs","ᴇɴɢʟɪsʜ"},"","sᴇʟᴇᴄᴛ ʟᴀɴɢᴜᴀɢᴇ") or os.exit()
- for x = Start,#Lang, 2 do
- table.insert(SetLang,Lang[x])
- end
- SerializeOpenFile()
- end
- function ExitErro(Erro)
- print(Erro);os.exit()
- end
- SelectLang()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement