Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --LOCKDOWN
- function c()
- term.clear()
- term.setCursorPos(1, 1)
- end
- local password = "Forcefield16"
- local adminPassword = "jetblue74"
- local uPassword
- local uAdmin
- print("LOCKDOWN")
- print("Be sure that essential personnel are in position!")
- print("This function requires the admin key!")
- os.sleep(2)
- c()
- print("Two-factor authentication required!")
- term.write("Password: ")
- uPassword = read("*")
- c()
- term.write("Admin Master Password: ")
- uAdmin = read("*")
- c()
- print("Bypassing Admin Firewall...")
- os.sleep(4)
- c()
- if (uPassword == password) and (uAdmin == adminPassword) then
- local endPassword
- local done = false
- print("*Firewall Bypassed*")
- os.sleep(2)
- c()
- print("Press any key to CONFIRM LOCKDOWN")
- read()
- while not done do
- rs.setOutput("back", true)
- print("LOCKDOWN IN PROGRESS!")
- term.write("Master override key: ")
- endPassword = read("*")
- c()
- if endPassword == uAdmin then
- print("Terminating lockdown...")
- os.sleep(2)
- rs.setOutput("back", false)
- c()
- print("Lockdown Terminated!")
- done = true
- os.sleep(2)
- os.reboot()
- else
- print("Incorrect password!")
- print("The master admin key is required to terminate a lockdown!")
- os.sleep(3)
- done = false
- end
- end
- else
- print("Your two factor authentication failed!")
- print("Goodbye!")
- os.sleep(3)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement