Tchatting.com Forums
mIRC :: SCRIPTING & HELP mIRC Scripting help, General help, Tips and Tricks!

User Name
Password
Reply
 
Thread Tools Display Modes
  #1  
Old 22-08-2005, 12:23 PM
anmlhckr's Avatar
anmlhckr anmlhckr est déconnecté
Scripting Mod
 
Join Date: Jan 2005
Location: LB
Posts: 163
anmlhckr will become famous soon enoughanmlhckr will become famous soon enough
Send a message via MSN to anmlhckr Send a message via Yahoo to anmlhckr
Drone/Spam nick kicker (FIXED)

Code:
on @!*:JOIN:#:{ 
  if ($regex($nick,/^[^aeiou]+$)) && (!$hget(letin,$nick)) && ($me isop $chan) {
    hadd -mu60 $+(kicked,$chan) $nick $rcode(5)
    ban # $nick 2 | Kick # $nick Possible spam bot.
    notice $nick To be unbaned PLEASE type this: /msg $me !unban # $hget($+(kicked,#),$nick)
  }
  elseif ($regex($Nick,/^[A-Z][a-z]+[0-9]{2}$/) && (Guest* !iswm $nick) && (!$hget(letin,$nick))) && ($me isop $chan) {
    hadd -mu60 $+(kicked,$chan) $nick $rcode(5) 
    ban # $nick 2 | Kick # $nick Your nickname is similar to an infected user, join #nohack for further help. 
    notice $nick To be unbaned PLEASE type this: /msg $me !unban # $hget($+(kicked,$chan),$nick)
  }
  elseif ($hget(latin,$nick)) { hdel letin $nick | halt }
}  
alias -l kbz { 
  if ($me isop $1) && ($2 ison $1) {
    var %a = address($1,2), $calc($mid($3-,2,$calc($len($3-) - 1)) * 60)
    ban $iif(+* iswm $3-,-ku $+ %t,-k) $1 $2 $iif(!$3,$read(kicks.txt),$iif(+* iswm $3,$addtok($iif(!$4,time'd /kb,$4-),$+([,$dur(%t) $iif($4,temp ban),]),32),$3-))
  }
}
alias -l kbq { 
  if ($me isop $1) && ($2 ison $1) {
    var %a = address($1,2), $calc($mid($3-,2,$calc($len($3-) - 1)) * 60)
    ban $iif(+* iswm $3-,-ku $+ %t,-k) $1 $2 $iif(!$3,$read(kicks.txt),$iif(+* iswm $3,$addtok($iif(!$4,time'd /kb,$4-),$+([,$dur(%t) $iif($4,temp ban),]),32),$3-))
  }
}

on *:TEXT:!unban *:?:{
  if (#* iswm $2) && ($hget($+(kicked,$2),$nick) == $3) && ($me isop $2) { mode $2 -b $wildsite | hadd -m letin $nick $2 | .notice $nick YOu can join again }
  elseif ($3 != $hget($+(kicked,$2),$Nick)) && ($hget($+(kicked,$2),$Nick)) { .notice $Nick SOrry but your access code is wrong | halt }
  elseif (!$2) || (#* !iswm $2) { .notice $nick You must specify a channel and code | halt }
  elseif ($me !isop $2) { .notice $Nick Sorry, but I i don't have the power to unban u in $2 | halt }
}

alias rcode {
  var %letters = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789, %x = $1
  while (%x) { var %code = %code $+ $mid(%letters,$r(1,62),1) | dec %x }
  return %code
}
__________________
Me here, Me gone.
Reply With Quote
  #2  
Old 22-08-2005, 07:59 PM
Cult's Avatar
Cult Cult est déconnecté
Registered User
 
Join Date: Jan 2005
Location: Lebanon
Posts: 2,124
Cult is a jewel in the roughCult is a jewel in the roughCult is a jewel in the rough
Send a message via MSN to Cult
Re: Drone/Spam nick kicker (FIXED)

nice one bro, and it`s faster than any other spam drone bot kickers.
i don`t think that many scripters used $regex in such protection.
first time to see it.
__________________
Reply With Quote
  #3  
Old 22-08-2005, 08:57 PM
anmlhckr's Avatar
anmlhckr anmlhckr est déconnecté
Scripting Mod
 
Join Date: Jan 2005
Location: LB
Posts: 163
anmlhckr will become famous soon enoughanmlhckr will become famous soon enough
Send a message via MSN to anmlhckr Send a message via Yahoo to anmlhckr
Re: Drone/Spam nick kicker (FIXED)

Thanks dude, $regex are much better then anything and hash tables too, thanks for the comment.
Many ppl have asked me, WHY I MADE THIS CODE, Umm .. many OPS use a drone kicker, but they dont have a solution to unban the user and let him join without setting the REMOTES OFF. This code is gonna send the $knick a pass, which will let him be unbanned, and add him to a hash table, and never be banned as a DRONE.
While the next part of the kick which is the "elseif" part is gonna kick the users which their nicknames match "Eza19" "Melody10" Just read the $regex part and you will know, and it does the same thing that it do it in the drone part.. Thanks Cult.. Thanks for everone who is using it. .
__________________
Me here, Me gone.
Reply With Quote
  #4  
Old 22-08-2005, 09:06 PM
Cult's Avatar
Cult Cult est déconnecté
Registered User
 
Join Date: Jan 2005
Location: Lebanon
Posts: 2,124
Cult is a jewel in the roughCult is a jewel in the roughCult is a jewel in the rough
Send a message via MSN to Cult
Re: Drone/Spam nick kicker (FIXED)

thjanx for the explanation
__________________
Reply With Quote
  #5  
Old 22-08-2005, 09:13 PM
anmlhckr's Avatar
anmlhckr anmlhckr est déconnecté
Scripting Mod
 
Join Date: Jan 2005
Location: LB
Posts: 163
anmlhckr will become famous soon enoughanmlhckr will become famous soon enough
Send a message via MSN to anmlhckr Send a message via Yahoo to anmlhckr
Re: Drone/Spam nick kicker (FIXED)

Ur welcome
__________________
Me here, Me gone.
Reply With Quote
  #6  
Old 23-11-2005, 07:59 AM
Cult's Avatar
Cult Cult est déconnecté
Registered User
 
Join Date: Jan 2005
Location: Lebanon
Posts: 2,124
Cult is a jewel in the roughCult is a jewel in the roughCult is a jewel in the rough
Send a message via MSN to Cult
Re: Drone/Spam nick kicker (FIXED)

Fixed

Code:
#Spamigh on
on @!*:JOIN:#:{ 
  if ( a !isin $nick ) && ( e !isin $nick ) && ( i !isin $nick ) && ( o !isin $nick ) && ( u !isin $nick ) && ( $asc($left($nick,3)) !isnum 65-97 ) && ( _ !isin $nick ) && ( ^ !isin $nick ) && ( - !isin $nick ) && ( 200 !isin $nick ) && ( ` !isin $nick ) && ($len($nick) > 3) && ( $mid($nick,1,1) != $mid($nick,2,1) ) && ( $mid($nick,1,1) != $mid($nick,3,1) ) && ( $right($nick,1) !isnum 0-9 ) && ( $asc($left($nick,1)) != 123 ) && (!$hget(letin,$nick)) && ($me isop $chan) {
    hadd -mu60 $+(kicked,$chan) $nick $rcode(5)
    ban # $nick 2 
    Kick # $nick Possible Spam Bot 4C14ult 
    .notice $nick To be unbaned PLEASE type this: /msg $me !unban # $hget($+(kicked,#),$nick)
  }
  elseif ($regex($Nick,/^[A-Z][a-z]+[0-9]{2}$/) && (Guest* !iswm $nick) && (!$hget(letin,$nick))) && ($me isop $chan) && ($chan != #HDtest) {
    hadd -mu60 $+(kicked,$chan) $nick $rcode(5) 
    ban # $nick 2  
    Kick # $nick Infected, Please Join #nohack 4C14ult
    .notice $nick To be unbaned PLEASE type this: /msg $me !unban # $hget($+(kicked,$chan),$nick)
  }
  elseif ($hget(latin,$nick)) { hdel letin $nick | halt }
}  
alias -l kbz { 
  if ($me isop $1) && ($2 ison $1) {
    var %a = address($1,2), $calc($mid($3-,2,$calc($len($3-) - 1)) * 60)
    ban $iif(+* iswm $3-,-ku $+ %t,-k) $1 $2 $iif(!$3,$read(kicks.txt),$iif(+* iswm $3,$addtok($iif(!$4,time'd /kb,$4-),$+([,$dur(%t) $iif($4,temp ban),]),32),$3-))
  }
}
alias -l kbq { 
  if ($me isop $1) && ($2 ison $1) {
    var %a = address($1,2), $calc($mid($3-,2,$calc($len($3-) - 1)) * 60)
    ban $iif(+* iswm $3-,-ku $+ %t,-k) $1 $2 $iif(!$3,$read(kicks.txt),$iif(+* iswm $3,$addtok($iif(!$4,time'd /kb,$4-),$+([,$dur(%t) $iif($4,temp ban),]),32),$3-))
  }
}
on *:TEXT:!unban *:?:{
  if (#* iswm $2) && ($hget($+(kicked,$2),$nick) == $3) && ($me isop $2) { mode $2 -b $wildsite | hadd -m letin $nick $2 | .notice $nick YOu can join again | ruser spammer $nick }
  elseif ($3 != $hget($+(kicked,$2),$Nick)) && ($hget($+(kicked,$2),$Nick)) { 
    .notice $Nick SOrry but your access code is wrong 
    halt 
  }
  elseif (!$2) || (#* !iswm $2) { 
.notice $nick You must specify a channel and code 
    halt 
  }
  elseif ($me !isop $2) { 
    .notice $Nick Sorry, but I i don't have the power to unban u in $2 
    halt
  }
}
alias rcode {
  var %letters = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWX  YZ0123456789, %x = $1
  while (%x) { var %code = %code $+ $mid(%letters,$r(1,62),1) 
    dec %x 
  }
  return %code
}
#Spamigh end
menu status,menubar,channel {
  Drone Kick [[ %Spamigh ]] {
    if (%Spamigh == ON) { 
      .disable #Spamigh 
      set %Spamigh OFF 
      .echo 12 Drone Kick 4Off 
    } 
    else { 
      .enable #Spamigh 
      set %Spamigh ON 
      .echo 12 Drone kick 11ON 
    }
  }
}
__________________
Reply With Quote
  #7  
Old 23-11-2005, 08:02 AM
Cult's Avatar
Cult Cult est déconnecté
Registered User
 
Join Date: Jan 2005
Location: Lebanon
Posts: 2,124
Cult is a jewel in the roughCult is a jewel in the roughCult is a jewel in the rough
Send a message via MSN to Cult
Re: Drone/Spam nick kicker (FIXED)

needs some changes.
bug detected
__________________

Last edited by Cult; 07-03-2006 at 08:27 AM.
Reply With Quote
  #8  
Old 22-12-2005, 11:53 PM
EmotiveCobra's Avatar
EmotiveCobra EmotiveCobra est déconnecté
Registered User
 
Join Date: Jul 2005
Location: Tripoli ,LeBanon
Posts: 76
EmotiveCobra has a spectacular aura aboutEmotiveCobra has a spectacular aura about
Send a message via AIM to EmotiveCobra Send a message via MSN to EmotiveCobra Send a message via Yahoo to EmotiveCobra
Re: Drone/Spam nick kicker (FIXED)

works great
butsome times when the no spammers send the code in the privt the script does not reply or do not responds properly !!!
__________________
na Z em
Reply With Quote
  #9  
Old 26-12-2005, 07:44 AM
Cult's Avatar
Cult Cult est déconnecté
Registered User
 
Join Date: Jan 2005
Location: Lebanon
Posts: 2,124
Cult is a jewel in the roughCult is a jewel in the roughCult is a jewel in the rough
Send a message via MSN to Cult
Re: Drone/Spam nick kicker (FIXED)

Quote:
Originally Posted by EmotiveCobra
works great
butsome times when the no spammers send the code in the privt the script does not reply or do not responds properly !!!
please can u show me some nicks that the script is not to.
this code should act on the spammers join.
i can manage it to make it kick spammers on message/notice/action also in the same code.
__________________
Reply With Quote
  #10  
Old 26-12-2005, 11:10 AM
anmlhckr's Avatar
anmlhckr anmlhckr est déconnecté
Scripting Mod
 
Join Date: Jan 2005
Location: LB
Posts: 163
anmlhckr will become famous soon enoughanmlhckr will become famous soon enough
Send a message via MSN to anmlhckr Send a message via Yahoo to anmlhckr
Re: Drone/Spam nick kicker (FIXED)

Good one cult, but this may cause some problems.
First of all, it will cause lag, cause you added too many %vars, and on each join even occurs, the script wanna check if the nick is a drone from the VARIABLES, which will check more then 6 times, this may cause lag. Then, for the nicks, I guess EmotiveCobra is right, I am not sure, cause I didnt test the code yet, but I just read it, because not all the drone nicks are found in your code, so it wont work on few nicks, thanks.
Have a nice vacation, and Merry X-mas, happy new year.
__________________
Me here, Me gone.
Reply With Quote
  #11  
Old 26-12-2005, 12:48 PM
Cult's Avatar
Cult Cult est déconnecté
Registered User
 
Join Date: Jan 2005
Location: Lebanon
Posts: 2,124
Cult is a jewel in the roughCult is a jewel in the roughCult is a jewel in the rough
Send a message via MSN to Cult
Re: Drone/Spam nick kicker (FIXED)

Quote:
Originally Posted by anmlhckr
Good one cult, but this may cause some problems.
First of all, it will cause lag, cause you added too many %vars, and on each join even occurs, the script wanna check if the nick is a drone from the VARIABLES, which will check more then 6 times, this may cause lag. Then, for the nicks, I guess EmotiveCobra is right, I am not sure, cause I didnt test the code yet, but I just read it, because not all the drone nicks are found in your code, so it wont work on few nicks, thanks.
Have a nice vacation, and Merry X-mas, happy new year.
first of all, good to have u back in here.
2`nd, u`r right bro. but thats what i tried to do, and i have said up there, i haven`t tested it, coz am not joining irc, so anyone see something wrong, plz let me know inorder to be fixed.

merry X-mass to u too bro. and wish that all u`r dreams come true this new year (K)
__________________
Reply With Quote
  #12  
Old 26-12-2005, 03:02 PM
anmlhckr's Avatar
anmlhckr anmlhckr est déconnecté
Scripting Mod
 
Join Date: Jan 2005
Location: LB
Posts: 163
anmlhckr will become famous soon enoughanmlhckr will become famous soon enough
Send a message via MSN to anmlhckr Send a message via Yahoo to anmlhckr
Re: Drone/Spam nick kicker (FIXED)

Thanks bro, am glad that am back again .. Anyway .. Take care bro .. And we'll keep in touch ..
__________________
Me here, Me gone.
Reply With Quote
  #13  
Old 07-03-2006, 09:31 AM
Cult's Avatar
Cult Cult est déconnecté
Registered User
 
Join Date: Jan 2005
Location: Lebanon
Posts: 2,124
Cult is a jewel in the roughCult is a jewel in the roughCult is a jewel in the rough
Send a message via MSN to Cult
Re: Drone/Spam nick kicker (FIXED)

ok... i think there`s no more bugs in it now.
it won`t kick the nicks that were kicked and unbanned automatically any more.

Code:
#Spamigh on
on @!*:JOIN:#:{ 
  if ( a !isin $nick ) && ( e !isin $nick ) && ( i !isin $nick ) && ( o !isin $nick ) && ( u !isin $nick ) && ( $asc($left($nick,3)) !isnum 65-97 ) && ( _ !isin $nick ) && ( ^ !isin $nick ) && ( - !isin $nick ) && ( 200 !isin $nick ) && ( ` !isin $nick ) && ($len($nick) > 3) && ( $mid($nick,1,1) != $mid($nick,2,1) ) && ( $mid($nick,1,1) != $mid($nick,3,1) ) && ( $right($nick,1) !isnum 0-9 ) && ( $asc($left($nick,1)) != 123 ) && (!$hget(letin,$nick)) && ($me isop $chan) && ($ulevel != friend) {
    hadd -mu60 $+(kicked,$chan) $nick $rcode(5)
    ban # $nick 2 
    Kick # $nick Possible Spam Bot Detected. 4C14ult™ 
    .notice $nick To be unbaned PLEASE type this: /msg $me !unban # $hget($+(kicked,#),$nick) [AUTOMATED MSG] 4C14ult 4S14cript
  }
  elseif ($regex($Nick,/^[A-Z][a-z]+[0-9]{2}$/) && (Guest* !iswm $nick) && (!$hget(letin,$nick))) && ($me isop $chan) && ($ulevel != friend) {
    hadd -mu60 $+(kicked,$chan) $nick $rcode(5) 
    ban # $nick 2  
    Kick # $nick Infected, Please Join #nohack 4C14ult™
    .notice $nick To be unbaned PLEASE type this: /msg $me !unban # $hget($+(kicked,$chan),$nick) [AUTOMATED MSG] 4C14ult 4S14cript
  }
  elseif ($hget(latin,$nick)) { hdel letin $nick | halt }
}  
alias -l kbz { 
  if ($me isop $1) && ($2 ison $1) {
    var %a = address($1,2), $calc($mid($3-,2,$calc($len($3-) - 1)) * 60)
    ban $iif(+* iswm $3-,-ku $+ %t,-k) $1 $2 $iif(!$3,$read(kicks.txt),$iif(+* iswm $3,$addtok($iif(!$4,time'd /kb,$4-),$+([,$dur(%t) $iif($4,temp ban),]),32),$3-))
  }
}
alias -l kbq { 
  if ($me isop $1) && ($2 ison $1) {
    var %a = address($1,2), $calc($mid($3-,2,$calc($len($3-) - 1)) * 60)
    ban $iif(+* iswm $3-,-ku $+ %t,-k) $1 $2 $iif(!$3,$read(kicks.txt),$iif(+* iswm $3,$addtok($iif(!$4,time'd /kb,$4-),$+([,$dur(%t) $iif($4,temp ban),]),32),$3-))
  }
}
on *:TEXT:!unban *:?:{
  if (#* iswm $2) && ($hget($+(kicked,$2),$nick) == $3) && ($me isop $2) { 
    mode $2 -b $wildsite 
    hadd -m letin $nick $2 
    .notice $nick YOu can join again 
    auser friend $nick
  }
  elseif ($3 != $hget($+(kicked,$2),$Nick)) && ($hget($+(kicked,$2),$Nick)) { 
    .notice $Nick Sorry $nick Your Access Is Wrong. [AUTOMATED MSG] 4C14ult 4S14cript 
    halt 
  }
  elseif (!$2) || (#* !iswm $2) { 
    .notice $nick You Must Specify A Channel And Code. [AUTOMATED MSG] 4C14ult 4S14cript 
    halt 
  }
  elseif ($me !isop $2) { 
    .notice $Nick Sorry $nick But Am Not Oped In $2 [AUTOMATED MSG] 4C14ult 4S14cript 
    halt
  }
}
alias rcode {
  var %letters = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWX  YZ0123456789, %x = $1
  while (%x) { var %code = %code $+ $mid(%letters,$r(1,62),1) 
    dec %x 
  }
  return %code
}
#Spamigh end
menu status,menubar,channel {
  Drone Kick [[ %Spamigh ]] {
    if (%Spamigh == ON) { 
      .disable #Spamigh 
      set %Spamigh OFF 
      .echo 4C14ult 4D14rone 4P14rotection 4I14s 4N14ow 4O14ff 
    } 
    else { 
      .enable #Spamigh 
      set %Spamigh ON 
      .echo 4C14ult 4D14rone 4P14rotection 4I14s 4N14ow 4O14n
    }
  }
}
__________________
Reply With Quote
  #14  
Old 17-03-2006, 09:44 PM
AYEHAN's Avatar
AYEHAN AYEHAN est déconnecté
Registered User
 
Join Date: Mar 2006
Location: Houston
Posts: 26
AYEHAN is on a distinguished road
Send a message via ICQ to AYEHAN Send a message via AIM to AYEHAN Send a message via MSN to AYEHAN Send a message via Yahoo to AYEHAN
Re: Drone/Spam nick kicker (FIXED)

Can you please set access codes to notice besides private, coz its conflicting with my query blocker :/

Edit : Drone kicks isnt working with new code, only infected user kicks are working :/

Last edited by AYEHAN; 17-03-2006 at 10:21 PM.
Reply With Quote
  #15  
Old 18-03-2006, 08:14 AM
Cult's Avatar
Cult Cult est déconnecté
Registered User
 
Join Date: Jan 2005
Location: Lebanon
Posts: 2,124
Cult is a jewel in the roughCult is a jewel in the roughCult is a jewel in the rough
Send a message via MSN to Cult
Re: Drone/Spam nick kicker (FIXED)

Quote:
Originally Posted by AYEHAN
Can you please set access codes to notice besides private, coz its conflicting with my query blocker :/

Edit : Drone kicks isnt working with new code, only infected user kicks are working :/
about access codes, didn`t get what u meant or needed, plz expain more.
Drone was working with me, i`l try it anyway.
__________________
Reply With Quote
  #16  
Old 18-03-2006, 09:47 AM
AYEHAN's Avatar
AYEHAN AYEHAN est déconnecté
Registered User
 
Join Date: Mar 2006
Location: Houston
Posts: 26
AYEHAN is on a distinguished road
Send a message via ICQ to AYEHAN Send a message via AIM to AYEHAN Send a message via MSN to AYEHAN Send a message via Yahoo to AYEHAN
Re: Drone/Spam nick kicker (FIXED)

on *:TEXT:!unban *:?:{

i want this part as Notice, i mean user send me access codes via message is it possible i can replace msg with Notice

actually when they message me, script will unban them but also my query blocker sent them a notice too.

and yes sorry drone kicker is working too, but its like.... if it kicks 10 pplz before but now it kick only 1 ppl ... Kick Ratio is down and when i put attention on main i saw lots of drone nicks but no kicks :/ infected user kicks kick ratio is higher then before
Reply With Quote
  #17  
Old 18-03-2006, 04:09 PM
Cult's Avatar
Cult Cult est déconnecté
Registered User
 
Join Date: Jan 2005
Location: Lebanon
Posts: 2,124
Cult is a jewel in the roughCult is a jewel in the roughCult is a jewel in the rough
Send a message via MSN to Cult
Re: Drone/Spam nick kicker (FIXED)

Quote:
Originally Posted by AYEHAN
on *:TEXT:!unban *:?:{

i want this part as Notice, i mean user send me access codes via message is it possible i can replace msg with Notice

actually when they message me, script will unban them but also my query blocker sent them a notice too.

and yes sorry drone kicker is working too, but its like.... if it kicks 10 pplz before but now it kick only 1 ppl ... Kick Ratio is down and when i put attention on main i saw lots of drone nicks but no kicks :/ infected user kicks kick ratio is higher then before
sure...



replace this:

Code:
/msg $me !unban # $hget($+(kicked,$chan),$nick)
with:

Code:
/notice $me !unban # $hget($+(kicked,$chan),$nick)
and:

Code:
on *:TEXT:!unban *:?:{
with

Code:
on *:NOTICE:!unban *:?:{
__________________
Reply With Quote
  #18  
Old 23-03-2006, 06:41 PM
AYEHAN's Avatar
AYEHAN AYEHAN est déconnecté
Registered User
 
Join Date: Mar 2006
Location: Houston
Posts: 26
AYEHAN is on a distinguished road
Send a message via ICQ to AYEHAN Send a message via AIM to AYEHAN Send a message via MSN to AYEHAN Send a message via Yahoo to AYEHAN
Re: Drone/Spam nick kicker (FIXED)

Done Kicker needed a lil change found a bug

if u join channel with nick i.e Cult26 u will be kicked as infected person

first caps with digits in end makes ya Infected user
__________________
I Am LOVE But You Can Call Me AYEHAN
Reply With Quote
  #19  
Old 24-03-2006, 06:51 AM
Cult's Avatar
Cult Cult est déconnecté
Registered User
 
Join Date: Jan 2005
Location: Lebanon