Advertisement
Guest User

test

a guest
Dec 12th, 2014
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.67 KB | None | 0 0
  1. local debug = "0000" -- This can be changed to anything you want. If you are going to be using this program to protect a ComputerCraft computer, use this code and don't worry about making the rest of the files.
  2. local term = require("term")
  3. local shell = require("shell")
  4. --local io = require("io")
  5.  
  6. while true do
  7. term.clear()
  8. term.setCursor(1,1)
  9. term.write("User: Shuudoushi")
  10. term.setCursor(1,2)
  11. term.write("Password: ")
  12. local input = term.read(nil, true, nil, "*")
  13. input = string.gsub(input, "\n", "")
  14. print(input)
  15. if input == debug then
  16.     term.clear()
  17.     term.setCursor(1,1)
  18.     print("Entering debug mode...")
  19.     os.sleep(2.5)
  20.     term.clear()
  21.     term.setCursor(1,1)
  22.  end
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement