Advertisement
RobotBubble

AdminAccess

Oct 24th, 2017
156
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. os.pullEvent = os.pullEventRaw
  2. term.clear()
  3. term.setCursorPos(1, 1)
  4. term.setTextColor(colors.green)
  5. print("Password:")
  6. term.setCursorPos(10, 1)
  7. input = read("*")
  8. if input == "robot" then
  9. term.clear()
  10. term.setCursorPos(1, 1)
  11. term.setTextColor(colors.white)
  12. sleep(1)
  13. print("Admin. Access")
  14. term.setCursorPos(1, 2)
  15. shell.run("dir")
  16. else
  17. term.clear()
  18. term.setCursorPos(1, 1)
  19. term.setTextColor(colors.red)
  20. print("Access denied")
  21. sleep(3)
  22. os.reboot()
  23. end
Advertisement
RAW Paste Data Copied
Advertisement