🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#258737
From: Zax
Date: Sat, 25 Aug 2012 09:23
52 lines
2964 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Fri, 24 Aug 2012 05:30:38 +0200 (CEST), Anonymous Remailer (austria) wrote in
Message-Id: <7e999422579f7607163f5e9a9edabc60@remailer.privacy.at>:

>> use strict;
>> use Digest::SHA1;
>> our (%attributes, %hdr, $modify_headers);
>
>> sub filter_post {
>> undef $hdr{'X-Trace'};
>> # Hash the NNTP-Posting-Host header
>> 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 '';
>> };
>
>   Who on earth got sick and threw up that code?

Are you referring to the code in my previous post or the code in yours?
They are quite different.  I don't think yours will work as $1 and $2
won't be populated.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)

iQIcBAEBCAAGBQJQOJl0AAoJEM6+AvtKvwfj8w4P+wX35IUBfIfQyjIDvkN7/sG7
ETNrGI66B5fSCpeizDw70DkkCeu1i9ReMX9syA9qwTmCEcv7cCj1r/BIe2e4Zkzt
pgkYN4hLBOy4UIj7LR8x2/22ptXt+t22nvIAIx0hG4GwXGQzO9yyNe/L7Shf3eiR
fjHmplLIoUH7eiB6Yg3K7OPAwRj+x85ifTIjYB2LXKJksqTcnCJ3LrnCCqY2RGol
3BiHwJSyIpumk70Zl1EpKIxI4TqCmv8EQbSX8igQEhhaLRoMOLMya5ozUJkuJYSY
ii3/iCjqV/vmoUtLWegJ0YK+7b125SA/T2hkQNmss94Z6Bt9/FIjIEwwRSDfPG2w
ujROobHSueTRiqE7XYgR8brOhvy3LdC+5zUBJe9vkOIkYpwxFfGxZWDaGC3wLgAB
A+ed2Z0DJI3MK5XlCOn3P1/b5BxFoPd6K3jSqBu0BAYgyRjFCravxvbIjM7EYWrG
DrLChFqscKxXg2LeOiojNR5EC9f4n3u/vNs+tN9as3SC5FsdjmcPfgCyAm238gnt
CFhuIqXB64u30LmDMfKXmEDKCe7Hd0waR0rmB+QgJ6P9WOn/bmieRa8A/OPNKLUM
y+YHPaZRf5l49ziyV9drSOXP6P3b5zW8TRGj4PaelSE5u2+EWr0eEn3tllZEcG48
PN0zcizJ/rZ44lq/Uqit
=wXA0
-----END PGP SIGNATURE-----

-- 
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: <slrnk3h6bl.dup.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!news.mixmin.net!.POSTED.2a01:4f8:100:5243::4!not-for-mail
References: <slrnk3bpbm.tt1.admin@snorky.mixmin.net> <7e999422579f7607163f5e9a9edabc60@remailer.privacy.at>

Show Full Headers
Complete Article Headers
Message-ID: <slrnk3h6bl.dup.admin@snorky.mixmin.net>
Subject: Re: Anonymizing the NNTP-Posting-Host line in headers
Date: Sat, 25 Aug 2012 09:23:01 +0000
From: Zax <admin@mixmin.net>
References: <slrnk3bpbm.tt1.admin@snorky.mixmin.net> <7e999422579f7607163f5e9a9edabc60@remailer.privacy.at>
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!news.mixmin.net!.POSTED.2a01:4f8:100:5243::4!not-for-mail
Newsgroups: alt.privacy.anon-server
Organization: Mixmin
Injection-Date: Sat, 25 Aug 2012 09:23:01 +0000 (UTC)
Injection-Info: news.mixmin.net; posting-host="2a01:4f8:100:5243::4";
 logging-data="6369"; mail-complaints-to="abuse@mixmin.net"
User-Agent: slrn/pre1.0.0-40 (Linux)
Lines: 51
X-Original-Bytes: 2668