| 0. 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32. 33. 34. 35. 36. 37. 38. 39. 40. 41. 42. 43. 44. 45. 46. 47. 48. 49. 50. 51. 52. 53. 54. 55. 56. 57. 58. 59. 60. 61. 62. 63. 64. 65. 66. 67. 68. 69. 70. 71. 72. 73. 74. 75. 76. 77. 78. 79. 80. 81. 82. 83. 84. 85. 86. 87. 88. 89. 90. 91. 92. 93. 94. 95. 96. 97. 98. 99. 100. 101. 102. 103. 104. 105. 106. 107. 108. 109. 110. 111. 112. 113. 114. 115. 116. 117. 118. 119. 120. 121. 122. 123. 124. 125. 126. 127. 128. 129. 130. 131. 132. 133. 134. 135. 136. 137. 138. 139. |
#!/usr/bin/ruby
require 'socket'
#variables
server = 'kubrick.freenode.net'
port = 6667
nick = '[Nicebot]'
chan = '#nncrew'
chan3 = '#crackfoo'
chan2 = '#nnc.mwp'
fuck = 0
while fuck <= 1
TCPSocket.open(server, port) do |sock|
sock.print("USER nndrop nndrop nndrop :by nicenamecrew\r\n")
sock.print("Nick #{nick}\r\n")
sock.print("JOIN #{chan}\r\n")
sock.print("JOIN #{chan2}\r\n")
while !sock.closed?
line = sock.readline.chomp
if line =~ /PING :(.*)/
sock.print("PONG #{$1}\r\n")
end
#help for the crew chan
if line =~ /.*?PRIVMSG #{chan} :!help/
sock.print("PRIVMSG #{chan} : ==Commands List==\r\n")
sock.print("PRIVMSG #{chan} :!say <text> \r\n")
sock.print("PRIVMSG #{chan} :!rootable <kernelversion> \r\n")
end
#help for the crack chan
if line =~ /.*?PRIVMSG #{chan2} :!help/
sock.print("PRIVMSG #{chan2} : ==Command List==\r\n")
sock.print("PRIVMSG #{chan2} :!add-md5 <hash> \r\n")
sock.print("PRIVMSG #{chan2} :!add-sha1 <hash> \r\n")
sock.print("PRIVMSG #{chan2} :!add-lm <hash> \r\n")
sock.print("PRIVMSG #{chan2} :!add-ntlm <hash> \r\n")
sock.print("PRIVMSG #{chan2} :!add-ciscopix <hash> \r\n")
sock.print("PRIVMSG #{chan2} :!add-mscache <hash> \r\n")
sock.print("PRIVMSG #{chan2} : ==Command List==\r\n")
end
#say :D
if line =~ /.*?PRIVMSG #{chan} :!say (.*)/
sock.print("PRIVMSG #{chan} :#{$1}\r\n")
end
if line =~ /.*?PRIVMSG #{chan2} :!say (.*)/
sock.print("PRIVMSG #{chan} :#{$1}\r\n")
end
#easter egg
if line =~ /.*?PRIVMSG #{chan} :apt-get moo/
sock.print("PRIVMSG #{chan} : (__) \r\n")
sock.print("PRIVMSG #{chan} : (oo) \r\n")
sock.print("PRIVMSG #{chan} : /------\/ \r\n")
sock.print("PRIVMSG #{chan} : / | || \r\n")
sock.print("PRIVMSG #{chan} : * /\---/\ \r\n")
sock.print("PRIVMSG #{chan} : ~~ ~~ \r\n")
sock.print("PRIVMSG #{chan} :....Have you cowed today?... \r\n")
end
#rootable v1.1 pre alpha xD(gonna figure out a clever way to switch to rootable.txt
if line =~ /.*?PRIVMSG #{chan} :!rootable (.*)/
if $1.include? "2.4.17"
sock.print("PRIVMSG #{chan} :#{$1} is rootable with -> newlocal, kmod, uselib24\r\n")
end
if $1.include? "2.4.18"
sock.print("PRIVMSG #{chan} :#{$1} is rootable with -> brk, brk2, newlocal, kmod, km.2\r\n")
end
if $1.include? "2.4.19"
sock.print("PRIVMSG #{chan} :#{$1} is rootable with -> brk, brk2, newlocal, kmod, km.2\r\n")
end
if $1.include? "2.4.20"
sock.print("PRIVMSG #{chan} :#{$1} is rootable with -> ptrace, kmod, ptrace-kmod, brk, brk2, km.2\r\n")
end
if $1.include? "2.4.21"
sock.print("PRIVMSG #{chan} :#{$1} is rootable with -> brk, brk2, ptrace, ptrace-kmod\r\n")
end
if $1.include? "2.4.22"
sock.print("PRIVMSG #{chan} :#{$1} is rootable with -> brk, brk2, ptrace, ptrace-kmod, km.2\r\n")
end
if $1.include? "2.4.22-10"
sock.print("PRIVMSG #{chan} :#{$1} is rootable with -> loginx\r\n")
end
if $1.include? "2.4.23"
sock.print("PRIVMSG #{chan} :#{$1} is rootable with -> mremap_pte\r\n")
end
if $1.include? "2.4.24"
sock.print("PRIVMSG #{chan} :#{$1} is rootable with -> mremap_pte, uselib24\r\n")
end
if $1.include? "2.4.25-1"
sock.print("PRIVMSG #{chan} :#{$1} is rootable with -> uselib24\r\n")
end
if $1.include? "2.4.27"
sock.print("PRIVMSG #{chan} :#{$1} is rootable with -> uselib24\r\n")
end
if $1.include? "2.6.2"
sock.print("PRIVMSG #{chan} :#{$1} is rootable with -> mremap_pte, krad, h00lyshit\r\n")
end
if $1.include? "2.6.5"
sock.print("PRIVMSG #{chan} :#{$1} is rootable with -> krad, krad2, h00lyshit\r\n")
end
if $1.include? "2.6.6"
sock.print("PRIVMSG #{chan} :#{$1} is rootable with -> krad, krad2, h00lyshit\r\n")
end
if $1.include? "2.6.7"
sock.print("PRIVMSG #{chan} :#{$1} is rootable with -> krad, krad2, h00lyshit\r\n")
end
if $1.include? "2.6.8"
sock.print("PRIVMSG #{chan} :#{$1} is rootable with -> krad, krad2, h00lyshit\r\n")
end
if $1.include? "2.6.8-5"
sock.print("PRIVMSG #{chan} :#{$1} is rootable with -> krad2, h00lyshit\r\n")
end
if $1.include? "2.6.9"
sock.print("PRIVMSG #{chan} :#{$1} is rootable with -> krad, krad2, h00lyshit\r\n")
end
if $1.include? "2.6.9-34"
sock.print("PRIVMSG #{chan} :#{$1} is rootable with -> r00t, h00lyshit\r\n")
end
if $1.include? "2.6.10"
sock.print("PRIVMSG #{chan} :#{$1} is rootable with -> krad, krad2, h00lyshit\r\n")
end
if $1.include? "2.6.13"
sock.print("PRIVMSG #{chan} :#{$1} is rootable with -> raptor, raptor2, h0llyshit, prctl\r\n")
end
if $1.include? "2.6.14"
sock.print("PRIVMSG #{chan} :#{$1} is rootable with -> raptor, raptor2, h0llyshit, prctl\r\n")
end
if $1.include? "2.6.15"
sock.print("PRIVMSG #{chan} :#{$1} is rootable with -> raptor, raptor2, h0llyshit, prctl\r\n")
end
if $1.include? "2.6.16"
sock.print("PRIVMSG #{chan} :#{$1} is rootable with -> raptor, raptor2, h0llyshit, prctl\r\n")
end
end
end
end
end
|