Advertisement
strathaxxs

Untitled

Oct 21st, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. function setpass()
  2. pass = read("*")
  3. end
  4. function checkpass()
  5. passc = read("*")
  6. end
  7.  
  8. function main()
  9. term.clear()
  10. term.setCursorPos(1,1)
  11. print("Enter a Access 1.1 door password.")
  12. setpass()
  13. print("Re-enter your password to confirm.")
  14. checkpass()
  15. end
  16. function check()
  17. if pass==passc then
  18. if fs.exists("key") then
  19. shell.run("delete","key")
  20. end
  21. f = fs.open("key","w")
  22. w.write(pass)
  23. shell.run("disk/install")
  24. else
  25. main()
  26. end
  27. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement