[IRCServices] AKILL *@* Lame IRCops Protection.

Gregory L King gregk at netsport.org
Fri Oct 1 09:06:03 PDT 1999


So, lets say (as in my case) they do "**@********" or some other
variation?  Would this code catch it?


On Fri, 1 Oct 1999, Kevin wrote:

> Date: Fri, 1 Oct 1999 10:03:20 -0500 (CDT)
> From: Kevin <lebleu at prefer.net>
> Reply-To: ircservices at ender.shadowfire.org
> To: ircservices at ender.shadowfire.org
> Subject: Re: [IRCServices] AKILL *@* Lame IRCops Protection.
> 
> 
> On Fri, 1 Oct 1999, Jozenobio de Melo Brasil wrote:
> 
> > 	I has maked a good protection for services if lame ircops try
> > akill *@*... this protection can be used on akick too.
> > 
> > 	Thanks all... :)
> > 
> >         /* Lame IRCops Protection by Jozeph'99 */
> >         if (s) {
> >             s++;
> >             i = 0;
> >                 while (*s) {
> >                     if (*s != '*' && *s != '.')
> >                         i++;
> >                         s++;
> Note: This line is indented wrong, s++ isn't dependent on the if
> statement!
> >                 }
> >                 if (i<4) {
> >                     wallops(s_OperServ, "%s tried to akill add %s!",
> >                             u->nick, mask);
> >                         return;
> >                 }
> >         }
> >         /* End Lame IRCops Protection */
> 
> If I understand right, this looks for any non-wildcard characters in the
> mask, and counts how many, which is good... but why not eliminate @ and !
> as well, and make the test i < 1 or 1 < 2?  Of course, then there's the
> question of what the shortest reasonable akill is... is akilling *@*.uk
> reasonable? *@*.net?  Maybe it should stay at i < 4, but exclude the @
> too, that way the shortest bans possible would be stuff like *@a*.net or
> *@*.co.uk... perhaps even require 5 chars?
> 
> I think it would be good to add this patch, or perhaps a slight
> modification of it, to services.  Should log the attempt though, not just
> wallop it, so that it can be verified later if no one with sufficient
> authority is on when it happens.  (e.g. only one irc op is on when they do
> this...)
> 
> --Kevin
> 
> -- 
> PaganPaths IRC Network - irc.paganpaths.org - http://www.paganpaths.org/
> PPCR Pagan Internet Radio - <A  HREF="http://www.paganpaths.org/radio/">http://www.paganpaths.org/radio/</A>
> If you're reading this you're part of the mass hallucination that is Kevin
> the Blue. 
> Copyright 1999 Kevin the Blue <LeBleu at prefer.net>
> PGP public key at <A  HREF="http://www.lebl.eu.org/~lebleu/mypublickey.asc">http://www.lebl.eu.org/~lebleu/mypublickey.asc</A>
> Wear a blue ribbon today to show your solidarity for freedom of speech on
> the Internet! 
> 
> ---------------------------------------------------------------
> To unsubscribe, send email to majordomo at ender.shadowfire.org
> with "unsubscribe ircservices" in the body, without the quotes.
> 

---------------------------------------------------------------
To unsubscribe, send email to majordomo at ender.shadowfire.org
with "unsubscribe ircservices" in the body, without the quotes.