Page 1 of 1

Alternating Case

Posted: Thu Sep 20, 2012 7:17 pm
by OMTRX
Hi, its been a while since I last used the forums, seems my old account was lost.

I've been having a wave of bots recently using 8 characters of Upper and Lower case such as:
  • KnTgXaUk
    CtOvCbEy
    UlLhWrBy
    KkYwRuHg

I've tried numerous regex patterns to tackle them but it seems to just pick up literally everyone on the server (luckily I tested with "Warn"), I can't mess around much with this much people.

I have tried things like [A-Z][a-z][A-Z][a-z][A-Z][a-z][A-Z][a-z] and [A-Z][a-z]{4,8} etc.

Anyone ever come across this before and know of any solutions to tackle alternating case for 8 characters?

-- Harley

Re: Alternating Case

Posted: Fri Sep 21, 2012 4:12 pm
by cards
Whois the bots and get info on them. If they use the same naming characteristics, they are probably all the same type of bot, and you can gline by realname. Seems earily familiar to an issue we had. Hop onto irc.420-hightimes.com and ask ern or play4free2 what they did to remedy this.

Cards

Re: Alternating Case

Posted: Sun Sep 23, 2012 10:37 am
by OMTRX
They're all using random nicknames and realnames

Re: Alternating Case

Posted: Sun Sep 23, 2012 3:09 pm
by Jobe
Try a regex such as:
^(?-i)[A-Z][a-z][A-Z][a-z][A-Z][a-z][A-Z][a-z]!

Where (?-i) tells the regex library that from that point onwards in the regex, the regex is to be treated as case sensitive (as documented in UnrealIRCd's documentation in appendix A on regular expressions.)