MIRCX IRC Network
Would you like to react to this message? Create an account in a few clicks or log in to continue.
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 SupyBot PyLink Hopm
Latest topics
» מדריך גירסה INSPIRCD V4
Security BOT ! ver 1.9 by Arthas and Sypho EmptySat Aug 05, 2023 2:09 am by Chief

» mIRCx IRC Network Config
Security BOT ! ver 1.9 by Arthas and Sypho EmptySat Jul 15, 2023 9:51 pm by Chief

» ircu2.10.12-pk with dnsbl
Security BOT ! ver 1.9 by Arthas and Sypho EmptyFri Mar 10, 2023 2:22 pm by Admin

» Guide install PyLink on New version FreeBSD
Security BOT ! ver 1.9 by Arthas and Sypho EmptyThu Dec 15, 2022 9:39 pm by Chief

» מדריך התקנה PBot על מערכת הפעלה FreeBsd-12
Security BOT ! ver 1.9 by Arthas and Sypho EmptyMon Dec 05, 2022 5:44 am by Chief

» install Nefarious2 && X3 IRC Services in FreeBsd
Security BOT ! ver 1.9 by Arthas and Sypho EmptySat Nov 12, 2022 3:12 pm by Chief

» help problem with adduser in Freebsd 12
Security BOT ! ver 1.9 by Arthas and Sypho EmptyFri Nov 11, 2022 9:06 pm by Chief

» מדריך פקודות והתקנה בסרביס X3
Security BOT ! ver 1.9 by Arthas and Sypho EmptyFri Oct 28, 2022 1:43 pm by Chief

» מדריך הגדרות WebIRC in Nefarious2
Security BOT ! ver 1.9 by Arthas and Sypho EmptyThu Apr 07, 2022 4:45 am by Chief

April 2024
MonTueWedThuFriSatSun
1234567
891011121314
15161718192021
22232425262728
2930     

Calendar Calendar

Affiliates
free forum

Affiliates
free forum


Security BOT ! ver 1.9 by Arthas and Sypho

Go down

Security BOT ! ver 1.9 by Arthas and Sypho Empty Security BOT ! ver 1.9 by Arthas and Sypho

Post  Admin Wed Apr 04, 2012 7:54 am

Code:

;Welcome to Arthas and Sypho Security BOT ! ver 1.9
on !@*:action:*:%Sec.channel:{
  if (*#* iswm $1-) || (*www* iswm $1-) || (*http* iswm $1-) || (*.com* iswm $1-) || (*.co.il* iswm $1-) && ($wildsite !isin %Sec.Protected) && (%Sec.advertise == ON) && ($nick isreg #) && ($nick ison %Sec.channel) {
    if (%Sec.kicks == 1) { ban # $wildsite | $nick Banned: 30 minutes tempban $+ $chr(44) Advertise channel detected. ID: %id $+ . | .timer 1 1800 mode # -b $wildsite }
    elseif (%Sec.kicks == 2) { msg q tempban # 30m $nick Banned: 30 minutes tempban $+ $chr(44) Advertise channel detected. ID: %id $+ . }
    else { ban # $wildsite | notice $nick Banned: 30 minutes tempban $+ $chr(44) Advertise channel detected. ID: %id $+ . | .timer 1 1800 mode # -b $wildsite }
    inc %id
  }
  if (%Sec.flood == ON) && ($nick isreg #) && ($nick ison %Sec.channel) && ($wildsite !isin %Sec.Protected) {
    inc -u3 % [ $+ [ $nick ] ]
    if (% [ $+ [ $nick ] ] == %Sec.floodtimes) {
      if (%Sec.kicks == 1) { ban # $wildsite | kick # $nick Banned: 15 minutes tempban $+ $chr(44) Flood channel detected. ID: %id $+ . | .timer 1 600 mode # -b $wildsite }
      elseif (%Sec.kicks == 2) { msg q tempban # $wildsite 15m Banned: 15 minutes tempban $+ $chr(44) Flood channel detected. ID: %id $+ . }
      else { ban # $wildsite | notice $nick Banned: 15 minutes tempban $+ $chr(44) Flood channel detected. ID: %id $+ . | .timer 1 600 mode # -b $wildsite }
      inc %id
    }
  }
  if (%Sec.flood == ON) && ($nick isreg #) && ($nick !== fishbot && $nick !== snailbot && $nick !== triviabot) && ($wildsite !isin %Sec.Protected && $nick !isin %tfldn) && ($nick ison %Sec.channel) {
    inc -u1 %tfld | set -u1 %tfldn $addtok(%tfldn,$nick,44)
    if (%tfld == 8) { mode %sec.channel +mir | var %x = 1 | while ($gettok(%tfldn,%x,44)) { .timer 1 %x msg q tempban %sec.channel $address($v1,2) 15m Banned: Flood channel detected. ID: %id $+ . | inc %x | inc %id } | unset %tfld %tfldn | .timer 1 15 mode %sec.channel -mir }
  }
  if (!Credits iswm $1) && (!%flood) { msg %Sec.channel $stl($Credits v1.9) | set -u4 %flood on }
  if (!sstatus == $1) || (!p-status == $1) || (!pstatus == $1) || (!s-status == $1) && (!%flood) { msg %Sec.channel $pstatus | set -u4 %flood on }
  if (* iswm $1-) { inc -u5 %1
    if (%1 == 10) { unset %1 | close -m | mode $me +R }
  }
  if ($1- == !SAdmins) || ($1- == !SOwners) && (!%flood) {
    if ($numtok(%Sec.owners,32) == 0) { msg # $stl(There are no admins.) | set -u4 %flood ON }
    else { msg # $stl(Security bot admins: $replace(%Sec.Owners,$chr(32),$chr(44) $+ $chr(32))) | set -u4 %flood ON }
  }
  if ($1- == !SProtected) || ($1- == !Protected) && (!%flood) {
    if ($numtok(%Sec.protected,32) == 0) { msg # $stl(There are no protected users.) | set -u4 %flood ON }
    else { msg # $stl(Security bot protected: $replace(%Sec.Protected,$chr(32),$chr(44) $+ $chr(32))) | set -u4 %flood ON }
  }
  if ($1- == !Update) || ($1- == !ver) || ($1- == !version) && (!%flood) { msg # $stl(Bot version: $ver) | set -u4 %flood ON }
  if ($1- == !doupdate) && (!%flood.update) { msg # $stl(Securitybot is now updating) | update | set -u4 %flood.update ON }
}
on *:text:*:*:{
  if ($me isop %sec.channel) {
    if ($target !ischan) {
    if (!$window(@PMS)) { .window @PMS } | .close -m $nick | .echo @PMS ( $+ $time $+ ) ( $+ $Nick $+ ) $1- }
    if ($target == %sec.channel) || ($target !ischan) {
      if ($istok(%Sec.Owners,$wildsite,32)) {
        if ($1 == !Sstatus) || (!p-status == $1) || (!pstatus == $1) || (!s-status == $1) && (!%flood) { msg $iif($target ischan,%sec.channel,$nick) $pstatus | set -u4 %flood on }
        if ($1 == !ALL) && (!%flood) {
          if ($2) {
            if ($2 == on) { ALLProtectionsON | msg $iif($target ischan,%sec.channel,$nick) $stl(done, All protections has turned on) | set -u3 %flood ON }
            else { ALLProtectionsOFF | msg $iif($target ischan,%sec.channel,$nick) $stl(done, All protections has turned off) | set -u3 %flood ON }
          }
        }
        if ($1 == !Advertise) && (!%flood) {
          if ($2) {
            if ($2 == on) { set %Sec.advertise ON | msg $iif($target ischan,%sec.channel,$nick) $stl(done, Advertise protection has turned on) | set -u3 %flood ON }
            else { set %Sec.advertise OFF | msg $iif($target ischan,%sec.channel,$nick) $stl(done, Advertise protection has turned off) | set -u3 %flood ON }
          }
        }
        if ($1 == !PMAdvertise) && (!%flood) {
          if ($2) {
            if ($2 == on) { set %Sec.PMadvertise ON | msg $iif($target ischan,%sec.channel,$nick) $stl(done, PMAdvertise protection has turned on) | set -u3 %flood ON }
            else { set %Sec.PMadvertise OFF | msg $iif($target ischan,%sec.channel,$nick) $stl(done, PMAdvertise protection has turned off) | set -u3 %flood ON }
          }
        }
        if ($1 == !Flood) && (!%flood) {
          if ($2) {
            if ($2 == on) { set %Sec.Flood ON | msg $iif($target ischan,%sec.channel,$nick) $stl(done, Flood protection has turned on) | set -u3 %flood ON }
            else { set %Sec.Flood OFF | msg $iif($target ischan,%sec.channel,$nick) $stl(done, Flood protection has turned off) | set -u3 %flood ON }
          }
        }
        if ($1 == !Takeover) && (!%flood) {
          if ($2) {
            if ($2 == on) { set %Sec.AntiTakeOver ON | msg $iif($target ischan,%sec.channel,$nick) $stl(done, Takeover protection has turned on) | set -u3 %flood ON }
            else { set %Sec.AntiTakeOver OFF | msg $iif($target ischan,%sec.channel,$nick) $stl(done, Takeover protection has turned off) | set -u3 %flood ON }
          }
        }
        if ($1 == !JoinPart) && (!%flood) {
          if ($2) {
            if ($2 == on) { set %Sec.JoinPart ON | msg $iif($target ischan,%sec.channel,$nick) $stl(done, Joinpart protection has turned on) | set -u3 %flood ON }
            else { set %Sec.JoinPart OFF | msg $iif($target ischan,%sec.channel,$nick) $stl(done, Joinpart protection has turned off) | set -u3 %flood ON }
          }
        }
        if ($1 == !Clones) && (!%flood) {
          if ($2) {
            if ($2 == on) { set %Sec.Clones ON | msg $iif($target ischan,%sec.channel,$nick) $stl(done, anti Clones protection has turned on) | set -u3 %flood ON }
            else { set %Sec.Clones OFF | msg $iif($target ischan,%sec.channel,$nick) $stl(done, anti clones has turned off) | set -u3 %flood ON }
          }
        }
        if ($1 == !JoinFlood) && (!%flood) {
          if ($2) {
            if ($2 == on) { set %Sec.Clones ON | msg $iif($target ischan,%sec.channel,$nick) $stl(done, Joinflood protection has turned on) | set -u3 %flood ON }
            else { set %Sec.Clones OFF | msg $iif($target ischan,%sec.channel,$nick) $stl(done, Joinflood protection has turned off) | set -u3 %flood ON }
          }
        }
        if ($1 == !Clones/JoinFlood) && (!%flood) {
          if ($2) {
            if ($2 == on) { set %Sec.Clones ON | msg $iif($target ischan,%sec.channel,$nick) $stl(done, Clones/Joinflood has turned on) | set -u3 %flood ON }
            else { set %Sec.Clones OFF | msg $iif($target ischan,%sec.channel,$nick) $stl(done, Clones/Joinflood has turned off) | set -u3 %flood ON }
          }
        }
        if ($1 == !OpenProxy) && (!%flood) {
          if ($2) {
            if ($2 == on) { set %Sec.Openproxy ON | msg $iif($target ischan,%sec.channel,$nick) $stl(done, Openproxy protection has turned on) | set -u3 %flood ON }
            else { set %Sec.Openproxy OFF | msg $iif($target ischan,%sec.channel,$nick) $stl(done, Openproxy protection has turned off) | set -u3 %flood ON }
          }
        }
        if ($1 == !n) || ($1 == !notice) && (!%flood) {
          if ($2) { mode %sec.channel -N | notice %sec.channel $stl($2-) | mode %sec.channel +N | set -u4 %flood ON }
          else { msg $iif($target ischan,%sec.channel,$nick) $stl(Please write something.) | set -u4 %flood ON }
        }
        if ($1 == !SetChannel) && (!%flood) { set %lastchan %Sec.channel | timer 1 5 unset %lastchan | set %Sec.channel $2 | timer 1 1 msg $iif($target ischan,%sec.channel,$nick) $stl(Done. Changing channel from  $+ %lastchan $+  to %Sec.channel) | part %lastchan | timer 1 4 join %Sec.channel | set -u4 %flood ON }
        if ($1 == !Channel) && (!%flood) { msg $iif($target ischan,%sec.channel,$nick) $stl(Correct channel is %Sec.channel) | set -u4 %flood ON }
        if ($1 == !Add) && (!%flood) { set -u4 %flood ON | msg $iif($target ischan,%sec.channel,$nick) $stl($3 ( $+ $address($3,2) $+ ) was added to the $iif($2 == AV,auto voice) $iif($2 == AO,auto op) $iif($2 == black,black) list.) | if ($2 == AO) { set %sec.ao $addtok(%sec.ao,$address($3,2),32) } | if ($2 == AV) { set %sec.av $addtok(%sec.av,$address($3,2),32) } | if ($2 == black) { set %sec.black $addtok(%sec.black,$address($3,2),32) | if ($3 ison %sec.channel) { mode %sec.channel +b $address($3,2) | kick %sec.channel $3 Banned: Sorry mann ... you'r in my blacklist ! } } | if ($2 == vip) { set %sec.vip $addtok(%sec.vip,$address($3,2),32) | if ($3 ison %sec.channel) { mode # +v $3 } } }
        if ($1 == !Del) && (!%flood) { set -u4 %flood ON | msg $iif($target ischan,%sec.channel,$nick) $stl($3 ( $+ $address($3,2) $+ ) was removed from the $iif($2 == AV,auto voice) $iif($2 == AO,auto op) $iif($2 == black,black) list.) | if ($2 == AO) { set %sec.ao $remtok(%sec.ao,$address($3,2),1,32) } | if ($2 == AV) { set %sec.av $remtok(%sec.av,$address($3,2),1,32) } | if ($2 == black) { set %sec.black $remtok(%sec.black,$address($3,2),1,32) | msg q bandel %sec.channel $address($3,2) } | if ($2 == vip) { set %sec.vip $remtok(%sec.vip,$address($3,2),1,32) | mode # -v $3 } }
        if ($1 == !Join) || ($1 == !Part) && (!%flood) { msg $iif($target ischan,%sec.channel,$nick) $stl($iif($1 == !join,Joining to,Parting from) $2) | $iif($1 == !join,join,part) $2 | set -u4 %flood ON }
        if ($1 == !Commands) && (!%flood) { msg $iif($target ischan,%sec.channel,$nick) $stl(Commands are: !All <ON/OFF> ¬ !Advertise <ON/OFF> ¬ !PMAdvertise <ON/OFF> ¬ !Flood <ON/OFF> ¬ !Takeover <ON/OFF> ¬ !JoinPart <ON/OFF> ¬ !Clones/JoinFlood <ON/OFF>) | msg $iif($target ischan,%sec.channel,$nick) $stl(!OpenProxy <ON/OFF> ¬ !N/Notice <YourNotice> ¬ !SetChannel <#Channel> ¬ !Channel ¬ !Add <AO/AV/BLACK/VIP> <NICK> ¬ !Del <AO/AV/BLACK/VIP> <NICK> ¬ !Join <#Channel> ¬ !Part <#Channel>) | set -u4 %flood ON }
      }
    }
    if ($target == %sec.channel) {
      if (*#* iswm $1-) || (*www* iswm $1-) || (*http* iswm $1-) || (*.com* iswm $1-) || (*.co.il* iswm $1-) && ($wildsite !isin %Sec.Protected) && (%Sec.advertise == ON) && ($nick isreg #) && ($nick ison %Sec.channel) {
        if (%Sec.kicks == 1) { ban # $wildsite | kick # $nick Banned: 30 minutes tempban $+ $chr(44) Advertise channel detected. ID: %id $+ . | .timer 1 1800 mode # -b $wildsite }
        elseif (%Sec.kicks == 2) { msg q tempban # $wildsite 30m Banned: 30 minutes tempban $+ $chr(44) Advertise channel detected. ID: %id $+ . }
        else { ban # $wildsite | notice $nick Banned: 30 minutes tempban $+ $chr(44) Advertise channel detected. ID: %id $+ . | .timer 1 1800 mode # -b $wildsite }
        inc %id
      }
      if (%Sec.flood == ON) && ($nick isreg #) && ($nick ison %Sec.channel) && ($wildsite !isin %Sec.Protected) {
        inc -u3 % [ $+ [ $nick ] ]
        if (% [ $+ [ $nick ] ] == %Sec.floodtimes) {
          if (%Sec.kicks == 1) { ban # $wildsite | kick # $nick Banned: 15 minutes tempban $+ $chr(44) Flood channel detected. ID: %id $+ . | .timer 1 600 mode # -b $wildsite }
          elseif (%Sec.kicks == 2) { msg q tempban # $wildsite 15m Banned: 15 minutes tempban $+ $chr(44) Flood channel detected. ID: %id $+ . }
          else { ban # $wildsite | notice $nick Banned: 15 minutes tempban $+ $chr(44) Flood channel detected. ID: %id $+ . | .timer 1 600 mode # -b $wildsite }
          inc %id
        }
      }
      if (%Sec.flood == ON) && ($nick isreg #) && ($nick !== fishbot && $nick !== snailbot && $nick !== triviabot) && ($wildsite !isin %Sec.Protected && $nick !isin %tfldn) && ($nick ison %Sec.channel) {
        inc -u1 %tfld | set -u1 %tfldn $addtok(%tfldn,$nick,44)
        if (%tfld == 8) { mode %sec.channel +mir | var %x = 1 | while ($gettok(%tfldn,%x,44)) { .timer 1 %x msg q tempban %sec.channel $address($v1,2) 15m Banned: Flood channel detected. ID: %id $+ . | inc %x | inc %id } | unset %tfld %tfldn | .timer 1 15 mode %sec.channel -mir }
      }
      if (!Credits iswm $1) && (!%flood) { msg %Sec.channel $stl($Credits v1.9) | set -u4 %flood on }
      if (!sstatus == $1) || (!p-status == $1) || (!pstatus == $1) || (!s-status == $1) && (!%flood) { msg %Sec.channel $pstatus | set -u4 %flood on }
      if (* iswm $1-) { inc -u5 %1
        if (%1 == 10) { unset %1 | close -m | mode $me +R }
      }
      if ($1- == !SAdmins) || ($1- == !SOwners) && (!%flood) {
        if ($numtok(%Sec.owners,32) == 0) { msg # $stl(There are no admins.) | set -u4 %flood ON }
        else { msg # $stl(Security bot admins: $replace(%Sec.Owners,$chr(32),$chr(44) $+ $chr(32))) | set -u4 %flood ON }
      }
      if ($1- == !SProtected) || ($1- == !Protected) && (!%flood) {
        if ($numtok(%Sec.protected,32) == 0) { msg # $stl(There are no protected users.) | set -u4 %flood ON }
        else { msg # $stl(Security bot protected: $replace(%Sec.Protected,$chr(32),$chr(44) $+ $chr(32))) | set -u4 %flood ON }
      }
      if ($1- == !Update) || ($1- == !ver) || ($1- == !version) && (!%flood) { msg # $stl(Bot version: $ver) | set -u4 %flood ON }
      if ($1- == !doupdate) && (!%flood.update) { msg # $stl(Securitybot is now updating) | update | set -u4 %flood.update ON }
    }
    else {
      if (*#* iswm $1-) && ($nick isreg %Sec.channel) && ($wildsite !isin %Sec.Protected) && ($nick ison %Sec.channel) && (%Sec.PMadvertise == ON) {
        if (%Sec.kicks == 1) { ban # $wildsite | kick # $nick Banned: 30 minutes tempban $+ $chr(44) PM advertise channel detected. ID: %id $+ . | .timer 1 1800 mode # -b $wildsite }
        elseif (%Sec.kicks == 2) { msg q tempban # $wildsite 30m Banned: 30 minutes tempban $+ $chr(44) PM advertise channel detected. ID: %id $+ . }
        else { ban # $wildsite | notice $nick Banned: 30 minutes tempban $+ $chr(44) PM advertise channel detected. ID: %id $+ . | .timer 1 1800 mode # -b $wildsite }
        inc %id
      }
    }
  }
}
on !@*:join:%Sec.channel: {
  if ($gettok($address($nick,2),2,64) isin %sec.vip) { msg %Sec.channel  $+ %Security.Color1 $+ %Security.Color3 $+ $chr(91) $+ %Security.Color2 $+ V1P $+ %Security.Color3 $+ $chr(93) $+ %Security.Color1 Hello $nick $+ %Security.Color1 $+ $chr(44) you are in my VIP list. ( $+ $wildsite $+ ) %Security.Color3 $+ $chr(91) $+ %Security.Color2 $+ V1P $+ %Security.Color3 $+ $chr(93) | mode # +v $nick }
  if ($gettok($address($nick,2),2,64) isin %sec.av) { mode # +v $nick }
  if ($gettok($address($nick,2),2,64) isin %sec.ao) { mode # +o $nick }
  if ($gettok($address($nick,2),2,64) isin %sec.black) { mode # +b $wildsite | kick # $nick Banned: Sorry mann ... you'r in my blacklist ! }
  if (%Sec.openproxy = ON && $level($ulist($address($nick,5))) == OpenProxy) {
    inc %id
    if (% [ $+ [ $maddress ] ] !== ON) {
      msg q tempban # $maddress 30m Banned: Invaild Host. ID: %id $+ .
      seeeeet
    }
  }
  if (%Sec.Clones == ON) && (*.users.quakenet.org !iswm $wildsite) && ($nick != Q) && ($nick != S) && ($nick != fishbot) && ($nick != snailbot) && ($nick != triviabot) && ($nick != wowbot) {
    hinc $+(-mu,$iif($hget(jflood,join).unset,$ifmatch,2)) JOIN FLOOD
    if (!$read(clonesnicks.txt, w ,$nick)) {
      write clonesnicks.txt $wildsite
      if (%sec.cloness != ON) {
      timer2 1 4 .remove clonesnicks.txt }
    }
    if ($hget(join,flood) >= 4) && (%sec.cloness != ON) {
      timer1 off
      timer2 off
      mode %sec.channel +imr
      set %sec.cloness ON
      timer 1 1 qbanC
      timer 1 25 mode %sec.channel -imr
      timer 1 25 set %sec.cloness OFF
    }
  }
}
on !@*:part:%Sec.channel: {
  if ($wildsite !isin %Sec.Protected) {
    if (%Sec.joinpart == ON) && ($nick isreg #) {
      inc -u15 %Sec.Join/Part. [ $+ [ $nick ] ]
      if (%Sec.Join/Part. [ $+ [ $nick ] ] == %Sec.Joinparttimes) {
        if (%Sec.kicks == 1) { ban # $wildsite | kick # $nick Banned: 15 minutes tempban $+ $chr(44) Join part. ID: %id $+ . | .timer 1 600 mode # -b $wildsite }
        elseif (%Sec.kicks == 2) { msg q tempban # $wildsite 15m Banned: 15 minutes tempban $+ $chr(44) Join part. ID: %id $+ . }
        else { ban # $wildsite | notice $nick Banned: 15 minutes tempban $+ $chr(44) Join part. ID: %id $+ . | .timer 1 600 mode # -b $wildsite }
        inc %id
      }
    }
  }
}
on !@*:ban:%Sec.channel:{
  if ($replace($banmask,*!*@,) isin %Sec.Protected) && ($nick != $me) {
    msg q bandel # $banmask
    msg q tempban # $wildsite 30m Banned: Dont handle with my boss.
  }
  if (%Sec.Antitakeover == ON) && ($nick !== Q) && ($nick ison %Sec.channel) && ($wildsite !isin %Sec.Protected) {
    inc -u10 % [ $+ [ $nick ] ]
    if (% [ $+ [ $nick ] ] == 5) {
      msg q banclear #
      msg q tempban # $wildsite 30m Banned: Dont try to takeover here.
      msg q REMOVEUSER # $nick
      unset % [ $+ [ $nick ] ]
    }
  }
  if (* $+ $gettok($address($me,2),2,64) iswm $banmask) && ($nick != $me) {
    if ($nick !== Q) {
      msg q unbanme #
      msg q invite #
      msg q tempban # $wildsite 30m Banned: Dont ban me ...
      msg q REMOVEUSER # $nick
      timer 1 2 join #
      timer 1 1 msg q unbanme #
      echo -a $nick 1
    }
    else {
      msg q unbanme #
      msg q invite #
      timer 1 1 join #
      echo -a $nick 2
    }
  }
}
alias dontDOitAGIANmotherFUCKER { return $onjoin $onpart $onquit $ondisconnect $onkaki }
on !@*:kick:*:{
  if ($address($knick,2) isin %Sec.Protected) && ($nick != $me) && ($nick != Q) {
    msg q bandel # $address($knick,2)
    msg q tempban # $wildsite 30m Banned: Dont handle with my boss.
    timer 1 2 invite # $knick
  }
  if ($knick iswm $me) && ($wildsite !isin %Sec.Protected) {
    if ($nick !== Q) {
      msg q unbanme #
      msg q invite #
      msg q REMOVEUSER # $nick
      timer 1 1 join #
      msg q tempban # $wildsite 30m Banned: Dont kick me ...
    }
    else {
      msg q unbanme #
      msg q invite #
      timer 1 1 join #
    }
  }
  if (%Sec.Antitakeover == ON) && ($nick ison %Sec.channel) && ($nick !== Q) {
    inc -u10 % [ $+ [ $nick ] ]
    if (% [ $+ [ $nick ] ] == 5) {
      msg q banclear #
      msg q REMOVEUSER # $nick
      msg q tempban # $wildsite 30m Banned: Dont try to takeover here.
    }
  }
}
alias Credits return $+($chr(84),$chr(104),$chr(105),$chr(115),$chr(32),$chr(115),$chr(101),$chr(99),$chr(117),$chr(114),$chr(105),$chr(116),$chr(121),$chr(32),$chr(98),$chr(111),$chr(116),$chr(32),$chr(104),$chr(97),$chr(115),$chr(32),$chr(98),$chr(101),$chr(101),$chr(110),$chr(32),$chr(99),$chr(114),$chr(101),$chr(97),$chr(116),$chr(101),$chr(100),$chr(32),$chr(98),$chr(121),$chr(32),$chr(31),$chr(2),$chr(65),$chr(114),$chr(116),$chr(104),$chr(97),$chr(115),$chr(2),$chr(31),$chr(32),$chr(38),$chr(32),$chr(31),$chr(2),$chr(83),$chr(121),$chr(112),$chr(104),$chr(111),$chr(2),$chr(31),$chr(46))
dialog Security {
  title "Security bot"
  size -1 -1 136 152
  option dbu notheme
  tab "Settings", 1, 0 0 203 153
  text "Set channel:", 5, 4 24 31 8, tab 1
  edit "", 7, 37 22 34 12, tab 1 autohs
  text "When someone disobays the rules:", 8, 4 56 85 8, tab 1
  radio "Ban + kick", 9, 90 50 38 7, tab 1
  radio "Ban + notice", 10, 90 57 42 7, tab 1
  text "Reset amout of peoples that disobay the rules", 11, 4 72 111 8, tab 1
  button "Set", 12, 75 22 29 12, tab 1
  check "", 13, 118 70 8 12, tab 1
  text "words in 3 seconds", 22, 31 100 49 8, tab 1
  edit "", 21, 18 98 12 12, tab 1
  text "Flood", 20, 4 100 13 8, tab 1
  button "Set", 19, 90 82 29 12, tab 1
  edit "", 18, 64 82 22 12, tab 1
  text "On connect user modes:", 17, 4 84 59 8, tab 1
  button "Set", 27, 90 114 29 12, tab 1
  text "times to get ban", 26, 31 116 41 8, tab 1
  edit "", 25, 18 114 12 12, tab 1
  text "Part", 24, 4 116 11 8, tab 1
  button "Set", 23, 90 98 29 12, tab 1
  text "Change nick:", 14, 4 39 31 8, tab 1
  edit "", 15, 37 37 34 12, tab 1 autohs
  button "Change", 16, 75 37 29 12, tab 1
  tab "Protections", 2
  check "Advertise", 28, 2 22 42 10, tab 2
  check "PM Advertise", 29, 2 32 44 10, tab 2
  check "Flood", 30, 2 42 26 10, tab 2
  check "Join—»Part", 31, 2 52 40 10, tab 2
  check "Take over", 32, 2 62 42 10, tab 2
  check "Join Flood", 33, 2 72 38 10, tab 2
  check "Open proxy", 34, 2 82 44 10, tab 2
  check "All protections", 35, 2 102 46 10, tab 2
  box "", 36, -2 98 52 16, tab 2
  tab "Accesses", 3
  list 37, 6 40 124 38, tab 3 size vsbar
  text "Owners:", 38, 7 20 21 6, tab 3
  edit "", 39, 6 28 50 12, tab 3 autohs
  button "Add", 40, 58 28 27 13, tab 3
  text "Must *!*@ ex *!*@012.il", 47, 6 140 65 8, disable tab 3
  button "Remove", 41, 103 77 27 12, tab 3
  text "Protected:", 42, 7 80 27 6, tab 3
  edit "", 43, 6 88 50 12, tab 3 autohs
  list 45, 6 100 124 38, tab 3 size vsbar
  button "Remove", 46, 103 137 27 12, tab 3
  button "Clear", 54, 74 137 29 10, tab 3
  button "Clear", 55, 74 77 29 10, tab 3
  button "Add", 44, 56 88 27 13, tab 3
  tab "Credits ", 4
  text "This Securitybot has been created by Arthas and sypho", 48, 26 24 83 20, disable tab 4 center
  link "#HServ", 49, 56 50 20 8, tab 4
  link "www.HServ.co.il", 50, 46 58 42 8, tab 4
  text "Please join #HServ and pm Arthas or Sypho", 53, 15 128 107 14, disable tab 4
  text "Found any bugs ?", 52, 46 120 45 8, disable tab 4
  text "Bot version 1.9", 51, 48 88 37 8, disable tab 4
  radio "QBan", 6, 90 64 26 7, tab 1
}
on *:dialog:Security:init:*:{
  var %o = 1, %p = 1 | while (%o <= $lines(SecurityOwners.txt)) { did -a $dname 37 $read(SecurityOwners.txt, %o) | inc %o } | while (%p <= $lines(SecurityProtected.txt)) { did -a $dname 45 $read(SecurityProtected.txt, %p) | inc %p } | if (%Sec.Advertise == ON) && (%Sec.PMAdvertise == ON) && (%Sec.flood == ON) && (%Sec.joinpart == ON) && (%Sec.antitakeover == ON) && (%Sec.Clones == ON) && (%Sec.Openproxy == ON) did -c $DName 35
  did -a $DName 18 $usermode | did -a $DName 21 %Sec.floodtimes | did -a $DName 25 %Sec.Joinparttimes | did -a $DName 15 $me | did -a $DName 7 %Sec.channel | if (%Sec.Kicks == 1) did -c $DName 9 | if (!%Sec.Kicks) did -c $DName 10 | if (%Sec.Kicks == 2) did -c $DName 6 | if (%Sec.Advertise == ON) did -c $DName 28 | if (%Sec.PMadvertise == ON) did -c $DName 29 | if (%Sec.flood == ON) did -c $DName 30 | if (%Sec.joinpart == ON) did -c $DName 31 | if (%Sec.antitakeover == ON) did -c $DName 32 | if (%Sec.clones == ON) did -c $DName 33 | if (%Sec.openproxy == ON) did -c $DName 34
}
alias dodo1 var %x = 28 | while (%x <= 34) { did -c Security %x | inc %x }
alias dodo2 var %x = 28 | while (%x <= 34) { did -u Security %x | inc %x }
alias allon if (%Sec.Advertise == ON) && (%Sec.PMAdvertise == ON) && (%Sec.flood == ON) && (%Sec.joinpart == ON) && (%Sec.antitakeover == ON) && (%Sec.Clones == ON) && (%Sec.Openproxy == ON) did -c Security 35
alias Security { if (!$dialog(Security)) dialog -md Security Security }
on *:dialog:Security:sclick:*:{
  If ($Did == 28) {
    if ($did(28).state != 0) { set %Sec.Advertise ON | allon }
    else { set %Sec.Advertise OFF | did -u Security 35 }
  }
  If ($Did == 29) {
    if ($did(29).state != 0) { set %Sec.PMadvertise ON | allon }
    else { set %Sec.PMadvertise OFF | did -u Security 35 }
  }
  If ($Did == 30) {
    if ($did(30).state != 0) { set %Sec.flood ON | allon }
    else { set %Sec.flood OFF | did -u Security 35 }
  }
  If ($Did == 31) {
    if ($did(31).state != 0) { set %Sec.joinpart ON | allon }
    else { set %Sec.joinpart OFF | did -u Security 35 }
  }
  If ($Did == 32) {
    if ($did(32).state != 0) { set %Sec.AntiTakeOver ON | allon }
    else { set %Sec.AntiTakeOver OFF | did -u Security 35 }
  }
  If ($Did == 33) {
    if ($did(33).state != 0) { set %Sec.clones ON | allon }
    else { set %Sec.clones OFF | did -u Security 35 }
  }
  If ($Did == 34) {
    if ($did(34).state != 0) { set %Sec.openproxy ON | allon }
    else { set %Sec.openproxy OFF | did -u Security 35 }
  }
  If ($Did == 35) {
    if ($did(35).state != 0) { AllprotectionsON | dodo1 }
    else { AllprotectionsOFF | dodo2 }
  }
  If ($Did == 9) && ($did(9).state == 1) { set %Sec.kicks 1 }
  If ($Did == 6) && ($did(6).state == 1) { set %Sec.kicks 2 }
  If ($Did == 10) && ($did(10).state == 1) { unset %Sec.kicks }
  if ($Did == 13) { unset %id | timer 1 1 did -u $dname 13 }
  if ($Did == 49) { join #HServ }
  if ($Did == 50) { join #HServ }
  if ($Did == 12) && (* iswm $did(7)) { set %Sec.channel $did(7) | join $did(7) }
  If ($Did == 16) && (* iswm $did(15)) { nick $did(15) }
  If ($Did == 27) && (* iswm $did(25)) { set %Sec.Joinparttimes $did(25) }
  If ($Did == 23) && (* iswm $did(21)) { set %Sec.floodtimes $did(21) }
  If ($Did == 19) && (* iswm $did(18)) { set %Sec.modes $did(18) | mode $me + $+ $did(18) }
  If ($Did == 41) && ($did($dname,37).seltext) { var %s = $did($dname,37).seltext | did -d $DName 37 $did($DName,37).sel | set %Sec.Owners $remtok(%Sec.Owners,%s,1,32) | write -ds %s SecurityOwners.txt }
  If ($Did == 46) && ($did($dname,45).seltext) { var %u = $did($dname,45).seltext | did -d $DName 45 $did($DName,45).sel | set %Sec.protected $remtok(%Sec.Protected,%u,1,32) | write -ds %u SecurityProtected.txt }
  If ($Did == 40) && (*!*@*.* iswm $did(39)) && (!$istok(%Sec.Owners,$did(39),32)) { did -a $DName 37 $did(39) | set %Sec.Owners $addtok(%Sec.Owners,$did(39),32) | write SecurityOwners.txt $did(39) }
  If ($Did == 44) && (*!*@*.* iswm $did(43)) && (!$istok(%Sec.Protected,$did(43),32)) { did -a $DName 45 $did(43) | set %Sec.Protected $addtok(%Sec.Protected,$did(43),32) | write SecurityProtected.txt $did(43) }
  If ($Did == 55) { remove SecurityOwners.txt | did -r $dname 37 | unset %Sec.Owners }
  If ($Did == 54) { remove SecurityProtected.txt | did -r $dname 45 | unset %Sec.Protected }
}
menu * {
  .Security Bot: Security
}
alias AllprotectionsON set %Sec.Advertise ON | set %Sec.AntiTakeOver ON | set %Sec.Clones ON | set %Sec.flood ON | set %Sec.joinpart ON | set %Sec.openproxy ON | set %Sec.PMadvertise ON
alias AllprotectionsOFF set %Sec.Advertise OFF | set %Sec.AntiTakeOver OFF | set %Sec.Clones OFF | set %Sec.flood OFF | set %Sec.joinpart OFF | set %Sec.openproxy OFF | set %Sec.PMadvertise OFF
alias stl return %Security.Style1 %Security.Color1 $+  $+ $1- %Security.Style2
on *:MODE:%Sec.channel: if ($1 == +k) || ($1 == +ik) || ($1 == +i) && (%Sec.AntiTakeOver == ON) && ($nick !iswm Q) && ($nick !== $me) && ($wildsite !isin %Sec.Protected) { msg q REMOVEUSER # $nick | msg q tempban # $address($nick,2) 30m Banned: Dont try to takeover here. | mode # - $+ ik $2 }
alias nevermind hop %sec.channel
on *:connect:{ timer 0 1000 nevermind | mode $me +x | mode $me %Sec.modes | set %Security.Style1 14,1[3« | set %Security.Style2 3,1»14,1] | set %Security.Color1 0,1 | set %Security.Color2 3 | set %Security.Color3 14 }
on *:TEXT:*:?: if (!$read(Access.ini, w, * $+ $address)) { if (!$window(@*PMS*@ )) { .window @*Pms*@ } | .close -m $nick | .echo @*PMS*@ ( $+ $time $+ ) ( $+ $Nick $+ ) $1- }
alias pstatus return $stl(Advertise: $iif(%Sec.advertise == ON,3ON,4OFF) %Security.Color1 $+ PMAdvertise: $iif(%Sec.PMadvertise == ON,3ON,4OFF) %Security.Color1 $+ Flood: $iif(%Sec.flood == ON,3ON,4OFF) %Security.Color1 $+ JoinPart: $iif(%Sec.joinpart == ON,3ON,4OFF) %Security.Color1 $+ TakeOver: $iif(%Sec.antitakeover == ON,3ON,4OFF) %Security.Color1 $+ Clones/JoinFlood: $iif(%Sec.clones == ON,3ON,4OFF) %Security.Color1 $+ Openproxy: $iif(%Sec.openproxy == ON,3ON,4OFF))
alias ver return 2.5
alias qbanc {
  var %x = 1, %i = 1
  while ($read(clonesnicks.txt,%x)) {
    if ($nick != Arthason) {
      timer 1 %i msg q tempban %sec.channel $read(clonesnicks.txt,%x) 15m Banned: JoinFlood. ID: %id $+ . | inc %id | inc %i 1
    }
    inc %x
  }
  .timer 1 $calc(%i +1) mode %sec.channel -imr
  .timer 1 %i .remove clonesnicks.txt
  .timer 1 %i unset %Sec.ClonesS
}
alias seeeeet set -u5 % [ $+ [ $maddress ] ] ON
 
pastebin ©️ by decapitator - http://www.impulze.net/
Admin
Admin
Admin

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

https://mircx.forumotion.net

Back to top Go down

Back to top

- Similar topics

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