Looking for regex to match this.

These are old archives. They are kept for historic purposes only.
Post Reply
SlyRipper
Posts: 1
Joined: Sun Apr 06, 2008 12:49 pm

Looking for regex to match this.

Post 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.
Jobe
Official supporter
Posts: 1180
Joined: Wed May 03, 2006 7:09 pm
Location: United Kingdom

Re: Looking for regex to match this.

Post 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.
Your IP: Image
Your Country: Image
Exedore
Posts: 15
Joined: Tue Sep 23, 2008 1:05 am

Re: Looking for regex to match this.

Post by Exedore »

You can use Neostats to figure out the version, and then block in you unreal conf file..
Jobe
Official supporter
Posts: 1180
Joined: Wed May 03, 2006 7:09 pm
Location: United Kingdom

Re: Looking for regex to match this.

Post 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"
Your IP: Image
Your Country: Image
Post Reply