Alexandrov01

Super Secure Protection Pastebin Updater/Installer

May 18th, 2014
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.76 KB | None | 0 0
  1. -- Super Secure Protection Pastebin Updater/Installer
  2. term.clear()
  3. term.setCursorPos(1,1)
  4. if term.isColor() == true then
  5.   term.setTextColor(colors.yellow)
  6. end
  7. print("Super Secure Protection Updater/Installer")
  8. if term.isColor() == true then
  9.   term.setTextColor(colors.white)
  10. end
  11. if fs.exists("kit") ~= true then
  12.   print("WARNING: Super Secure Protection requires Kit!")
  13.   print("Get Kit at http://git.io/kitdocs ")
  14. end
  15. getfile = http.get("https://raw.github.com/AxTo/Kit/master/examples/login.lua")
  16. print("   Downloaded latest build from GitHub.")
  17. file = fs.open("login", "w")
  18.   file.write(getfile.readAll())
  19. file.close()
  20. print("   Saved file.")
  21. print("   Done!")
  22. print("Press ENTER to continue...")
  23. x = read()
  24. print("Rebooting!")
  25. sleep(1)
  26. os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment