Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent = os.pullEventRaw
- term.clear()
- term.setCursorPos(1, 1)
- term.setTextColor(colors.green)
- print("Password:")
- term.setCursorPos(10, 1)
- input = read("*")
- if input == "robot" then
- term.clear()
- term.setCursorPos(1, 1)
- term.setTextColor(colors.white)
- sleep(1)
- print("Admin. Access")
- term.setCursorPos(1, 2)
- shell.run("dir")
- else
- term.clear()
- term.setCursorPos(1, 1)
- term.setTextColor(colors.red)
- print("Access denied")
- sleep(3)
- os.reboot()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement