Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.71 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.         pts = "."
  7.         for i = 3, 1,-1 do
  8.             term.clear()
  9.             print("-----<- DuT Access-Control ->-----")
  10.             print("Reading DuT-Datasafe"..pts)
  11.             pts = pts..pts
  12.             sleep(2)
  13.         end
  14.         print(" ")
  15.         print("Data found!")
  16.         sleep(1)
  17.         print("UserName : Aerophob-DUT")
  18.         sleep(2)
  19.         print("Password: ")
  20.         if read("*") == "3427894" then
  21.             print("Access Granted.")
  22.             sleep(2)
  23.             term.clear()
  24.             term.setCursorPos(1,1)
  25.             break
  26.         else
  27.                 print ("Incorrect Login Details.")
  28.                 sleep(1)
  29.         end
  30. end
  31. --os.pullEvent = oldPull
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement