Article View: alt.privacy.anon-server
Article #238317Brute-forcing a.a.m (was: Proof of Concept Nymserver)
From: Fritz Wuehler
Date: Tue, 04 May 2010 22:17
Date: Tue, 04 May 2010 22:17
119 lines
5723 bytes
5723 bytes
> As a concept it's quite good but I'm still a
> bit worried about the scalability aspect of it. I need to experiment
> with trying to decrypt the entire content of a.a.m and see if my cpu
> melts down. :)
You may use the following for the benchmarking. There are several
references to one config.py, which I do not include here, but I
think you'll be able to sort that out.
For 200 messages and 10 passwords, I needed several minutes.
Assuming that every user of the nym concept causes roughly the same
number of messages sent to a.a.m, the total computation effort
scales approximately by square, the effort per/by one user scales
linearly. The same holds for traffic. If we use encrypted subjects,
the computation time per message is still present, but much smaller
and negligible compared to traffic.
Notably, the anonymity set per message also scales directly with
the number of users, as long as everybody downloads everything, but
there's no way around that.
#!/usr/bin/python
import GnuPGInterface
import nntplib
import socket
import sys
import config
# How many articles to decrypt
decrypt_count = 200
# Make up some passwords to try
all_passphrases = [str(i) for i in range(0,10)]
gnupg = GnuPGInterface.GnuPG()
# Decrypt message using GPG
def Decrypt(ciphertext, passphrase):
gnupg.options.meta_interactive = 0
gnupg.options.homedir = config.keyring
proc = gnupg.run(['--decrypt'],
create_fhs=['stdin', 'stdout', 'stderr', 'passphrase'])
proc.handles['passphrase'].write(passphrase)
proc.handles['passphrase'].close()
proc.handles['stdin'].write(ciphertext)
proc.handles['stdin'].close()
plaintext = proc.handles['stdout'].read()
proc.handles['stdout'].close()
proc.handles['stderr'].close()
return plaintext
# Connect to server
try:
nntp_conn = nntplib.NNTP(config.nntp_server, config.nntp_port,
config.nntp_user, config.nntp_pass)
except nntplib.NNTPError, e:
print '\nError connecting to server:', e
sys.exit()
except socket.error, e:
print '\nError connecting to server:', e
sys.exit()
# Get group stats
try:
(group_resp,group_count,group_first,group_last,group_name) =
nntp_conn.group(config.nntp_group)
except nntplib.NNTPError, e:
print '\nError selecting group:', e
sys.exit()
# Get article range to load
load_last = int(group_last)
load_first = max(int(group_first), load_last - decrypt_count + 1)
# Info output
print '%s articles, %s-%s, load %d-%d (%d max)' % (group_count,
group_first,
group_last, load_first, load_last, load_last - load_first + 1)
# Get xover
(xover_resp, xover_items) = nntp_conn.xover(str(load_first),
str(load_last))
# Check message info
for item in xover_items:
# Get message info
(id, subject, poster, date, mid, references, size, lines) = item
size = int(size)
# Check message size
if size > config.max_size:
continue
# Get text
try:
(resp, id, mid, text) = nntp_conn.article(id)
print '.',
except EOFError, e:
print '\nError downloading from server:', e
sys.exit()
# Decrypt, symmetric
for passphrase in all_passphrases:
plaintext = Decrypt("\n".join(text), passphrase)
if plaintext:
# Do interesting stuff here...
print '#',
break
# Finish line
print ' done.'
# Close NNTP connection
nntp_conn.quit()
Technical Details
Message-ID:
<4a98142106894459168a23f57a052090@msgid.frell.theremailer.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!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!news.wiretrip.org!news.bananasplit.info!mail2newsReferences:
<53b4dc958d330eea795b8b188b022852@dizum.com> <bbb05576405efad552046df3b5522ccb@remailer.privacy.at> <slrnhtof44.bt0.admin@fleegle.mixmin.net> <5b5a935d70041121728673f38757de7e@dizum.com> <slrnhtqhpa.bt0.admin@fleegle.mixmin.net> <c80bd7c90c240a56d6cd849fefa4fc4b@dizum.com> <slrnhtuc1s.bt0.admin@fleegle.mixmin.net> <603a43d915e1c48c480fa822ad268430@dizum.com> <slrnhtvmpu.bt0.admin@fleegle.mixmin.net>Show Full Headers
Complete Article Headers
Message-ID: <4a98142106894459168a23f57a052090@msgid.frell.theremailer.net> Subject: Brute-forcing a.a.m (was: Proof of Concept Nymserver) Date: Wed, 05 May 2010 00:17:16 +0200 From: Fritz Wuehler <fritz@spamexpire-201005.rodent.frell.theremailer.net> References: <53b4dc958d330eea795b8b188b022852@dizum.com> <bbb05576405efad552046df3b5522ccb@remailer.privacy.at> <slrnhtof44.bt0.admin@fleegle.mixmin.net> <5b5a935d70041121728673f38757de7e@dizum.com> <slrnhtqhpa.bt0.admin@fleegle.mixmin.net> <c80bd7c90c240a56d6cd849fefa4fc4b@dizum.com> <slrnhtuc1s.bt0.admin@fleegle.mixmin.net> <603a43d915e1c48c480fa822ad268430@dizum.com> <slrnhtvmpu.bt0.admin@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!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!news.wiretrip.org!news.bananasplit.info!mail2news DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=frell.theremailer.net; s=remailer; h=Message-ID:Subject:Newsgroups:Comments:From:Date; bh=auVRJRyokJibZmkogmpQNttAGJ4+H5weE+bZYhqrUtk=; b=AHM4AIx9xQhDR3f+/i+XzP5nvOffJ3gBQxTJw60WK5hYPPb5M0PE0KuAMhwdTNA1aI6szLZLdvN3oMwhzx8QuihicGQG4Sf+XyI1EaegqzuKtKq+rowGBFwj6g7/GTQ2atU35tJCeDpe/zCrS5PAusfvwcgBOS5a17osPJ2jhUkR1lbPrHQ64r4/cW8ueOMFxHOth7ILj51euVg/CcycPTBEyFqtU97tnmLxu5IcebNTtit3urybnq8bPW/NipmVA2KA9VpH9Se3CN/zt5cAtDMkAbeu5BXzcN+kvm1m+kXSgqB/Btk8VodTXknhIXERZvw3g6glEuXeo6tEPSoeUFg=; 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@frell.theremailer.net>. Identifying the real sender is technically impossible. Newsgroups: alt.privacy.anon-server X-No-Archive: yes Precedence: anon X-Abuse-Contact: abuse@bananasplit.info Organization: Bananasplit - Mail2News Injection-Info: mail2news.bananasplit.info Lines: 119