mIRC Homepage
Posted By: Garou Nosense Nick - 11/09/06 12:07 AM
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.
Posted By: RusselB Re: Nosense Nick - 11/09/06 01:09 AM
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)
Posted By: Garou Re: Nosense Nick - 11/09/06 01:22 AM
I did try search but nothing and I did see a nosense script before but I cant remember where.
Posted By: RusselB Re: Nosense Nick - 11/09/06 01:44 AM
Try using Google and the term nonsense script, rather than nosense
Posted By: Riamus2 Re: Nosense Nick - 11/09/06 09:40 PM
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).
Posted By: Othello Re: Nosense Nick - 12/09/06 12:57 AM
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
Posted By: Riamus2 Re: Nosense Nick - 12/09/06 01:25 AM
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.
Posted By: Garou Re: Nosense Nick - 13/09/06 07:20 PM
Riamus2 can you please post your version of nonsense nick script?
Posted By: Riamus2 Re: Nosense Nick - 13/09/06 08:01 PM
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
Posted By: Garou Re: Nosense Nick - 13/09/06 08:23 PM
Thx Riamus2 I will give it a try :P
Posted By: Garou Re: Nosense Nick - 13/09/06 09:12 PM
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 }
}
}
Posted By: Riamus2 Re: Nosense Nick - 13/09/06 10:23 PM
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
Posted By: Garou Re: Nosense Nick - 14/09/06 02:22 AM
Riamus2 Its not kicking ??
Posted By: Riamus2 Re: Nosense Nick - 14/09/06 01:28 PM
What are the nick(s) that aren't being kicked? And, are you an op at the time?
Posted By: Garou Re: Nosense Nick - 14/09/06 01:32 PM
Yes I am op

nicks: sssssss11, gsrnytk44, hhhhhh999, pkmhtwaa2
Posted By: Riamus2 Re: Nosense Nick - 14/09/06 09:35 PM
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.
Posted By: Garou Re: Nosense Nick - 15/09/06 01:07 PM
Riamus2 the codes still not kicking any nicks ?
Posted By: Riamus2 Re: Nosense Nick - 15/09/06 11:03 PM
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
  }
} 
Posted By: Garou Re: Nosense Nick - 16/09/06 04:29 AM
Thx Riamus2 it works great.
© mIRC Discussion Forums