Advertisement
Guest User

PassBlocker_V0.2

a guest
Dec 20th, 2017
371
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.35 KB | None | 0 0
  1. local computer = require("computer")
  2. local term = require("term")
  3. print("Whats The Password?")
  4. local ok, Password = pcall(term.read, { dobreak = false, pwchar = "*" })
  5. if ok then
  6. Password = string.sub(Password, 1, #Password - 1)
  7. end
  8. if Password == "password" then
  9. print("Password Accepted")
  10. else
  11. print("Password Denied")
  12. os.sleep(1.5)
  13. computer.shutdown(true)
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement