Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function clear()
- term.clear()
- term.setCursorPos(1,1)
- end
- function os.pullEvent()
- local event, p1, p2, p3, p4, p5 = os.pullEventRaw()
- if event == "terminate" then
- end
- return event, p1, p2, p3, p4, p5
- end
- if fs.exists("Password.txt") then
- clear()
- print("Please enter the password:")
- logfile = io.open("system.log","r")
- Password = logfile:read("*all")
- input = read("*")
- if input == Password then
- clear()
- print("test worked!")
- sleep(5)
- clear()
- shell.run("optionmenu")
- else
- print("Wrong password, please try again!")
- sleep(5)
- os.reboot()
- end
- else
- print("You didnt set a password, please set one for your secuirty!")
- sleep(5)
- clear()
- shell.run("optionmenu")
- end
Add Comment
Please, Sign In to add comment