Advertisement
Guest User

DUTAccess

a guest
Aug 22nd, 2018
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.14 KB | None | 0 0
  1. oldPull = os.pullEvent
  2. os.pullEvent = os.pullEventRaw
  3. a = "-----<- DuT Access-Control ->-----"
  4. b = "ffffffffffffffffffffffffffffffffff"
  5. c = "0000000000000000000000000000000000"
  6.  
  7. while true do
  8. term.clear()
  9.   term.setBackgroundColor(colors.white)
  10.   term.setTextColor(colors.black)
  11.   pts = "."
  12.   for i = 3, 1,-1 do
  13.     term.clear()
  14.     term.setCursorPos(1,1)
  15.              print(a)
  16.             print("Reading DuT-Datasafe"..pts)
  17.             pts = pts..pts
  18.             sleep(1)
  19.             term.setBackgroundColor(colors.white)
  20.             term.setTextColor(colors.black)
  21.         end
  22.        
  23.         print(" ")
  24.         print("Data found!")
  25.         sleep(1)
  26.         print("UserName : Aerophob-DUT")
  27.         sleep(1)
  28.         print("Password: ")
  29.  
  30.         term.setBackgroundColor(colors.white)
  31.         term.setTextColor(colors.black)
  32.         if read("*") == "3427894" then
  33.             print("Access Granted.")
  34.             sleep(2)
  35.             term.clear()
  36.             term.setCursorPos(1,1)
  37.             break
  38.         else
  39.                 print ("Incorrect Login Details.")
  40.                 sleep(1)
  41.         end
  42. end
  43. os.PullEvent = oldPull
  44. shell.run("chan5")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement