Page 1 of 1

Looking for regex to match this.

Posted: Sun Apr 06, 2008 12:53 pm
by SlyRipper
Hey guys, I currently have some bots started connecting to my network, Their nick follows this example 'HT12345'. Now thats easy, but some of them have a variable amount of numbers so it could be 'HT12' or 'HT1234567'. All of their idents are 'user'. I'm looking for a regex that will match this so i can spamfilter it. Thanks.

Also, if anyone could guess which bot it is that would be great, i can't guess a login command, they have no ctcp version reply and only 1 bot ever said 'HackTechIRC v2.0 Standing by...' when it joined a channel.

Re: Looking for regex to match this.

Posted: Sun Apr 06, 2008 1:57 pm
by Jobe
For the nick you could use the regex:
^HT\d+!

Which will only match nicks that start with "HT" and end with 1 or more numeric digits.

You can also use:
^HT\d+!~?user@

Which is the same as the first one except it also requires the ident portion to be either "~user" or "user"

Use both regex's with the "u" type spamfilter.

Re: Looking for regex to match this.

Posted: Tue Sep 23, 2008 1:43 am
by Exedore
You can use Neostats to figure out the version, and then block in you unreal conf file..

Re: Looking for regex to match this.

Posted: Tue Sep 23, 2008 1:25 pm
by Jobe
Exedore wrote:You can use NeoStats to figure out the version, and then block in you unreal conf file..
You don't need NeoStats, you can use "/ctcp <nick> VERSION"