mIRC Home    About    Download    Register    News    Help

Print Thread
#158893 11/09/06 12:07 AM
Joined: Aug 2006
Posts: 469
G
Garou Offline OP
Fjord artisan
OP Offline
Fjord artisan
G
Joined: Aug 2006
Posts: 469
I need a Nosense Nick kban script with a kick msg.
When users login with nicks like random nick + random ident
like those here
dhfjfndkjs or ddd44jhfjfj mdkuu1
Thx.

Last edited by Garou; 11/09/06 12:46 AM.
#158894 11/09/06 01:09 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Kick/ban scripts have been done a lot. Please use the Search feature.

Also note that there is, realistically, no way for a script to tell if a nick is proper or nonsense (or at least not without a lot of extra coding)

#158895 11/09/06 01:22 AM
Joined: Aug 2006
Posts: 469
G
Garou Offline OP
Fjord artisan
OP Offline
Fjord artisan
G
Joined: Aug 2006
Posts: 469
I did try search but nothing and I did see a nosense script before but I cant remember where.

Last edited by Garou; 11/09/06 01:23 AM.
#158896 11/09/06 01:44 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Try using Google and the term nonsense script, rather than nosense

#158897 11/09/06 09:40 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
On Undernet, we've been being hit with a lot of female name + 2 digit number clones that end up spamming the users with porn messages. Thankfully, these are easy to ban with a simple script and I even offer a way for legitimate users to get on an exception list so they can still use a name + 2 digit number for a nick if they want to.

However, as RusselB mentioned, it is really hard to stop all of the different types of clones/bots because the nicks can have very normal formats and even legitimate users sometimes use nicks like dsfdsf (I think that's the nick of one of our regular visitors... or at least something similar).


Invision Support
#Invision on irc.irchighway.net
#158898 12/09/06 12:57 AM
Joined: Dec 2002
Posts: 417
O
Fjord artisan
Offline
Fjord artisan
O
Joined: Dec 2002
Posts: 417
I am on the undernet all the time. I have had the same problem with those random nicks. I use OS-SpamGuard and it works great for catching those bots. if your interested in checking it out then you can find a copy here web page




Intelligence: It's better to ask a stupid question, then to prove it by not asking....
#158899 12/09/06 01:25 AM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Thanks, but my version works great. And, like I said, it lets legitimate people automatically get back in and become exceptions, so it works nicely. No complaints and no bots.

Combined with my Kick/Ban window script that I wrote a long time ago, I can easily see who is kicked for it and when and so on. I usually try to avoid using another person's scripts... I'd rather write my own to do what I need. smile

Thanks, though.


Invision Support
#Invision on irc.irchighway.net
#158900 13/09/06 07:20 PM
Joined: Aug 2006
Posts: 469
G
Garou Offline OP
Fjord artisan
OP Offline
Fjord artisan
G
Joined: Aug 2006
Posts: 469
Riamus2 can you please post your version of nonsense nick script?

#158901 13/09/06 08:01 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
I'm doing this from memory since I am not at home, but it's pretty simple, so this should be close to what I use.

Code:
on @*:join:#: {
  if ($left($nick,-2) isalpha && $right($nick,2) isnum && $read(banexceptions.txt,w,$nick) == $null) {
    ban -ku300 $chan $nick 2 -=SPAM DETECTION=-
    .notice $nick You have been automatically kicked as being a possible bot or clone.  If you are a real user, msg $me with this command: !realuser $chan
  }
}
on *:text:!realuser &:?: {
  if ($me isop $2) {
    mode $2 $nick -b $address($2,2)
  }
  write banexceptions.txt $nick
}


It's not quite what I have, but it should be close. Anyhow, this automatically kicks anyone with a 2 digit number after their nick and they have only letters in front of it. It will also notice the person with how to get back in and will add their nick to an exceptions list if they type the command.

Note that because I'm not at home, I haven't tested this, but it should work unless I've made a stupid mistake somewhere. smile


Invision Support
#Invision on irc.irchighway.net
#158902 13/09/06 08:23 PM
Joined: Aug 2006
Posts: 469
G
Garou Offline OP
Fjord artisan
OP Offline
Fjord artisan
G
Joined: Aug 2006
Posts: 469
Thx Riamus2 I will give it a try :P

#158903 13/09/06 09:12 PM
Joined: Aug 2006
Posts: 469
G
Garou Offline OP
Fjord artisan
OP Offline
Fjord artisan
G
Joined: Aug 2006
Posts: 469
Riamus2 I do not need the notice and exempt part so is this ok??

on @*:join:#: {
if ($me isop $2) {
if ($left($nick,-2) isalpha && $right($nick,2) isnum == $null) {
mode $2 $nick -b $address($2,2)
ban -ku300 $chan $nick 2 14Spam Bot Detected }
}
}

#158904 13/09/06 10:23 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Yes, that will work fine. Keep in mind that without the exceptions, you won't be allowing anyone legitimate in who has 2 numbers at the end and only alpha characters at the beginning. If that is okay with you, then go for it. smile


Invision Support
#Invision on irc.irchighway.net
#158905 14/09/06 02:22 AM
Joined: Aug 2006
Posts: 469
G
Garou Offline OP
Fjord artisan
OP Offline
Fjord artisan
G
Joined: Aug 2006
Posts: 469
Riamus2 Its not kicking ??

#158906 14/09/06 01:28 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
What are the nick(s) that aren't being kicked? And, are you an op at the time?


Invision Support
#Invision on irc.irchighway.net
#158907 14/09/06 01:32 PM
Joined: Aug 2006
Posts: 469
G
Garou Offline OP
Fjord artisan
OP Offline
Fjord artisan
G
Joined: Aug 2006
Posts: 469
Yes I am op

nicks: sssssss11, gsrnytk44, hhhhhh999, pkmhtwaa2

#158908 14/09/06 09:35 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Ahh... I looked more closely at how you edited what I gave you... you don't need that isop line and it's formatted incorrectly as well as having 2 ban lines with one of them formatted incorrectly, which is the problem. Use this:

Code:
on @*:join:#: {
  if ($left($nick,-2) isalpha && $right($nick,2) isnum == $null) {
    ban -ku300 $chan $nick 2 14Spam Bot Detected
  }
} 


You were trying to combine the on text and the on join into a single section, which didn't need to be done. All you had to do was use the on join section without the notice line.


Invision Support
#Invision on irc.irchighway.net
#158909 15/09/06 01:07 PM
Joined: Aug 2006
Posts: 469
G
Garou Offline OP
Fjord artisan
OP Offline
Fjord artisan
G
Joined: Aug 2006
Posts: 469
Riamus2 the codes still not kicking any nicks ?

#158910 15/09/06 11:03 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
I should have just rewritten it rather than copy/pasting it and fixing what I saw right off the bat. It's still caused by how you combined them... it shouldn't have == $null.

Code:
on @*:join:#: {
  if ($left($nick,-2) isalpha && $right($nick,2) isnum) {
    ban -ku300 $chan $nick 2 14Spam Bot Detected
  }
} 


Invision Support
#Invision on irc.irchighway.net
#158911 16/09/06 04:29 AM
Joined: Aug 2006
Posts: 469
G
Garou Offline OP
Fjord artisan
OP Offline
Fjord artisan
G
Joined: Aug 2006
Posts: 469
Thx Riamus2 it works great.


Link Copied to Clipboard