🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy.anon-server
Article #258705

Re: Anonymizing the NNTP-Posting-Host line in headers

#258705
From: Zax
Date: Thu, 23 Aug 2012 08:10
34 lines
2214 bytes
On Wed, 22 Aug 2012 19:54:41 +0000 (UTC), Anonymous wrote in
Message-Id: <ad4666a564e9f3e05b2cf5cf61b98902@remailer.paranoici.org>:

> I've seen some messages posted where the NNTP posting host line was
> anonymized as a bunch of random letters like
> hhhalsgpoudjjjjsapplosll
> Does anyone know how that is done?

In the case of news.mixmin.net, it's a one-way hash of the IP address
and a salt.  It's done with code like this:

use strict;
use Digest::SHA1;
our (%attributes, %hdr, $modify_headers);

sub filter_post {
    undef $hdr{'X-Trace'};
    # Hash the NNTP-Posting-Host header
    if ($hdr{'Injection-Info'} =~ /(posting-host\s?=\s?"([^"]+)")/) {
        my $digest = Digest::SHA1->new;
        $digest->add($2);
        $digest->add("__salt__");
        my $hash = $digest->b64digest;
        my $newhdr = "posting-host=\"$hash\"";
        $hdr{'Injection-Info'} =~ s/$1/$newhdr/;
    };
    $modify_headers = 1;
    return '';
};

-- 
pub  1024D/8ED57743 2003-07-08 Bananasplit Operator
     Key fingerprint = 796F 67E0 E890 A0BB BDAE  EBB4 94A6 7A09 8ED5 7743
uid                            Admin <admin.mixmin.net>
Technical Details
Message-ID: <slrnk3bpbm.tt1.admin@snorky.mixmin.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141023.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!weretis.net!feeder4.news.weretis.net!news.mixmin.net!.POSTED.2a01:4f8:100:5243::4!not-for-mail
References: <ad4666a564e9f3e05b2cf5cf61b98902@remailer.paranoici.org>

Show Full Headers
Complete Article Headers
Message-ID: <slrnk3bpbm.tt1.admin@snorky.mixmin.net>
Subject: Re: Anonymizing the NNTP-Posting-Host line in headers
Date: Thu, 23 Aug 2012 08:10:30 +0000
From: Zax <admin@mixmin.net>
References: <ad4666a564e9f3e05b2cf5cf61b98902@remailer.paranoici.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141023.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!weretis.net!feeder4.news.weretis.net!news.mixmin.net!.POSTED.2a01:4f8:100:5243::4!not-for-mail
Newsgroups: alt.privacy.anon-server
Organization: Mixmin
Injection-Date: Thu, 23 Aug 2012 08:10:30 +0000 (UTC)
Injection-Info: news.mixmin.net; posting-host="2a01:4f8:100:5243::4";
 logging-data="22755"; mail-complaints-to="abuse@mixmin.net"
User-Agent: slrn/pre1.0.0-40 (Linux)
Lines: 33
X-Original-Bytes: 1925