Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function setpass()
- pass = read("*")
- end
- function checkpass()
- passc = read("*")
- end
- function main()
- term.clear()
- term.setCursorPos(1,1)
- print("Enter a Access 1.1 door password.")
- setpass()
- print("Re-enter your password to confirm.")
- checkpass()
- end
- function check()
- if pass==passc then
- if fs.exists("key") then
- shell.run("delete","key")
- end
- f = fs.open("key","w")
- w.write(pass)
- shell.run("disk/install")
- else
- main()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement