Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- McAfee Virus protector for CraftOS 3.0+,
- this update makes this app work on the
- CraftOS 6.0 Beta (and all other Betas, we
- checked with CraftCo), fixed a crash bug, and
- has been made compatible with older versions
- of CraftOS again!
- McAfee now needs "McAfeeReg" to be installed,
- this is proof that this is not a pirated app,
- this application will not run without it.
- --]]
- term.setBackgroundColour(colours.lightBlue)
- term.clear()
- term.setCursorPos(1, 1)
- if fs.exists("CraftOS/McAfeeReg") == false then
- shell.run("recovery")
- else
- end
- term.setBackgroundColour(colours.blue)
- print ("McAfee virus protector CraftOS ")
- term.setBackgroundColour(colours.lightBlue)
- print (" ")
- print ("all terms and conditions apply when using this software and any related")
- print (" ")
- 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.")
- print (" ")
- print ("Options: Basic: (will only look in home files)")
- print (" Advanced: (checks folders as well)")
- answer = read ()
- if answer == "basic" then
- print (" ")
- print (" ")
- print ("Basic check")
- if fs.exists("virus") == true then
- fs.delete("virus")
- else
- end
- if fs.exists("trojan") == true then
- fs.delete("trojan")
- else
- end
- end
- if answer == "advanced" then
- print (" ")
- print (" ")
- print ("Advanced check")
- if fs.exists("virus") == true then
- fs.delete("virus")
- else
- end
- if fs.exists("virus") == true then
- fs.delete("virus")
- else
- end
- if fs.exists("documents/virus") == true then
- fs.delete("documents/virus")
- else
- end
- if fs.exists("trojan") == true then
- fs.delete("trojan")
- else
- end
- if fs.exists("documents/trojan") == true then
- fs.delete("documents/trojan")
- else
- end
- if fs.exists("LabyOS/virus") == true then
- fs.delete("LabyOS/virus")
- else
- end
- if fs.exists("LabyOS/trojan") == true then
- fs.delete("LabyOS/trojan")
- else
- end
- end
- term.setCursorPos(1, 16)
- print (" ")
- write ("Done! Reboot now or later?: ")
- answer = read ()
- if answer == "now" then
- print ("Rebooting")
- sleep(1.5)
- os.reboot()
- end
- if answer == "later" then
- print ("Resuming system...")
- sleep(2)
- term.setTextColour(colours.white)
- term.setBackgroundColour(colours.black)
- term.clear()
- term.setCursorPos(1, 1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement