Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.00 KB | None | 0 0
  1. rednet.open("back")
  2.  
  3. local verServer = 415
  4. local realPass = ""
  5. local username = ""
  6. local passAttempt = ""
  7.  
  8. function clear()
  9.   term.clear()
  10.   term.setCursorPos(1,1)
  11. end
  12.  
  13. clear()
  14. print("Verification details:")
  15. term.setCursorPos(1,2)
  16. print("--------------------------------")
  17. term.setCursorPos(1,4)
  18. write("Username: ")
  19. username = read()
  20. term.setCursorPos(1,5)
  21. write("Password: ")
  22. passAttempt = read("*")
  23. username = string.lower(username)
  24.  
  25. if username == pwrocks5648 then
  26.   clear()
  27.   print("java.lang.arrayOutOfBoundsException" .. string.rep("x", 100))
  28.   sleep(5)
  29.   clear()
  30.   os.print("USER BANNED:29: ATTEMPTED HACK")
  31.   os.reboot()
  32. else
  33.  
  34. rednet.send(verServer, username)
  35. local id, msg, dis = rednet.receive()
  36. --print("receive time")
  37. realPass = msg
  38. --realPass = "pass"
  39.  
  40. if realPass == "" then
  41.   os.reboot()
  42. end
  43.  
  44. if realPass == passAttempt then
  45.   rs.setOutput("right", true)
  46.   sleep(5)
  47.   rs.setOutput("right", false)
  48.   clear()
  49.   os.reboot()
  50. else
  51.   os.reboot()
  52. end
  53.  
  54. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement