Advertisement
Guest User

virus

a guest
Jul 22nd, 2017
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.83 KB | None | 0 0
  1. local terminal = term.current()
  2. local password = "1234"
  3. local passwordWT = 1
  4. local logo = "<!SATANA!>"
  5. local text = logo.."TEXT\nTEXT\nTEXT"..logo
  6. while true do
  7. terminal.clear()
  8. terminal.setCursorPos(1,1)
  9. terminal.setTextColor(colors.red)
  10. terminal.write("You are infected a virus:"..logo)
  11. terminal.setCursorPos(1,2)
  12. terminal.setTextColor(colors.orange)
  13. terminal.write("Please wait password protection...")
  14. sleep(passwordWT)
  15. terminal.setCursorPos(1,1)
  16. terminal.clear()
  17. terminal.setTextColor(colors.red)
  18. terminal.write(text)
  19. local ext = false
  20. for i = 0,5,1 do
  21. local TCPX,TCPY = terminal.getCursorPos()
  22. terminal.setCursorPos(1,TCPY+1)
  23. terminal.write("Enter password(Enters:"..i.."/5)")
  24. local Epass = read()
  25. if Epass == password then
  26. ext = true
  27. break
  28. end
  29. end
  30. if ext then
  31. terminal.clear()
  32. break
  33. else
  34. os.reboot()
  35. end
  36. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement