Advertisement
Parlocameon

Antivirus

Feb 6th, 2016
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.21 KB | None | 0 0
  1. term.setBackgroundColor(colors.blue)
  2. term.clear()
  3. term.setTextColor(colors.white)
  4. term.setCursorPos(15,1)
  5.  
  6. print("Parker Anti-Virus")
  7. sleep(3)
  8. if fs.exists("startup") then
  9. print()
  10. print("A startup file has been found.")
  11. sleep(3)
  12. fs.move("startup", "disk/quarantine/startup.vir")
  13. print()
  14. print("It has been moved to quarantine.")
  15. sleep(2)
  16. print()
  17. write("Would you like to remove, exit, or revert?: ")
  18. action = read()
  19. if action == "remove" then
  20. fs.delete("disk/quarantine/startup.vir")
  21. disk.eject("left")
  22. disk.eject("right")
  23. disk.eject("top")
  24. disk.eject("bottom")
  25. disk.eject("front")
  26. disk.eject("back")
  27. os.reboot()
  28. else
  29. if action == "exit" then
  30. disk.eject("left")
  31. disk.eject("right")
  32. disk.eject("top")
  33. disk.eject("bottom")
  34. disk.eject("front")
  35. disk.eject("back")
  36. os.reboot()
  37. else
  38. if action == "revert" then
  39. fs.move("disk/quarantine/startup.vir","startup")
  40. disk.eject("left")
  41. disk.eject("right")
  42. disk.eject("top")
  43. disk.eject("bottom")
  44. disk.eject("front")
  45. disk.eject("back")
  46. os.reboot()
  47. end
  48. end
  49. end
  50. else
  51. print()
  52. print("Startup not detected.")
  53. sleep(3)
  54. disk.eject("left")
  55. disk.eject("right")
  56. disk.eject("top")
  57. disk.eject("bottom")
  58. disk.eject("front")
  59. disk.eject("back")
  60. os.reboot()
  61. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement