matheuscat12

CraftEye Antivirus - by Rednet Works

Oct 9th, 2012
497
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.87 KB | None | 0 0
  1. function c()
  2. term.clear()
  3. term.setCursorPos(1,1)
  4. end
  5.  
  6. c()
  7. print("Welcome to CraftEye Free Antivirus")
  8. sleep(1)
  9. print("Verifying the Startups...")
  10. textutils.slowPrint("|-//-//-//-//-//-//-//-//-//-//-|")
  11. sleep(1)
  12. verify = fs.exists("/startup")
  13. if verify == true then
  14. print("1 Startup found")
  15. print("You want view the script of it?(Y/N)")
  16.   ans = read()
  17.   if ans == "y" then
  18.   shell.run("edit", "/startup")
  19.   print("The script is correct?(Y/N)")
  20.     sna = read()
  21.     if sna == "n" then
  22.     print("Deleting...")
  23.     fs.delete("/startup")
  24.     sleep(1)
  25.     print("Your computer has been disinfected")
  26.     sleep(1)
  27.     else
  28.     print("OK, ending the program")
  29.     sleep(1)
  30.     c()
  31.     end
  32.   else
  33.   print("The Startup files will be deleted")
  34.   fs.delete("/startup")
  35.   sleep(1)
  36.   end
  37. else
  38. print("The antivirus did not find any malicious of script file")
  39. end
Add Comment
Please, Sign In to add comment