Guest User

password

a guest
Feb 17th, 2018
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.77 KB | None | 0 0
  1. Username = "Raoss"
  2. Password = "cacca"
  3. Debug = "debug"
  4.  
  5. term.clear()
  6. term.setCursorPos(1,1)
  7. print("Only staff login to proceed")
  8. term.setCursorPos(1,3)
  9. write("Username: ")
  10. user = read()
  11. write("Pasword: ")
  12. pwd = read("*")
  13.  
  14. pene = true
  15.  
  16. while pene do
  17.  
  18.   if Username == user and Password == pwd then
  19.    term.setCursorPos(1,6)
  20.    write("Login succesfully, proceed")
  21.    rs.setOutput("back".true)
  22.    os.sleep(4)
  23.    rs.setOutput("back".false)
  24.    os.reboot()
  25.   elseif Username == user and Debug == pwd then
  26.    term.setCursorPos(1,6)
  27.    write("Debug mode activated")
  28.    term.clear()
  29.    term.setCursorPos(1,1)
  30.    pene = false
  31.   else
  32.    term,setCursorPos(1,6)
  33.    write("Usename or Password wrong please retry")
  34.    os.sleep(1.5)
  35.    os.reboot()
  36.   end
  37. end
Add Comment
Please, Sign In to add comment