Article View: alt.privacy.anon-server
Article #251057Re: 'a.a.m' message decryption method
From: Rooster
Date: Sat, 24 Sep 2011 08:26
Date: Sat, 24 Sep 2011 08:26
126 lines
8333 bytes
8333 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
In article <G5PS9JU540801.5277430556@reece.net.au>
Rooster <remailer@reece.net.au> wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> In article <YJDGS2WL40801.4446990741@reece.net.au>
> Rooster <remailer@reece.net.au> wrote:
> >
> >
> > The add-on enables you to export the messages into several different formats,
> > depending on what you need them for. For this purpose i export them into text
> > format, each in a separate file and all of them into one folder. Important note:
> > if there are any messages that are not actually gpg encrypted (say, someone sent
> > the newsgroup a plain text message), you need to remove it before proceeding
> > with the batch decryption procedure because any file that is not a decrypted
> > message will cause the command to stop, and it will not continue past this
> > point. You would have to remove the plain text message and start the command
> > again.
>
> I want to mention one more thing here about removing the nonencrypted, plain-
> text messages. There are a number of ways to find them; but from what I have
> seen there are usually very few anyway, and so I have devised a simple technique
> using TB itself. Once the messages are moved into a local folder, when you
> select a group of messages, Thunderbird will show you the first few lines of
> each of them, including the message subject, in one window of the Message Pane
> (View/layout/message pane), and you can easily scroll through them. When in
> this selection view, the Message Pane is limited to showing you only 100 at a
> time. So, select 100 and scroll through them, and if you see one that is not an
> encrypted message, just write down the first few characters of the subject. When
> you have gone through these 100, export them to the external folder where you
> will later decrypt them in a batch. Go back into TB and do the next 100 the
> same way. This will not take long as there are seldom more than a few
> nonencrypted messages anyway. Once you have moved a bunch of them out of TB, go
> to the folder on your desktop and remove the few whose number you noted. these
> messages will be already sorted by the first few characters as it is and easy to
> find.
I have now worked out the routine completely for decrypting the messages in
a.a.m. using Windows. I have not quite got the Linux procedure worked out yet,
but I am close with it too, and i will share that part when I finish it up. I
have improved upon the previous instructions, which are still valid insofar as
they go, but I have eliminated the problem of having to remove messages ahead of
time if they have IDEA ciphers and messages that were not valid gpg encryptions,
such as the occassional plain-text file that gets sent to the group. If you
have a valid key and passphrase for one of the messages, it will get decrypted,
and pretty quickly too.
It is not necessary to use another program when using this method except,
obviously, you will need to have GnuPG working such that it can find your
keyring with the key for which you want to decrypt the messages of yours.
First copy the batch of messages you want to search for your message and paste
them into a folder outside of your newsreader program, or export them if you
have a clean way to do that. The important point is that the messages be put in
ASCI text format. Personally, I export the messages into a folder in my
directory that is always EFS encrypted. Depending on how you put them into the
folder in your diretory, you will need to make sure that the messages do not get
named with unusual characters, or spaces, such that the GPG program cannot
interpret the correct name. Sometimes, exporting files will give them a date or
other extraneous characters, which you may not want. i export all the messages
using the Thunderbird addon that i mentioned earlier so that they are saved as
text files with the same name as their subject name in the group, but nothing
else.
Then you need to make sure that they have a file extension of '.asc'. Gpg can
work on '.asc' or '.gpg' files, but as far as i know, that is all. i use '.asc'
extensions, which are text files. Then you need to open a command prompt and cd
to the folder where you saved them. Then you need to issue this command at the
prompt:
FOR %G IN (*.asc) DO echo <passphrase>|gpg --batch --passphrase-fd 0 --decrypt-files %G
This will make gpg go to each file in your folder and automatically try to
decrypt them with your secret keys on your keyring, and it will skip past any
message that it cannot open or that it has no cipher for, like IDEA, unless of
course you have IDEA capability in your program. The point is that it will not
get stuck on these files now. Even so, remember, you must have the file names
readable without spaces or strange characters, or it will skip it without trying
to decrypt it. Normal message subject names are fine.
As it proceeds, you will see in the terminal window informing you while it works
on each one of the messages, and there is some interesting information about
them too, depending on the level of verbosity you have gpg set up to show you.
Anyway, it will finish fairly quickly depending on your machine and how many
messages of yours it may need to decrypt. i saw it go through 1000 messages in
about 9.25 minutes. Time enough to get a little snack and drink of water. :)
When it is finished at the terminal, go back to the folder and search for your
decrypted file. if you have one there, it will have been named the same as the
file with 'subject-whatever.asc' but the decrypted version will not have the
'.asc' suffix. That is it.
As i mentioned earlier, i about got the linux command worked out, and it is
essentially the same. The problem i am having in linux, at least on my machine,
is that the password is not getting recognized by the shell command and passed
on correctly to the gpg program. maybe one of the linux wizards here can help
with that little glitch. this is the command i have for linux:
for k in *.asc; do echo <passphrase>|gpg --batch --passphrase-fd 0 --decrypt-files ${k}; done
I know that linux is persnickety about certain characters in text. perhaps my
passphrase has some characters it does not play nicely with, but i am not sure
that is the entire issue. anyway, enjoy. :) Oh, and by the way, this works
just fine in WinXP Pro too. I know there was an issue with that at some point.
-----BEGIN PGP SIGNATURE-----
Version: N/A
iQGVAwUBTn2RGe3Co03SMUtBAQKz8gwAm9SwBMaVTY7yug6GOQVaWWqPkFNfZGrk
5x8S8rUpYL/3rhK4o2Fbr2bwx+0dkUpv3KYWbMGa/27ODW/cuAbZUxB05XdrXATm
SqU8OFBEWJ2CfCsnLGFPC8fLSa1qEUASruGR51ao1tX3ILXA7Ys6660iCAJ+b453
NNL31EjabNXpTVwJeFOgcxItqXVwSYRY+tQVNnOe9Q+nvUr0IkS1dYZtW2OIznzQ
NFAAusEtizvSvBCz+uxRrrWDeZHbVduWTg4IDqo76awr/0390feFvX8qLPC288QA
Qf6D4Aoq06d+keSzNtpOhJ27eUGCPrI2UB4jv7VZci/135LOJ21mWXtLJsfIenru
3FcxlfLZ/ggla4R62FWg11Ui5YAJh9IkM+qHbJa5Hvsce6VPtSWVlAc/+HuN8nxu
EOprRYm6z8Z0U2JqZ/vzEtWAAhYAR7LWEdhCjkiBqMpOxs1mOq9KgIrqbXFbdbfm
b4/INBd4rKJt0zpoXjQX2g7CM5V5y+aT
=jfHV
-----END PGP SIGNATURE-----
Technical Details
Message-ID:
<9VXTPLYZ40810.6850231482@reece.net.au>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.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!novia!feeder.news-service.com!xlned.com!feeder1.xlned.com!eweka.nl!hq-usenetpeers.eweka.nl!188.40.76.149.MISMATCH!mail2news.mixmin.net!not-for-mailReferences:
<YJDGS2WL40801.4446990741@reece.net.au> <G5PS9JU540801.5277430556@reece.net.au>Show Full Headers
Complete Article Headers
Message-ID: <9VXTPLYZ40810.6850231482@reece.net.au> Subject: Re: 'a.a.m' message decryption method Date: Sat, 24 Sep 2011 08:26:26 +0000 From: Rooster <remailer@reece.net.au> References: <YJDGS2WL40801.4446990741@reece.net.au> <G5PS9JU540801.5277430556@reece.net.au> 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.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!novia!feeder.news-service.com!xlned.com!feeder1.xlned.com!eweka.nl!hq-usenetpeers.eweka.nl!188.40.76.149.MISMATCH!mail2news.mixmin.net!not-for-mail X-No-Archive: yes X-Remailer-Contact: abuse@reece.net.au (English Only Please) X-CC-Diagnostic: Body has all "limited, time, only" (40) Newsgroups: alt.privacy.anon-server Lines: 127 Injection-Info: mail2news.mixmin.net; mail-complaints-to=abuse@mixmin.net X-Original-Bytes: 8058