Advertisement
Guest User

Untitled

a guest
Nov 21st, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. os.pullEvent = os.pullEventRaw
  2. while true do
  3. term.clear()
  4. term.setCursorPos(1,1)
  5. print("Sicherheits Terminal")
  6. print("")
  7. write("Passwort> ")
  8. input = read("*")
  9. sfile = io.open("code", "r")
  10. pass = sfile:read()
  11. sfile:close()
  12. if pass == input then
  13. term.clear()
  14. term.setCursorPos(1,1)
  15. print("Sicherheits Terminal")
  16. print("")
  17. print("1 = Ändere Monitor Einstellungen")
  18. print("2 = Ändere Sicherheits Code")
  19. print("3 = Verlassen")
  20. print("")
  21. write("> ")
  22. input2 = read()
  23. if input2 == "1" then
  24. shell.run("edit config")
  25. os.reboot()
  26. elseif input2 == "2" then
  27. shell.run("edit code")
  28. sleep(0)
  29. elseif input2 == "3" then
  30. sleep(0)
  31. end
  32. else
  33. print("Falsch")
  34. sleep(3)
  35. end
  36. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement