Advertisement
Guest User

Security

a guest
Aug 1st, 2014
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.56 KB | None | 0 0
  1. oldPull = os.pullEvent
  2. os.pullEvent = os.pullEventRaw
  3. while true do
  4.         term.clear()
  5.         term.setCursorPos(1,1)
  6.         print("Dorito Computer Security 1.0")
  7.         print("UserName: doritobob269")
  8.         write("Password: ")
  9.         if read("*") == "dragon" then
  10.                 print("Access Granted.")
  11.                 sleep(2)
  12.                 term.clear()
  13.                 term.setCursorPos(1,1)
  14.                 break
  15.         else
  16.                 print ("Incorrect Login Details.")
  17.                 sleep(1)
  18.         end
  19. end
  20. os.pullEvent = oldPull
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement