Page 1 of 1

regex for nick, ident and gecos

Posted: Tue Jan 08, 2008 12:47 pm
by greg27
i have some spambots connecting to my network - each have eight random letters as their nick, ident and realname
eg. (11:02:58pm) —› JVQOMUTF is "DINKYHQB" ([email protected])

is there any way to set a regex which matches this only if all the characters are in caps?

Re: regex for nick, ident and gecos

Posted: Tue Jan 08, 2008 2:45 pm
by wolverine
I am having same issue. have set channels to +R for time being.
way too many spam urls to set a filter for urls
any assist would be appreciated, these things are in a large quantity using notices
and pms to spam urls.
SXBYENUX ([email protected])
FWUOYUPW ([email protected])
EHFLTTFG ([email protected])

EHFLTTFG was [email protected] * QLBYYXBS
EHFLTTFG using ************** Tue Jan 8 08:25:01 2008
End of WHOWAS

FWUOYUPW was [email protected] * RIRKMYTS
FWUOYUPW using ************ Tue Jan 8 08:29:46 2008
End of WHOWAS

Re: regex for nick, ident and gecos

Posted: Tue Jan 08, 2008 5:03 pm
by Stealth
Try this:

Code: Select all

^(?-i)[A-Z]{8}!~?[A-Z]{8}@[^:]+:[A-Z]{8}$

Re: regex for nick, ident and gecos

Posted: Tue Jan 08, 2008 5:17 pm
by wolverine
Thanks! So Far so Good

[Spamfilter] [email protected] matches filter '^(?-i)[A-Z]{8}!~?[A-Z]{8}@[^:]+:[A-Z]{8}$': [NICK: '[email protected]:CGLJXFOY'] [SpamDrone0108]

Re: regex for nick, ident and gecos

Posted: Tue Jan 08, 2008 10:53 pm
by greg27
thanks a lot, problem solved (for now)!

Re: regex for nick, ident and gecos

Posted: Wed Jan 09, 2008 1:45 pm
by outz
thanks guys... ive been having this problem recently as well. my bot has probably glined well over 500 ip's... whoever it is has a lot of resources.

Re: regex for nick, ident and gecos

Posted: Wed Jan 09, 2008 3:49 pm
by WilliamWIkked
Thanks a lot! My net is under attack by these bots too and this spamfilter is a lot better than mine (which only bans when they notice) because it's annoying seeing the ones who don't notice keep joining and parting. Now they're all gone =)

ps thank's greg for showing me this topic =)

Re: regex for nick, ident and gecos

Posted: Fri Jan 11, 2008 9:36 am
by X-Trancer
A New Problem whit the Bots see whois ^^

((10:30:05)) <ReVoLt> RSDRTBGQ is [email protected] * VOQEQWTC
((10:30:06)) <ReVoLt> RSDRTBGQ is using modes +ix
((10:30:06)) <ReVoLt> RSDRTBGQ is connecting from *@82.79.160.112 82.79.160.112
((10:30:06)) <ReVoLt> RSDRTBGQ using Ptown.German-IRC.net .::Ptown.German-IRC.net::. }{Düsseldorf}{
((10:30:06)) <ReVoLt> RSDRTBGQ End of /WHOIS list.

the ident is not Caps and not 8 letters

Re: regex for nick, ident and gecos

Posted: Fri Jan 11, 2008 10:26 am
by Jobe
Try:

Code: Select all

^(?-i)[A-Z]{8}!~?[^@]+@[^:]+:[A-Z]{8}$