Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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.
- local term = require("term")
- local shell = require("shell")
- --local io = require("io")
- while true do
- term.clear()
- term.setCursor(1,1)
- term.write("User: Shuudoushi")
- term.setCursor(1,2)
- term.write("Password: ")
- local input = term.read(nil, true, nil, "*")
- print(input)
- if input == debug then
- term.clear()
- term.setCursor(1,1)
- print("Entering debug mode...")
- os.sleep(2.5)
- term.clear()
- term.setCursor(1,1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement