🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Decrypting AAM

#238341
From: George Orwell
Date: Wed, 05 May 2010 18:17
61 lines
3697 bytes
> I don't know if it is practical to do that - it is said that the
> time
> needed will be too long if the number of messages gets to any size,
> but I
> put together a script to do the decrypting, and haven't found that
> it
> takes much time to decrypt.

I had a look at your script and the coding style looked very 
familar. Indeed, most of the code looks like readaam, and to be 
honest, I don't think it has improved since...

Imports which are never used, hardcoded file names, awkward use of 
GPG via os.system, a gazillion of temporary files, a gazillion of 
variables with nondescript names, heaps of commented out code, and 
most of the time I'm scratching my head whether the task is really 
as complicated as the code...

> NB: If you have to authenticate to your nntp server, this won't
> work - I
> do not know how to program for that.

Oh, come on... It's been a year since readaam, and the syntax is 
right on the Python nntplib homepage. In fact it's the very first 
method explained after the examples:

nntplib.NNTP(host[, port[, user[, password[, readermode][, 
usenetrc]]]])

> The utility will, if it works as intended, decrypt messages
> encrypted
> either symmetrically or asymmetrically, or encrypted in 2 layers.
> The utility is pretty rudimentary and could be made far better by
> someone
> interested in doing the job.

There is at least two other implementations in Python for 
downloading and decrypting a.a.m: aam2mail and news2maildir.
And in my humble opinion both are written in a reasonable coding 
style, both are much easier to understand than your script, and 
both already include sensible processing of downloaded messages, 
namely forwarding via SMTP (aam2mail) or delivery to maildir 
(news2maildir).

aam2mail:
http://www.bananasplit.info/nymgrind/contribs/

news2maildir:
http://www.bananasplit.info/nymgrind/news2maildir/

I just checked: if you change only two or three lines in 
aam2mail.py, then it will happily try to decrypt all messages in 
a.a.m and just forward those for which decryption succeeded.

Il mittente di questo messaggio|The sender address of this
non corrisponde ad un utente   |message is not related to a real
reale ma all'indirizzo fittizio|person but to a fake address of an
di un sistema anonimizzatore   |anonymous system
Per maggiori informazioni      |For more info
                  https://www.mixmaster.it
Technical Details
Message-ID: <a335477ebeeb3b0ba5dc2c01e42bca36@mixmaster.it>
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!border2.nntp.ams2.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!194.109.133.84.MISMATCH!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!news.wiretrip.org!news.bananasplit.info!mail2news
References: <BLU0-SMTP2304BA87C4D061A9E58A2BCCF40@phx.gbl>

Show Full Headers
Complete Article Headers
Message-ID: <a335477ebeeb3b0ba5dc2c01e42bca36@mixmaster.it>
Subject: Re: Decrypting AAM
Date: Wed, 05 May 2010 18:17:58 +0000
From: George Orwell <nobody@mixmaster.it>
References: <BLU0-SMTP2304BA87C4D061A9E58A2BCCF40@phx.gbl>
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!border2.nntp.ams2.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!194.109.133.84.MISMATCH!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!news.wiretrip.org!news.bananasplit.info!mail2news
Comments: This message did not originate from the Sender address above.
 It was remailed automatically by anonymizing remailer software.
 Please report problems or inappropriate use to the
 remailer administrator at <abuse@mixmaster.it>.
Newsgroups: alt.privacy.anon-server
X-No-Archive: yes
X-Abuse-Contact: abuse@bananasplit.info
Organization: Bananasplit - Mail2News
Injection-Info: mail2news.bananasplit.info
Lines: 60
X-Original-Bytes: 3456