Advertisement
Guest User

McAfee

a guest
Sep 2nd, 2014
444
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.38 KB | None | 0 0
  1. --[[
  2.     McAfee Virus protector for CraftOS 3.0+,
  3.     this update makes this app work on the
  4.     CraftOS 6.0 Beta (and all other Betas, we
  5.     checked with CraftCo), fixed a crash bug, and
  6.     has been made compatible with older versions
  7.     of CraftOS again!
  8.    
  9.     McAfee now needs "McAfeeReg" to be installed,
  10.     this is proof that this is not a pirated app,
  11.     this application will not run without it.
  12. --]]
  13.  
  14. term.setBackgroundColour(colours.lightBlue)
  15.  
  16. term.clear()
  17. term.setCursorPos(1, 1)
  18.  
  19. if fs.exists("CraftOS/McAfeeReg") == false then
  20.  shell.run("recovery")
  21. else
  22. end
  23.  
  24. term.setBackgroundColour(colours.blue)
  25. print ("McAfee virus protector CraftOS                     ")
  26. term.setBackgroundColour(colours.lightBlue)
  27. print ("  ")
  28. print ("all terms and conditions apply when using this software and any related")
  29. print ("  ")
  30. print ("CraftOS is software subject to use on term of ComputerCraft and the T&C, this Opertaing system or Software cannot be edited without written permission.")
  31. print ("  ")
  32. print ("Options: Basic: (will only look in home files)")
  33. print ("         Advanced: (checks folders as well)")
  34.  
  35. answer = read ()
  36. if answer == "basic" then
  37. print ("  ")
  38. print ("  ")
  39. print ("Basic check")
  40.  if fs.exists("virus") == true then
  41.   fs.delete("virus")
  42.  else
  43.  end
  44.  if fs.exists("trojan") == true then
  45.   fs.delete("trojan")
  46.  else
  47.  end
  48. end
  49.  
  50. if answer == "advanced" then
  51. print ("  ")
  52. print ("  ")
  53. print ("Advanced check")
  54.  if fs.exists("virus") == true then
  55.   fs.delete("virus")
  56.  else
  57.  end
  58.  if fs.exists("virus") == true then
  59.   fs.delete("virus")
  60.  else
  61.  end
  62.  if fs.exists("documents/virus") == true then
  63.   fs.delete("documents/virus")
  64.  else
  65.  end
  66.  if fs.exists("trojan") == true then
  67.   fs.delete("trojan")
  68.  else
  69.  end
  70.  if fs.exists("documents/trojan") == true then
  71.   fs.delete("documents/trojan")
  72.  else
  73.  end
  74.  if fs.exists("LabyOS/virus") == true then
  75.   fs.delete("LabyOS/virus")
  76.  else
  77.  end
  78.  if fs.exists("LabyOS/trojan") == true then
  79.   fs.delete("LabyOS/trojan")
  80.  else
  81.  end
  82. end
  83.  
  84. term.setCursorPos(1, 16)
  85.  
  86. print ("  ")
  87. write ("Done! Reboot now or later?: ")
  88.  
  89. answer = read ()
  90. if answer == "now" then
  91. print ("Rebooting")
  92. sleep(1.5)
  93. os.reboot()
  94. end
  95.  
  96. if answer == "later" then
  97. print ("Resuming system...")
  98. sleep(2)
  99. term.setTextColour(colours.white)
  100. term.setBackgroundColour(colours.black)
  101. term.clear()
  102. term.setCursorPos(1, 1)
  103. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement