🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
3 messages
3 total messages Started by Steve Wed, 03 Sep 2008 15:42
Cleanfeed Updates
#79397
Author: Steve
Date: Wed, 03 Sep 2008 15:42
69 lines
3447 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hi all,

I've made a couple of updates to my Cleanfeed series since my last
announcement.  Please see the changelog below for details.  As before,
please use with some caution, in its default state it is likely to
filter some articles that Marco's formal Cleanfeed release will pass.

Any feedback will be much appreciated.

Regards
Steve

http://www.mixmin.net/cleanfeed         Main file
http://www.mixmin.net/cleanfeed.diff    Diff based on Marco's formal
					release of cleanfeed-20020501.
http://www.mixmin.net/cleanfeed.asc	Detached PGP Signature
http://www.mixmin.net/bad_body		Example bad_body file

Changelog:

o Add a relaxed binary check for image files - Some newsgroups are image
  specific but reside outside the normal binary hierarchies.  This check
  enables uuEnc and yEnc encoded files containing images to be
  accepted in
  groups such as *.pictures.*

  Defaults:-
  image_allowed => '\.pictures'
  image_extensions => 'jpe?g|png|gif'

  The format of this filter can easily be extended for other file types
  such as mp3's in *.mp3 groups.  I haven't done this as images seem to
  comprise the large majority of misplaced binaries.

o Add a bad_body file to the collection of bad_* files - The new
  bad_body file contains a collection of URL's (or other triggers) in
  regex format.  In combination with the previously added auto-reloading
  feature (triggered by $config{bad_rate_reload}), this enables simple
  body filters to be appended and modified without forcing a reload of
  the Perl filters.

o Strip out some of my futile attempts to figure out why misplaced
  binaries were slipping through.  This issue was resolved by a recent
  update to INN (Thanks Julien!).

o Reduce the length of $body (a sub-string of __BODY__) from 50,000 to
  4,000 characters.  The lower limit doesn't appear to miss much that
  the higher caught.

o Move the Perl 'study scalar' statement from cleanfeed.local into the
  core file, it seems more at home there.

o Minor updates to some regex's to avoid false positives.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEAREKAAYFAki+sFoACgkQtHGA1SKHYedBOwCdGit+uQdRQI+vJhZfZYMrPnx4
iU4An1MXpJX41XauDQVzzs0zEIzY8MzX
=kmWP
-----END PGP SIGNATURE-----

-- 
pub   1024D/228761E7 2003-06-04 Steven Crook
      Key fingerprint = 1CD9 95E1 E9CE 80D6 C885  B7EB B471 80D5 2287 61E7
uid                  Steven Crook <steve@mixmin.net>
Re: Cleanfeed Updates
#79417
Author: Julien ÉLIE
Date: Sun, 07 Sep 2008 18:43
37 lines
2543 bytes
Hi Steve,

> I've made a couple of updates to my Cleanfeed series since my last
> announcement.  Please see the changelog below for details.

Thanks again for sharing your work.


> http://www.mixmin.net/bad_body Example bad_body file

Is this file daily updated like your bad_hosts_central file?


I see that there is test_groups in your new Cleanfeed release
but are they all in md5exclude too?
es.pruebas is in both of these lists but not the others test groups.


By the way, shouldn't more extensions be put here?
Are pictures caught if they are UUencoded like this?

       return reject("UUencoded $1")
            if $lines > 3 and $lines < 2000
                and $hdr{__BODY__} =~ /
                    ^[Bb][Ee][Gg][Ii][Nn][ \t]+[0-7]{3,4}[ \t]+ # begin 666
                    \S?.{0,45}?\S*          # file name
                    \.(                     # file extensions
                        [Tt][Ee]?[Xx][Tt]|
                        [Hh][Tt][Mm][Ll]?|
                        [Ee][Xx][Ee]|
                        [Uu][Rr][Ll]

-- 
Julien ÉLIE

« Sois sage, ô ma douleur, et tiens-toi plus tranquille. » (Charles Baudelaire) 
Re: Cleanfeed Updates
#79418
Author: Steve
Date: Sun, 07 Sep 2008 20:20
44 lines
3058 bytes
On Sun, 7 Sep 2008 20:43:02 +0200, Julien ÉLIE wrote in
Message-Id: <ga17br$ea9$1@news.trigofacile.com>:

> Is this file daily updated like your bad_hosts_central file?
No, at the moment it's just a manually updated file.  It would be easy
to add support for a central version but it would need frequently
updating and unlike the bad_hosts one, it would likely be a manual task.
Perhaps one of the regulars in news.admin.net-aduse.usenet would be best
suited to maintaining it as a central resource.  I'll enquire.

> I see that there is test_groups in your new Cleanfeed release
> but are they all in md5exclude too?
> es.pruebas is in both of these lists but not the others test groups.
Well spotted, es.pruebas shouldn't be in md5exclude.  Messages whose
distribution contains nothing but test groups are not processed by any
of the EMP filters.

> By the way, shouldn't more extensions be put here?
> Are pictures caught if they are UUencoded like this?
>
>        return reject("UUencoded $1")
>             if $lines > 3 and $lines < 2000
>                 and $hdr{__BODY__} =~ /
>                     ^[Bb][Ee][Gg][Ii][Nn][ \t]+[0-7]{3,4}[ \t]+ # begin 666
>                     \S?.{0,45}?\S*          # file name
>                     \.(                     # file extensions
>                         [Tt][Ee]?[Xx][Tt]|
>                         [Hh][Tt][Mm][Ll]?|
>                         [Ee][Xx][Ee]|
>                         [Uu][Rr][Ll]

All the other filetypes are processed by the is_binary and is_image
functions.  These four (txt/html/exe/url) are special cases that are
blocked regardless of other conditions.  The exe is blocked because of
the risk of propagating Windows viruses.  The other three prevent a
spamming technique of uuencoding text to circumvent filtering.  I'll add
some better remarks to clarify the role of that filter.

Thanks for your feedback  :)

-- 
pub   1024D/228761E7 2003-06-04 Steven Crook
      Key fingerprint = 1CD9 95E1 E9CE 80D6 C885  B7EB B471 80D5 2287 61E7
uid                  Steven Crook <steve@mixmin.net>
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads