Advertisement
HangMan23

Calhoz dev tools.lua

Aug 14th, 2019
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.87 KB | None | 0 0
  1. local data = require("component").data
  2. local EU = require("ExtraUtilits")
  3. local internet = require("internet")
  4. local io = require("io")
  5. local gpu = require("component").gpu
  6.  
  7. local function get(URL)
  8.  
  9.   local req = internet.request(URL)
  10.   local text = ""
  11.  
  12.   for line in req do
  13.  
  14.     text = text .. line
  15.  
  16.   end
  17.  
  18.   return text
  19.  
  20. end
  21.  
  22. local w, h = gpu.getResolution()
  23.  
  24. print("Downloading data...")
  25.  
  26. local encrypted = get("https://pastebin.com/raw/09QcnM44")
  27.  
  28. local key = EU.ReadyUtilits.WFUIV2(w / 2 - 12 / 2, h / 2 - 2, 10, "Password:")
  29.  
  30. local decrypted = data.decrypt(encrypted, key .. key .. key .. key, key .. key .. key .. key)
  31.  
  32. if not decrypted then
  33.  
  34.   print("Password is incorrect.")
  35.  
  36. else
  37.  
  38.   local func = load(decrypted)
  39.  
  40.   if not func then
  41.  
  42.     print("Error with running code: " .. reason .. ".")
  43.  
  44.   else
  45.  
  46.     func()
  47.  
  48.   end
  49.  
  50. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement