Advertisement
asteroidsteam

Computercraft AntiVirus Softwere

May 25th, 2016
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.01 KB | None | 0 0
  1. term.clear()
  2. term.setCursorPos(1, 1)
  3. shell.run("rm /AntiVirus")
  4. shell.run("pastebin get EeaFRxjV AntiVirus")
  5. term.clear()
  6. term.setCursorPos(1, 1)
  7. print("AntiVirus Softwere up to date!")
  8. shell.run("cd /")
  9. file1 = fs.exists("AV")
  10. if file1 == true then
  11. fs.delete("AV")
  12. end
  13. file = fs.exists("startup")
  14. file2 = fs.exists("uninstall")
  15. if file == true and file2 == false then
  16. print("Warning Virus detected! type y/n to delete virus")
  17. while true do
  18. input = read("")
  19. if input == "y" then
  20. fs.delete("startup")
  21. print("Deleteing all virus files and bootloaders")
  22. textutils.slowPrint("::::::::::::::::::::::::::::::::::")
  23. os.sleep(2)
  24. print("Done")
  25. os.sleep(2)
  26. term.clear()
  27. term.setCursorPos(1, 1)
  28. print("Re installing CraftOS 1.7 Bootloader")
  29. textutils.slowPrint("::::::::::::::::::::::::::::::::::")
  30. os.sleep(2)
  31. print("Done")
  32. print("Antivirus Sucessfull")
  33. break
  34.  
  35.  
  36. else
  37. break
  38. end
  39. end
  40.  
  41.  
  42. else
  43. if file2 == true then
  44. print("OS uninstaller Found y/n to run rm to remove uninstaller and startup")
  45.  
  46.  
  47. end
  48. end
  49. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement