Advertisement
Guest User

Untitled

a guest
Jun 4th, 2011
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.94 KB | None | 0 0
  1. alias check {
  2. var %x = 1
  3. while (%x <= $lines(p.txt)) {
  4. if ($read(p.txt,%x) $+ .*.* iswm $1) { return 1 }
  5. inc %x
  6. }
  7. return 0
  8. }
  9.  
  10. alias conn.check { .ctcp $me ping }
  11.  
  12. alias conn.chk { .timerping 0 60 conn.check }
  13.  
  14. on *:text:*:*:{
  15. if ($1- == !BotPro on) && ($group(#BotPro) == off) { .enable #BotPro }
  16. elseif ($1- == !BotPro off) && ($group(#BotPro) == on) { .disable #BotPro }
  17. }
  18.  
  19. #BotPro off
  20. raw 205:*:{
  21. if (((!$check($replace($regsubex($10,/.*(?:@|-|CBL)(\d+(-|\.)\d+(-|\.)\d+(-|\.)\d+).*/,\1),-,.))) && (!$regex($remove($10,$chr(40),$chr(41)),/.*(\.bezeqint\.net|\.bb\.netvision\.net\.il|\.inter\.net\.il|\.barak-online\.net|\.012\.net\.il|\.co\.il))$/))) {
  22. if (!$regex($10,/pyrexhosting.com|Vegeta@ip|118.73.broadband.iol.cz|.+@BlackPs.1-irc.com/)) gline $9 :Abuse - Proxy User - for more information please contact Chief.mIRCx@gmail.com
  23. }
  24. halt
  25. }
  26.  
  27. ctcp *:ping:if ($1 == ping) && ($nick == $me) { halt }
  28.  
  29. on *:connect:{ conn.chk }
  30.  
  31. on *:snotice:*:{
  32. if (*Client connecting* iswm $1-) {
  33. if $regex($9,/^([a-z][A-Z]\d([a-z]){2}\d[A-Z]\d{2}|\w{1}\d{4})$/) { gline $9 :Abuse - Potentially BotNet - for more information please contact Chief.mIRCx@gmail.com | halt }
  34. var %lx = $remove($10,$chr(40),$chr(41))
  35. if !$hget(cloner,%lx) { hadd -mu3 cloner %lx $9 }
  36. if $hget(cloner,0).item >= 4 {
  37. mode #mIRCx +R
  38. .timerBot 1 180 mode #mIRCx -R
  39. var %x 1
  40. while ($hget(cloner,%x).item) {
  41. dll WhileFix.dll WhileFix .
  42. gline $ifmatch - :Abuse - Connect Flood - for more information please contact Chief.mIRCx@gmail.com
  43. hdel -w cloner $ifmatch
  44. inc %x
  45. }
  46. }
  47. if (((!$check($replace($regsubex($10,/.*(?:@|-|CBL)(\d+(-|\.)\d+(-|\.)\d+(-|\.)\d+).*/,\1),-,.))) && (!$regex($remove($10,$chr(40),$chr(41)),/.*(\.bezeqint\.net|\.bb\.netvision\.net\.il|\.inter\.net\.il|\.barak-online\.net|\.012\.net\.il|\.co\.il))$/))) {
  48. if (!$regex($10,/pyrexhosting.com|Vegeta@ip|118.73.broadband.iol.cz|.+@BlackPs.1-irc.com/)) gline $9 :Abuse - Proxy User - for more information please contact Chief.mIRCx@gmail.com
  49. }
  50. }
  51. elseif (*Forbidding Q-lined* iswm $1-) {
  52. var %frm = $+(*@,$regsubex($6,/[\[\]]|\.$/gi,))
  53. gzline %frm - :Abuse - Q-lined - for more information please contact Chief.mIRCx@gmail.com
  54. }
  55. elseif (*has changed his/her nickname* iswm $1-) {
  56. var %lx = $remove($5,$chr(40),$chr(41))
  57. if !$hget(cn,%lx) { hadd -mu3 cn %lx $11 }
  58. if $hget(cn,0).item >= 4 {
  59. var %x 1
  60. while ($hget(cn,%x).item) {
  61. dll WhileFix.dll WhileFix .
  62. gline $ifmatch - :Abuse - Nick-Change Flood - for more informatio please contact Chief.mIRCx@gmail.com
  63. hdel -w cn $ifmatch
  64. inc %x
  65. }
  66. }
  67. }
  68. }
  69.  
  70. on *:text:*:*:{
  71. var %hs = $+(a,.,$hash($strip($1-),32)), %tk = $token($address($nick,5),2,33)
  72. if (*@*mIRCx.Co.iL iswm %tk) halt
  73. if !$hget(%hs,%tk) { hadd -mu3 %hs %tk $nick }
  74. if $hget(%hs,0).item >= 3 {
  75. var %x 1
  76. while ($hget(%hs,%x).item) {
  77. dll WhileFix.dll WhileFix .
  78. gline $ifmatch - :Abuse - Global Text Flood - for more information please contact Chief.mIRCx@gmail.com
  79. hdel -w %hs $ifmatch
  80. inc %x
  81. }
  82. }
  83. }
  84.  
  85. on *:notice:*:*:{
  86. var %hs = $+(a,.,$hash($strip($1-),32)), %tk = $token($address($nick,5),2,33)
  87. if (*@*mIRCx.Co.iL iswm %tk) halt
  88. if !$hget(%hs,%tk) { hadd -mu3 %hs %tk $nick }
  89. if $hget(%hs,0).item >= 3 {
  90. var %x 1
  91. while ($hget(%hs,%x).item) {
  92. dll WhileFix.dll WhileFix .
  93. gline $ifmatch - :Abuse - Notice Flood - for more information please contact Chief.mIRCx@gmail.com
  94. hdel -w %hs $ifmatch
  95. inc %x
  96. }
  97. }
  98. }
  99.  
  100. ctcp *:*:*:{
  101. var %hs = $+(a,.,$hash($strip($1-),32)), %tk = $token($address($nick,5),2,33)
  102. if (*@*mIRCx.Co.iL iswm %tk) halt
  103. if !$hget(%hs,%tk) { hadd -mu3 %hs %tk $nick }
  104. if $hget(%hs,0).item >= 3 {
  105. var %x 1
  106. while ($hget(%hs,%x).item) {
  107. dll WhileFix.dll WhileFix .
  108. gline $ifmatch - :Abuse - CTCP Flood - for more information please contact Chief.mIRCx@gmail.com
  109. hdel -w %hs $ifmatch
  110. inc %x
  111. }
  112. }
  113. }
  114.  
  115. on *:dccserver:*:{
  116. var %hs = $+(a,.,$hash($strip($1-),32)), %tk = $token($address($nick,5),2,33)
  117. if (*@*mIRCx.Co.iL iswm %tk) halt
  118. if !$hget(%hs,%tk) { hadd -mu3 %hs %tk $nick }
  119. if $hget(%hs,0).item >= 3 {
  120. var %x 1
  121. while ($hget(%hs,%x).item) {
  122. dll WhileFix.dll WhileFix .
  123. gline $ifmatch - :Abuse - Dcc Flood - for more information please contact Chief.mIRCx@gmail.com
  124. hdel -w %hs $ifmatch
  125. inc %x
  126. }
  127. }
  128. }
  129.  
  130. on *:snotice:*Unauthorized connection*:{
  131. var %r = \d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}
  132. if $regex($7,/.+\[( %r )\]\./gx) { zline $+(*@,$regml(1)) - :Abuse - Unauthorized Connection - for more information please contact Chief.mIRCx@gmail.com }
  133. }
  134. #BotPro end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement