Advertisement
MCFunRide

OS Installer for QuantumCraft ROM

Jun 18th, 2015
302
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.86 KB | None | 0 0
  1. stream = http.get("https://github.com/MCFunRide/MCOS-Beta-2/raw/master/src/apis/graphix.lua").readAll()
  2. f = fs.open("/graphix","w")
  3. f.writeLine(stream)
  4. f.close()
  5. os.loadAPI("/graphix")
  6. graphix.bgColor(colors.white)
  7. term.setTextColor(colors.black)
  8. term.setCursorPos(1,1)
  9. term.setBackgroundColor(colors.red)
  10. term.clearLine()
  11. graphix.center(1,"OS Installer")
  12. term.setBackgroundColor(colors.green)
  13. graphix.center(3,"MCOS Beta 2")
  14. graphix.center(5,"JakeOS 2")
  15. graphix.center(7,"SmashOS")
  16. term.setBackgroundColor(colors.red)
  17. graphix.center(9,"OneOS")
  18.  
  19. while true do
  20. local evt, button, x, y = os.pullEvent('mouse_click')
  21. if y == 3 then
  22. fs.delete("/graphix")
  23. trolls = http.get("https://github.com/MCFunRide/MCOS-Beta-2/raw/master/installer.lua").readAll()
  24. f = fs.open("/.install","w")
  25. f.writeLine(trolls)
  26. f.close()
  27. shell.run("/.install")
  28. elseif y == 5 then
  29. fs.delete("/graphix")
  30. f = fs.open("startup","w") f.writeLine(http.get("https://raw.github.com/jakemroman/JakeHub/master/win7").readAll()) f.close() os.reboot()
  31. elseif y == 7 then
  32. local p = print
  33. term.clear()
  34. p("Welcome to the SmashOS Installer v1.0")
  35. shell.run("pastebin get 613dHM04 .commands")
  36. shell.run("pastebin get wekX9pdd .shell")
  37. shell.run("pastebin get Xx1YwQMb browser")
  38. shell.run("pastebin get aqNvredH changepass")
  39. shell.run("pastebin get D3teMVbK .lock")
  40. shell.run("pastebin get w3yvLjmd startup")
  41. shell.run("pastebin get dL3JVK4k smashapi")
  42. sleep(0.2)
  43. p("Done We shall reboot now")
  44. sleep(0.1)
  45. term.clear()
  46. p("Please Input Your Password!")
  47. p("")
  48. p("Password: ")
  49. local input = read("*")
  50. f = fs.open("password", "w")
  51. f.write(input)
  52. f.close()
  53. sleep(0.1)
  54. os.reboot()
  55. elseif y == 9 then
  56. graphix.bgColor(colors.red)
  57. graphix.center(1,"THIS OS IS PROHIBITED.")
  58. graphix.center(3,"USING WILL RESULT IN PERMANENT BAN!")
  59. sleep(3)
  60. fs.delete("/graphix")
  61. else
  62. shell.run("osinstaller")
  63. end
  64. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement