ErolDude

Password shit v2 (With main comp)

Jul 9th, 2013
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.74 KB | None | 0 0
  1. --os.pullEvent = os.pullEventRaw
  2. print("PAXOS v2.0")
  3. rednet.open("right")
  4. term.setTextColor(16)
  5. print("Terminal in sleep mode, press any key to wake up")
  6. event, key = os.pullEvent("char")
  7. if key == c then
  8. end
  9. term.setTextColor(4)
  10. print("Welcome to the ErolCorp testing facility")
  11. os.sleep(1)
  12. print("Please enter the access code when prompted")
  13. local password = "28469"
  14. os.sleep(1)
  15. print("")
  16. print("Password:")
  17. local input = read("*")
  18. if input == password then
  19.   print("Access granted!")
  20. else
  21.   print("Access denied! Attack sequence initiated")
  22.   os.sleep(1)
  23.   rs.setOutput("bottom", true)
  24.   rednet.broadcast("attack")
  25.   os.sleep(5)
  26.   rs.setOutput("bottom", false)
  27.   rednet.broadcast("halt")
  28.   print("Attack sequence stopped")
  29. end
Advertisement
Add Comment
Please, Sign In to add comment