Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent = os.pullEventRaw
- term.clear()
- term.setCursorPos(1,1)
- print("This is building Ab of the Cables for the World LLC.")
- print("CFW is owned and operated by JD's Town Goverment. No unatherized access! Please contact JD for entry.")
- print("")
- print("Please enter password: ")
- rednet.open("back")
- message = nil
- function reader()
- password = read("*")
- end
- function rednetRe()
- sender, message, disT = rednet.receive()
- end
- parallel.waitForAny(reader, rednetRe)
- if not (message == nil) then
- if (message == "C^Y|cE5krz") then
- rednet.send(75, "Vy;vR;F6jrC,k!n")
- end
- else
- if (password == "BeastmodeJD24_BldgAbAccess") then
- term.clear()
- term.setCursorPos(1,1)
- textutils.slowPrint("Sending 2nd factor auth...")
- rednet.send(75, "vLctbt8LLG7shFoNDKw7")
- sender, message, disT = rednet.receive(7)
- if (sender == 75 and message == "3ZuleCzbkQsvCmCoRw9R") then
- term.clear()
- term.setCursorPos(1,1)
- print("Access Granted...")
- rs.setOutput("left", true)
- sleep(5)
- rs.setOutput("left",false)
- os.reboot()
- else
- term.clear()
- term.setCursorPos(1,1)
- print("2nd auth was not accepted. Please contact JD for entry.")
- sleep(5)
- os.reboot()
- end
- elseif (password == "BeastmodeJD24_access") then
- return
- else
- term.clear()
- term.setCursorPos(1,1)
- print("Wrong Password!")
- sleep(3)
- os.reboot()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment