case sensitive spamfilter matches regardless of case

These are old archives. They are kept for historic purposes only.
Post Reply
da127
Posts: 15
Joined: Thu Dec 29, 2005 6:06 am

case sensitive spamfilter matches regardless of case

Post by da127 »

[18:13:23] -war.bluehell.org- [Spamfilter] [PowerHitter]-006!~Club420@XXXXXXX matches filter '^.+(?i)DCC SEND(?-i) .*$': [PRIVMSG #CLUB420: '** To request a file, type "/msg [PowerHitter]-006 xdcc send #x" **'] [DCC/Router Exploit.]

This is an attempt using two spamfilters to stop the DCC SEND exploit that disconnects users that have certain routers. Like so:

/spamfilter add cpN kill - DCC/Router_Exploit. ^(?i)DCC SEND(?-i) .*$
/spamfilter add cnN kill - DCC/Router_Exploit. ^.+(?i)DCC SEND(?-i) .*$

It was just the one spamfilter before but users could get past it by saying something like: '... DCC SEND klasjf' in a channel.
However as you can see by the spamfilter notice it matched something it shouldn't have (unless im using case sensitive tag wrongly).

Hopefully you can see what I'm trying to do here and tell me how I screwed it up.
Dukat
Posts: 1083
Joined: Tue Mar 16, 2004 5:44 pm
Location: Switzerland

Post by Dukat »

Yes, you ARE using the caseinsensitivity tag wrongly.

http://www.vulnscan.org/UnrealIRCd/unre ... #regexcase
If you don't make mistakes, you aren't really trying.
- Coleman Hawkins
da127
Posts: 15
Joined: Thu Dec 29, 2005 6:06 am

Post by da127 »

$@^&%$&@%$^@&!!!!!!!!!!!!

wow
completely fucking backwards....

/me beats self with hammer
Post Reply