Article View: alt.privacy.anon-server
Article #240639Re: Hsub reader
From: StealthMonger
Date: Thu, 16 Sep 2010 09:29
Date: Thu, 16 Sep 2010 09:29
73 lines
3066 bytes
3066 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Nomen Nescio <nobody@dizum.com> writes:
> Anyone recommend a decent Hsub reader for alt.anonmyous.messages, please?
What's an "Hsub reader"? What do you want to do?
Here's a python script (should work anywhere Python can be installed)
that returns a success code for a.a.m articles matching a given hsub
key, else a failure code. In a directory full of a.a.m articles, a
command such as
for f in * ; do hsub-reader.py key < $f && echo $f ; done
will print the names of matching files, where "key" is the hsub key.
Hope this helps.
8<--------8<--------8<--------8<--------8<--------8<--------8<--------
#! /usr/bin/python
# SYNOPSIS
# hsub-reader.py <key>
# DESCRIPTION
# Return success code 0 if the article on stdin has a Subject: which
# could have been generated using the argument key, else failure
# code 1.
import sys
from hashlib import sha256
import email
posting = email.message_from_file(sys.stdin)
subject = posting.get('Subject')
try:
iv = subject[:16].decode('hex')
except TypeError:
sys.exit(1)
if subject == (iv+sha256(iv+sys.argv[1]).digest()).encode('hex')[:48]:
sys.exit(0)
else:
sys.exit(1)
8<--------8<--------8<--------8<--------8<--------8<--------8<--------
-- StealthMonger <StealthMonger@nym.mixmin.net>
Long, random latency is part of the price of Internet anonymity.
uinmyn: Is this anonymous surfing, or what?
http://groups.google.com/group/alt.privacy.anon-server/browse_thread/thread/089c8f2f251c207e?fwc=1
stealthmail: Hide whether you're doing email, or when, or with whom.
mailto:stealthsuite@nym.mixmin.net?subject=send%20index.html
Key: mailto:stealthsuite@nym.mixmin.net?subject=send%20stealthmonger-key
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8+ <http://mailcrypt.sourceforge.net/>
iEYEARECAAYFAkyRp5QACgkQDkU5rhlDCl7ZEACgtX4ZPObvDHg/XC7utsoPZ0qG
jdAAn3VOlMg3Skazko0/FlSWyMz5V5B1
=UOPj
-----END PGP SIGNATURE-----
Technical Details
Message-ID:
<20100916092949.8ECDA8144F@fleegle.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.ams.giganews.com!nntp.giganews.com!feeder.erje.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!194.109.133.84.MISMATCH!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!news.wiretrip.org!news.dizum.com!sewer-output!mail2newsReferences:
<6de9e3dded8c1913207d76e06c53c0d6@dizum.com>Show Full Headers
Complete Article Headers
Message-ID: <20100916092949.8ECDA8144F@fleegle.mixmin.net> Subject: Re: Hsub reader Date: Thu, 16 Sep 2010 09:29:49 +0000 From: StealthMonger <Use-Author-Supplied-Address-Header@[127.1]> References: <6de9e3dded8c1913207d76e06c53c0d6@dizum.com> 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.ams.giganews.com!nntp.giganews.com!feeder.erje.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!194.109.133.84.MISMATCH!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!news.wiretrip.org!news.dizum.com!sewer-output!mail2news Author-Supplied-Address: StealthMonger <AT> nym <DOT> mixmin <DOT> net Newsgroups: alt.privacy.anon-server Mail-To-News-Contact: abuse@dizum.com Organization: mail2news@dizum.com Lines: 72