Search
 
 

Display results as :
 


Rechercher Advanced Search

Web Applications
install Joomla Wordpress Phpbb Drupal FluxBB PunBB osCommerce simple-machines MYBB moodle vBulletin Dolphin-v.7.1.1 PHPNUKE XOOPS
Services
install BorkNet Services X3 Services Anope Atheme Services Srvx IRC Srervices
IRCD
install Snircd IRCU INSPIRCD UNREAL Nefarious Bircd Bahamut Asuka Charybdis
TCL SCRIPT
TCL SCRIPT FOR EGGDROP Allprotection4.7 Antiproxy
Bots
Bots install FishBot bobot++ Eggdrop janus Omega Security Services Botnix Bopm
Keywords

speed  multi  

Latest topics
» מדריך התקנה WORDPRESS על FREEBSD11
Mon Jul 17, 2017 2:50 am by Chief

» מדריך התקנה postgreSQL && phpPgAdmin על FREEBSD11
Sun Jul 16, 2017 4:23 pm by Chief

» מדריך התקנה PHPMYADMIN על FREEBSD11
Sat Jul 15, 2017 5:44 am by Chief

» mIRCx IRC Network Config
Fri Jul 07, 2017 12:57 pm by Chief

» מדריך איך מתקינים DESKTOP על FREEBSD
Fri Jul 07, 2017 12:44 pm by Chief

» מדריך התקנה FTP SERVER על FREEBSD
Mon Jul 03, 2017 3:52 am by Chief

» install inspircd in freebsd 11
Sat Jul 01, 2017 11:57 pm by Chief

» מדריך התקנה FEDORA 25
Sat Jul 01, 2017 7:59 pm by Chief

» מדריך התקנה מערכת הפעלה FREEBSD
Sat Jun 24, 2017 12:59 am by Chief

August 2017
MonTueWedThuFriSatSun
 123456
78910111213
14151617181920
21222324252627
28293031   

Calendar Calendar

Affiliates
free forum

Affiliates
free forum


protection from botnet to only inspircd Server

View previous topic View next topic Go down

protection from botnet to only inspircd Server

Post  Admin on Fri Oct 14, 2011 4:00 pm

Code:

alias bk {
  ban %fChan $gettok($1,1,32)
  sakick %fChan $gettok($1,1,32) Join Flood!
  dline %twinC $fline(%twinC,$1)
}
alias sk {
  kline $gettok($1,1,32) - :Botnets Flood!
  dline %twinS $fline(%twinS,$1)
}
alias nk {
  ban %NChan $gettok($1,1,32)
  sakick %NChan $gettok($1,1,32) Notice Flood!
  dline %twinCN $fline(%twinCN,$1)
}
alias tk {
  ban %TChan $gettok($1,1,32)
  sakick %TChan $gettok($1,1,32) Text Flood!
  dline %twinCT $fline(%twinCT,$1)
}
alias pk {
  kline $gettok($1,1,32) - :Ctcp Flood!
  dline %twinCP $fline(%twinCP,$1)
}

alias nck {
  kline $iif($regex($gettok($1,4,32),/(\d+\.\d+\.\d+\.\d+)/),*@ $+ $regml(1),$gettok($1,1,32)) - :Nick Flood!
  dline %twinCk $fline(%twinCk,$1)
}

on !*:join:#:{
  if ($me !isop $chan) { return }
  var %winC = @joinF
  if (!$window(%winC)) { window -h %winC }
  var %resjoin = $calc($ctime - $gettok($fline(%winC,* $chan,$fline(%winC,* $chan,0)).text,2,32))
  if (%resjoin > 2) && ($fline(%winC,* $chan)) { dline %winC $fline(%winC,* $chan,$fline(%winC,* $chan,0)) }
  if ($fline(%winC,$nick * $chan)) { rline %winC $fline(%winC,$nick * $chan) $nick $ctime $chan }
  else { aline %winC $nick $ctime $chan }
  if (($fline(%winC,* $chan,0) >= 4) || (%autoJ. [ $+ [ $chan ] ] && $fline(%winC,* $chan,0))) {
    set %fChan $chan
    set %twinC %winC
    filter -wk %winC bk * $chan
    set -u2 %autoJ. [ $+ [ $chan ] ] 1
  }
}

on *:snotice:*Client connecting*:{
  var %winS = @connectF
  if (!$window(%winS)) { window -h %winS } 
  var %sre = $calc($ctime - $gettok($fline(%winS,* $serverip,$fline(%winS,* $serverip,0)).text,2,32))
  if (%sre > 3) && ($fline(%winS,* $serverip)) { dline %winS $fline(%winS,* $serverip,$fline(%winS,* $serverip,0)) }
  if ($fline(%winS,$9 * $serverip)) { rline %winS $fline(%winS,* $serverip) $9 $ctime $serverip }
  else { aline %winS $9 $ctime $serverip }
  if (($fline(%winS,* $serverip,0) >= 3) || (%autoS. [ $+ [ $serverip ] ])) {
    set %twinS %winS
    filter -wk %winS sk * $serverip
    set -u2 %autoS. [ $+ [ $serverip ] ] 1
  }
}

on *:snotice:*has changed his/her nickname*:{
  var %winCk = @nickF
  if (!$window(%winCk)) { window -h %winCk }
  var %snck = $calc($ctime - $gettok($fline(%winCk,* $serverip *,$fline(%winCk,* $serverip *,0)).text,2,32))
  if (%snck > 3) && ($fline(%winCk,* $serverip *)) { dline %winCk $fline(%winCk,* $serverip *,$fline(%winCk,* $serverip *,0)) }
  if ($fline(%winCk,* $serverip $5)) { rline %winCk $fline(%winCk,* $serverip $5) $11 $ctime $serverip $5 }
  else { aline %winCk $11 $ctime $serverip $5 }
  if (($fline(%winCk,* $serverip *,0) >= 3) || (%autonck. [ $+ [ $serverip ] ])) {
    set %twinCk %winCk
    filter -wk %winCk nck * $serverip *
    set -u2 %autonck. [ $+ [ $serverip ] ] 1
  }
}

on *:notice:*:#:{
  if ($me !isop $chan) { return }
  var %winN = @noticeF
  var %Nvar = $iif($hash($strip($1-),32),$v1,1)
  if (!$window(%winN)) { window -h %winN }
  var %resnot = $calc($ctime - $gettok($fline(%winN,* %Nvar $chan,$fline(%winN,* %Nvar $chan,0)).text,2,32))
  if (%resnot > 5) && ($fline(%winN,* %Nvar $chan)) { dline %winN $fline(%winN,* %Nvar $chan,$fline(%winN,* %Nvar $chan,0)) }
  if ($fline(%winN,$nick * $chan)) { rline %winN $fline(%winN,$nick * $chan) $nick $ctime %Nvar $chan }
  else { aline %winN $nick $ctime %Nvar $chan }
  if (($fline(%winN,* %Nvar $chan,0) >= 3) || (%autoN. [ $+ [ $chan ] $+ [ %Nvar ] ])) {
    set %NChan $chan
    set %twinCN %winN
    filter -wk %winN nk * %Nvar $chan   
    set -u2 %autoN. [ $+ [ $chan ] $+ [ %Nvar ] ] 1
  }
}

on *:text:*:#:{
  if ($me !isop $chan) { return }
  var %winT = @textF
  var %Tvar = $iif($hash($strip($1-),32),$v1,1)
  if (!$window(%winT)) { window %winT } 
  var %restext = $calc($ctime - $gettok($fline(%winT,* %Tvar $chan,$fline(%winT,* %Tvar $chan,0)).text,2,32))
  if (%restext > 5) && ($fline(%winT,* %Tvar $chan)) { dline %winT $fline(%winT,* %Tvar $chan,$fline(%winT,* %Tvar $chan,0)) }
  if ($fline(%winT,$nick * $chan)) { rline %winT $fline(%winT,$nick * $chan) $nick $ctime %Tvar $chan }
  else { aline %winT $nick $ctime %Tvar $chan }
  if (($fline(%winT,* %Tvar $chan,0) >= 3) || (%autoT. [ $+ [ $chan ] $+ [ %Tvar ] ])) {
    set %TChan $chan
    set %twinCT %winT
    filter -wk %winT tk * %Tvar $chan
    set -u2 %autoT. [ $+ [ $chan ] $+ [ %Tvar ] ] 1
  }
}

ctcp *:*:#:{
  if ($me !isop $chan) { return }
  var %winP = @ctcpF
  var %Cvar = $iif($hash($strip($1-),32),$v1,1)
  if (!$window(%winP)) { window -h %winP }
  var %resctcp = $calc($ctime - $gettok($fline(%winP,* %Cvar $chan,$fline(%winP,* %Cvar $chan,0)).text,2,32))
  if (%resctcp > 5) && ($fline(%winP,* %Cvar $chan)) { dline %winP $fline(%winP,* %Cvar $chan,$fline(%winP,* %Cvar $chan,0)) }
  if ($fline(%winP,$nick * $chan)) { rline %winP $fline(%winP,$nick * $chan) $nick $ctime %Cvar $chan }
  else { aline %winP $nick $ctime %Cvar $chan }
  if (($fline(%winP,* %Cvar $chan,0) >= 3) || (%autoP. [ $+ [ $chan ] $+ [ %Cvar ] ])) {
    set %PChan $chan
    set %twinCP %winP
    filter -wk %winP pk * %Cvar $chan
    set -u2 %autoP. [ $+ [ $chan ] $+ [ %Cvar ] ] 1
  }
}
טוב שלא תגידו שלא אמרתי לכם זה הגנה אך ורק לשרת שאין אותו בישראל מלבד מאצלנו Smile אז לא שווה לעתיק יום טוב
נבנה על ידי OR מנהל אתר ושרת של MIRCX Very Happy
avatar
Admin
Admin

מספר הודעות : 288
Join date : 2009-09-12
Age : 37
מיקום : mIRCX IRC Network

View user profile http://mircx.forumotion.net

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum