diff options
| author | 2012-05-09 16:06:14 +0000 | |
|---|---|---|
| committer | 2012-05-09 16:06:14 +0000 | |
| commit | 14eb8a77479507875fe77640dd044d1a462e568a (patch) | |
| tree | 4ac100311b2ddb7ce2d3f047318b5b0327ae9be0 | |
| parent | 62aeddf74f00e7b5418779e8fc1e92cf74b76a6b (diff) | |
I got tired of checking things in individually so here's one big massive checkin
| -rw-r--r-- | config-default/channels.xml | 109 | ||||
| -rw-r--r-- | config-default/users.xml | 6 | ||||
| -rw-r--r-- | freenoder1893 | 1 | ||||
| -rw-r--r-- | modules/classes.pl | 5 | ||||
| -rw-r--r-- | modules/event.pl | 7 | ||||
| -rw-r--r-- | modules/inspect.pl | 2 | ||||
| -rw-r--r-- | modules/mysql.pl | 2 |
7 files changed, 86 insertions, 46 deletions
diff --git a/config-default/channels.xml b/config-default/channels.xml index 4a68575..a23eebb 100644 --- a/config-default/channels.xml +++ b/config-default/channels.xml @@ -12,7 +12,7 @@ <hilights></hilights> <msgs></msgs> </channel> - <channel id="##asb-testing" op="no"> + <channel id="##asb-testing"> <hilights></hilights> <msgs></msgs> </channel> @@ -26,7 +26,7 @@ <hilights></hilights> <msgs></msgs> </channel> - <channel id="##english" op="no" silence="yes"> + <channel id="##english" silence="yes"> <hilights></hilights> <msgs></msgs> </channel> @@ -36,8 +36,9 @@ <debug>##hamradio-ops</debug> </msgs> </channel> - <channel id="##hamradio-ops" op="no"> + <channel id="##hamradio-ops"> <hilights></hilights> + <msgs></msgs> </channel> <channel id="##linux" silence="yes"> <hilights> @@ -77,8 +78,7 @@ </channel> <channel id="##wikia"> <hilights> - <debug>charitwo</debug> - <debug>charitwo</debug> + <info>vegadark</info> </hilights> <msgs></msgs> </channel> @@ -107,6 +107,14 @@ <channel id="#RubyOnRails"> <hilights></hilights> </channel> + <channel id="#antispammeta"> + <hilights></hilights> + <msgs></msgs> + </channel> + <channel id="#cisco"> + <hilights></hilights> + <msgs></msgs> + </channel> <channel id="#debian" silence="yes"> <hilights></hilights> <msgs> @@ -141,6 +149,7 @@ <debug>Plazma</debug> <debug>Plazma-Rooolz</debug> <high>mquin</high> + <high>ttuttle</high> <info>njan</info> <low>denny</low> <low>Gary</low> @@ -171,7 +180,7 @@ <info>#ubuntu-ops-monitor</info> </msgs> </channel> - <channel id="#haskell" op="no" silence="yes"> + <channel id="#haskell" silence="yes"> <hilights></hilights> <msgs></msgs> </channel> @@ -196,24 +205,28 @@ <hilights> <debug>flyingparchment</debug> <debug>roberthl</debug> + <debug>Snowolf</debug> <disable>seanw</disable> + <info>charitwo</info> <low>vvv</low> </hilights> <msgs> <debug>#wikimedia-ops</debug> </msgs> </channel> - <channel id="#noisebridge" op="no" /> + <channel id="#noisebridge"> + <hilights></hilights> + </channel> <channel id="#osdev"> <hilights> <low>tomaw</low> </hilights> <msgs></msgs> </channel> - <channel id="#persian" op="no"> + <channel id="#persian"> <hilights></hilights> </channel> - <channel id="#persians" op="no"> + <channel id="#persians"> <hilights></hilights> </channel> <channel id="#reddit"> @@ -230,13 +243,13 @@ <debug>#reddit-priv</debug> </msgs> </channel> - <channel id="#reddit-downtime" op="no"> + <channel id="#reddit-downtime"> <hilights></hilights> <msgs> <debug>#reddit-priv</debug> </msgs> </channel> - <channel id="#reddit-priv" op="no"> + <channel id="#reddit-priv"> <hilights></hilights> <msgs></msgs> </channel> @@ -256,22 +269,26 @@ <info>#ubuntu-ops-monitor</info> </msgs> </channel> - <channel id="#ubuntu-fr" op="no"> + <channel id="#ubuntu-fr"> <hilights></hilights> <msgs> <info>#ubuntu-fr-ops-log</info> </msgs> </channel> - <channel id="#ubuntu-fr-ops-log" op="no"> + <channel id="#ubuntu-fr-ops-log"> <hilights></hilights> </channel> - <channel id="#ubuntu-fr-ops-logs" op="no"> + <channel id="#ubuntu-fr-ops-logs"> <hilights></hilights> </channel> <channel id="#ubuntu-ops-monitor" monitor="no"> <hilights></hilights> <msgs></msgs> </channel> + <channel id="#uncyclopedia"> + <hilights></hilights> + <msgs></msgs> + </channel> <channel id="#wikia"> <hilights> <info>charitwo</info> @@ -296,8 +313,11 @@ <debug>Thehelpfulone</debug> <debug>Tanvir</debug> <debug>jeremyb</debug> + <debug>Logan_</debug> <info>charitwo</info> - <info>log</info> + <info>Rjd0060</info> + <info>Fluffernutter</info> + <info>TBloemink</info> </hilights> <msgs> <debug>#wikimedia-ops</debug> @@ -308,9 +328,9 @@ <debug>killiondude</debug> <debug>matanya</debug> <debug>Tanvir</debug> - <debug>log</debug> <debug>Thehelpfulone</debug> <debug>Snowolf</debug> + <debug>Logan_</debug> <low>Kanonkas</low> </hilights> <msgs> @@ -330,6 +350,7 @@ <debug>jeremyb</debug> <debug>AfterDeath</debug> <info>charitwo</info> + <info>TBloemink</info> <low>slakr</low> </hilights> <msgs> @@ -360,6 +381,17 @@ <hilights> <debug>Barras</debug> <debug>PeterSymonds</debug> + <debug>Snowolf</debug> + <debug>Thehelpfulone</debug> + <info>Snowolf</info> + <info>Rjd0060</info> + <info>TBloemink</info> + <info>Savh</info> + <info>Fluffernutter</info> + <info>Pmlineditor</info> + <info>juancarlos</info> + <info>omtsh</info> + <info>MBisanz</info> </hilights> <msgs> <debug>#wikimedia-ops</debug> @@ -369,6 +401,7 @@ <hilights> <debug>Thehelpfulone</debug> <debug>Snowolf</debug> + <debug>Rjd0060</debug> </hilights> <msgs> <low>#wikimedia-ops</low> @@ -401,6 +434,7 @@ <debug>Snowolf</debug> <debug>Tanvir</debug> <debug>TBloemink</debug> + <debug>Rjd0060</debug> <low>bumm13_</low> <low>Cyrius</low> <low>DanielB</low> @@ -433,21 +467,17 @@ </channel> <channel id="#wikipedia-en" silence="yes"> <hilights> + <debug>AfterDeath</debug> <debug>Werdan7</debug> - <debug>wimt</debug> <debug>Thehelpfulone</debug> <debug>PeterSymonds</debug> - <debug>Not_the_NSA</debug> <debug>Prodego</debug> - <debug>Jake_Wartenberg</debug> - <debug>AfterDeath</debug> <debug>shimgray</debug> <debug>stwalkerster</debug> <debug>Jamesofur</debug> <debug>SpitfireWP</debug> <debug>Barras</debug> <debug>jeremyb</debug> - <debug>Maximillion</debug> <debug>DeltaQuad</debug> <debug>Theo10011</debug> <debug>Gfoley4</debug> @@ -456,20 +486,12 @@ <debug>Steven_Zhang</debug> <debug>Shirik</debug> <debug>TBloemink</debug> - <high>Rudha-an</high> + <debug>foxj</debug> + <debug>Rjd0060</debug> <low>Cobi</low> - <low>Cbrown1023</low> - <low>DanielB</low> <low>Golbez</low> - <low>JohnReaves</low> - <low>Luna-Santin</low> - <low>Mike42</low> - <low>Tawker</low> - <low>NotASpy</low> - <low>|X|</low> <low>agkwiki</low> <low>KFP</low> - <low>Ryanposs</low> <low>slakr</low> <low>Courcelles</low> <medium>closedmouth</medium> @@ -510,8 +532,8 @@ <debug>Barras</debug> <debug>Barras</debug> <debug>Ocaasi</debug> + <info>mabdul</info> <low>KFP</low> - <low>chzz</low> <low>Gfoley4</low> <low>sonia</low> </hilights> @@ -525,7 +547,16 @@ <low>#wikimedia-ops</low> </msgs> </channel> - <channel id="default" /> + <channel id="+#wikimedia-ops"> + <hilights></hilights> + </channel> + <channel id="antispammeta"> + <hilights></hilights> + <msgs></msgs> + </channel> + <channel id="default"> + <hilights></hilights> + </channel> <channel id="master"> <event id="advflood" class="advsplitflood" reason="advanced distributed flooding" risk="low" type="public,part,caction">5:3</event> <event id="ahbl" class="dnsbl" reason="host $evhost is in dnsbl.ahbl.org ( $xresult )" risk="info" type="join">dnsbl.ahbl.org</event> @@ -536,14 +567,13 @@ <event id="ctcp-ping" class="re" reason="channel-wide CTCP PING" risk="medium" type="cping">.*</event> <event id="ctcp-version" class="re" reason="channel-wide CTCP VERSION" risk="medium" type="cversion">.*</event> <event id="dcc" class="re" override="dcc-medium" reason="using the DC.C SE.ND exploit" risk="high" type="public">^DCC (SEND|S?CHAT) |\bDCC (SEND|S?CHAT) "?[A-Za-z0-9]+"? \d+ \d+ \d+</event> - <event id="dcc-medium" class="re" reason="using the DC.C SE.ND exploit" risk="medium" type="public">DCC SEND </event> - <event id="dcc-part" class="re" reason="using the DC.C SE.ND exploit in a part message" risk="high" type="part">DCC SEND </event> + <event id="dcc-medium" class="re" reason="using the DC.C SE.ND exploit" risk="medium" type="public" xresult="1">\bDCC SEND </event> + <event id="dcc-part" class="re" reason="using the DC.C SE.ND exploit in a part message" risk="high" type="part">\bDCC SEND </event> <event id="dcc-topic" class="re" reason="setting a bad topic" risk="medium" type="topic">\bDCC SEND </event> <event id="debugme" class="re" reason="sending a string designed to trigger a debug test alert, disregard this" risk="debug" type="public">debugantispambotdebug</event> <event id="dronebl" class="dnsbl" reason="host $evhost is in dnsbl.dronebl.org ( $xresult )" risk="info" type="join">dnsbl.dronebl.org</event> <event id="efnetbl" class="dnsbl" reason="host $evhost is in rbl.efnetrbl.org ( $xresult )" risk="info" type="join">rbl.efnetrbl.org</event> - <event id="genspam1" class="re" reason="generic spamming" risk="debug" type="public">([^ ]{4,} +)\1{5,}</event> - <event id="genspam2" class="re" reason="generic spamming v2" risk="debug" type="public,caction">^(?:([A-Za-z0-9,.])(?!\1\1)){30,}$</event> + <event id="floodqueue10-20" class="floodqueue" reason="flooding (10 msgs in 20 seconds)" risk="low" type="public,caction">10:20</event> <event id="gnaa-topic" class="re" reason="setting a GNAA topic" risk="medium" type="topic">(?i)\bgnaa\b</event> <event id="gnaaquit" class="re" reason="quitting with a GNAA message" risk="medium" type="quit">(?i)\bgnaa\b</event> <event id="joinflood" class="floodqueue" reason="join flood (5 joins in 20 seconds)" risk="medium" type="join">5:20</event> @@ -551,7 +581,9 @@ <event id="keylogger-medium" class="re" reason="using the norton start-key-logger exploit" risk="medium" type="public">\bstartkeylogger\b|\bstopkeylogger\b</event> <event id="last_measure_regex" class="re" reason="posting what appears to be a last measure link" risk="high" type="public">(?i)(http://(\S+\.)?on\.nimp\.org|http://(\S+\.)?feenode.net|http://wikipaste\.eu|http://(\S+\.)?bioghost\.com|http://(\S+\.)?on\.zoy\.org|http://(lastmeasure|dirtysanchez|doom3|freeipods|halflife2|halo2|lastmeasure4|lastmeasureunified|softmeasure|traceroute)\.zoy\.org)</event> <event id="levenflood" class="levenflood" override="flood-5to3" reason="levenshtein flood match" risk="low" type="public">contentisuseless</event> + <event id="malspreader1" class="nuhg" reason="suspicious NUHG, rule 1" risk="low" type="join">.*!~NUMONE@.*!REAL_NAME</event> <event id="massflood" class="splitflood" reason="distributed flooding" risk="high" type="public,part,caction">4:4</event> + <event id="meepsheep1" class="nuhg" reason="common troll (meepsheep)" risk="info" type="join">(?i).*eepsheep.*</event> <event id="nickspam" class="nickspam" reason="nickspamming" risk="high" type="public">60:10</event> <event id="njabl" class="dnsbl" reason="host $evhost is in dnsbl.njabl.org ( $xresult )" risk="info" type="join">dnsbl.njabl.org</event> <event id="notice" class="re" reason="sending a notice to the channel" risk="medium" type="notice">.*</event> @@ -563,7 +595,7 @@ <event id="sorbsbl" class="dnsbl" reason="host $evhost is in dnsbl.sorbs.net ( $xresult )" risk="info" type="join">dnsbl.sorbs.net</event> <event id="suckmynick" class="re" reason="using a potentially offensive nick" risk="low" type="join">(suck.*dick)</event> <event id="wikifags2" class="re" reason="saying 'sure are a lot of wikifag'..." risk="low" type="public">(?i)^sure are a ?lot of .*fags? in here</event> - <event id="xchatbroad" class="re" reason="using an x-chat for windows unicode exploit (broad detection version, may be error prone)" risk="low" type="public,part,quit,caction">[ð-÷][€-¿]{3}</event> + <event id="xchatbroad" class="re" reason="using an x-chat for windows unicode exploit (broad detection version, may be error prone)" risk="low" type="public,part,quit,caction">THISHASBEENDISABLED[ð-÷][€-¿]{3}</event> <event id="xchatexploit" class="re" override="xchatbroad" reason="using an x-chat for windows unicode exploit" risk="high" type="public,part,quit,caction">󠁟</event> <hilights> <info>Corey</info> @@ -574,6 +606,7 @@ </hilights> <msgs> <debug>##asb-nexus</debug> + <debug>#antispammeta</debug> </msgs> </channel> </channels> diff --git a/config-default/users.xml b/config-default/users.xml index a3e01bb..80f120c 100644 --- a/config-default/users.xml +++ b/config-default/users.xml @@ -9,17 +9,22 @@ <person id="dungodung" flags="oath" /> <person id="errantego" flags="doath" /> <person id="gary" flags="oath" /> + <person id="jeremyb" flags="th" /> <person id="jonathand" flags="oath" /> + <person id="kindone" flags="t" /> + <person id="ljl" flags="o" /> <person id="lstarnes" flags="oath" /> <person id="marienz" flags="oath" /> <person id="martinp23" flags="oath" /> <person id="mquin" flags="hota" /> + <person id="myrtti" flags="htoa" /> <person id="nhandler" flags="oath" /> <person id="njan" flags="oath" /> <person id="paradox" flags="h" /> <person id="petersymonds" flags="oath" /> <person id="pricechild" flags="oath" /> <person id="richih" flags="oath" /> + <person id="rjd0060" flags="th" /> <person id="sauvin" flags="oath" /> <person id="seanw" flags="oath" /> <person id="snowolf" flags="oath" /> @@ -27,6 +32,7 @@ <person id="thehelpfulone" flags="oath" /> <person id="tomaw" flags="oathd" /> <person id="troubled" flags="oath" /> + <person id="ttuttle" flags="oath" /> <person id="werdan7" flags="oath" /> <person id="wildpikachu" flags="oath" /> <person id="windowshasyou" flags="oath" /> diff --git a/freenoder1893 b/freenoder1893 deleted file mode 100644 index 04f4837..0000000 --- a/freenoder1893 +++ /dev/null @@ -1 +0,0 @@ -freenoder1893 diff --git a/modules/classes.pl b/modules/classes.pl index 6896ce7..d747815 100644 --- a/modules/classes.pl +++ b/modules/classes.pl @@ -78,6 +78,7 @@ sub dnsbl # return unless index($event->{host}, '/') == -1; # hopefully getting rid of this won't cause shit to assplode # but I'm getting rid of it so it can detect cgi:irc shit + return 0; if (defined $rev) { print "Querying $rev$chk->{content}\n" if $::debugx{dnsbl}; my $iaddr = gethostbyname( "$rev$chk->{content}" ); @@ -151,7 +152,7 @@ sub splitflood { $text=$event->{args}->[0]; } return unless defined($text); - return unless length($text) >= 10; +# return unless length($text) >= 10; if (defined($bs{$id}{$text}) && (time <= $bs{$id}{$text} + 600)) { return 1; } @@ -181,7 +182,7 @@ sub advsplitflood { $text=$event->{args}->[0]; } return unless defined($text); - $text=~s/^\d+(.*)\d+$/$1/; + $text=~s/^\d*(.*)\d*$/$1/; return unless length($text) >= 10; if (defined($bs{$id}{$text}) && (time <= $bs{$id}{$text} + 600)) { return 1; diff --git a/modules/event.pl b/modules/event.pl index f2c6695..39c733d 100644 --- a/modules/event.pl +++ b/modules/event.pl @@ -127,6 +127,7 @@ sub on_account sub on_connect { my ($conn, $event) = @_; # need to check for no services + $conn->sl('MODE AntiSpamMeta +Q'); $conn->privmsg( 'NickServ', "ghost $::settings->{nick} $::settings->{pass}" ) if lc $event->{args}->[0] ne lc $::settings->{nick}; $conn->sl('CAP REQ :extended-join multi-prefix account-notify'); #god help you if you try to use this bot off freenode } @@ -200,7 +201,7 @@ sub on_msg my ($conn, $event) = @_; $::commander->command($conn, $event); print strftime("%F %T ", gmtime) . "(msg) " . $event->{from} . " - " . $event->{args}->[0] . "\n"; - $conn->privmsg('##asb-nexus', $event->{from} . ' told me: ' . $event->{args}->[0]); + $conn->privmsg('#antispammeta', $event->{from} . ' told me: ' . $event->{args}->[0]); } sub on_public @@ -241,9 +242,9 @@ sub on_quit $event->{to} = \@channels; $::db->logg( $event ); if (($::netsplit == 0) && ($event->{args}->[0] eq "*.net *.split")) { #special, netsplit situation - $conn->privmsg("##asb-nexus", "Entering netsplit mode - JOIN and QUIT inspection will be disabled for 60 minutes"); + $conn->privmsg("#antispammeta", "Entering netsplit mode - JOIN and QUIT inspection will be disabled for 60 minutes"); $::netsplit = 1; - $conn->schedule(60*60, sub { $::netsplit = 0; $conn->privmsg('##asb-nexus', 'Returning to regular operation'); }); + $conn->schedule(60*60, sub { $::netsplit = 0; $conn->privmsg('#antispammeta', 'Returning to regular operation'); }); } $::inspector->inspect( $conn, $event ) unless $::netsplit; $::log->logg( $event ); diff --git a/modules/inspect.pl b/modules/inspect.pl index f6b8dd1..c3a9c1a 100644 --- a/modules/inspect.pl +++ b/modules/inspect.pl @@ -32,7 +32,7 @@ sub inspect { } } else { - $iaddr = gethostbyname($event->{host}); +# $iaddr = gethostbyname($event->{host}); $rev = join('.', reverse(unpack('C4', $iaddr))).'.' if (defined $iaddr); } ## NB: isn't there a better way to do this with grep, somehow? diff --git a/modules/mysql.pl b/modules/mysql.pl index 23f9dae..ff4e0da 100644 --- a/modules/mysql.pl +++ b/modules/mysql.pl @@ -63,13 +63,13 @@ sub record #FIXME: This function is shit. Also, it doesn't work like I want it to with mode. sub logg { - return; #Disabling logging of individual stuff to mysql. no point. my $self = shift; my ($event) = @_; my $dbh = $self->{DBH_LOG}; my $table = $event->{type}; $table = 'action' if ($table eq 'caction'); $table = 'privmsg' if ($table eq 'public'); + return if (($table eq 'action') or ($table eq 'privmsg')); #Disabling logging of privmsg stuffs to mysql. no point. my $realtable = $table; $realtable = 'joins' if $realtable eq 'join'; #mysql doesn't like a table named join my $string = 'INSERT INTO `' . $realtable . '` ('; |
