Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- password="votremotdepasse"
- rsoutput="sortieredstone"
- rsinput="entreeredstone"
- debugpassword="motdepassepouraccederauterminal"
- term.clear()
- term.setCursorPos(1,1)
- print("PasswordOS 1.2 by Mrrraou")
- print("")
- if redstone.getInput(rsinput) then
- print("Computer locked.")
- sleep(2)
- print("Shutdown...")
- sleep(3)
- os.shutdown()
- end
- write("Password: ")
- inputuser=read("*")
- if inputuser==debugpassword then
- print "Launching debug mode ..."
- sleep(2)
- term.clear()
- term.setCursorPos(1,1)
- shell.run("shell")
- end
- if inputuser==password then
- print("Correct password.")
- sleep(1)
- print("Door opened.")
- rs.setOutput(rsoutput, true)
- sleep(5)
- print("Door closed.)
- rs.setOutput(rsoutput, false)
- sleep(2)
- print("Shutdown...")
- sleep(3)
- os.shutdown()
- else
- print("Incorrect password.")
- sleep(1)
- print("Shutdown...")
- sleep(3)
- os.shutdown()
- end
Add Comment
Please, Sign In to add comment