Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function namecheck()
- filelist = fs.list("/")
- names = {"cp", "dir", "ls", "mv", "rm", "computer", "http", "secret", "turtle", "bit", "colors", "colours", "gps", "help", "io", "parallel", "rednet", "term", "textutils", "vector", "os", "math", "fs", "coroutine", "parallel", "peripheral", "rs", "redstone", "shell", "string", "table", "term", "adventure", "hello", "worm", "pastebin", "alongtimeago", "dance", "excavate", "go", "tunnel", "turn"}
- for b = 1, #filelist do
- for i = 1, #names do
- if filelist[b] == names[i] then
- viruses = viruses+1
- files = files+1
- print("Virus "General.Malware" found in /" .. filelist[b])
- log("Virus "General.Malware" found in /" .. filelist[b])
- filemove("/" .. filelist[b], "/disk/bad" .. filelist[b])
- else
- end
- end
- end
- end
- function syscheck()
- filelist = fs.list("/")
- system = fs.list("/rom/programs")
- for b = 1, #filelist do
- for i = 1, #system do
- if filelist[b] == system[i] then
- viruses = viruses+1
- files = files+1
- print("Virus "General.Malware" found in /" .. filelist[b])
- log("Virus "General.Malware" found in /" .. filelist[b])
- filemove("/" .. filelist[b], "/disk/bad" .. filelist[b])
- else
- end
- end
- end
- end
Add Comment
Please, Sign In to add comment