🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: uinmyn 0.06

#247495
From: Dave U. Random
Date: Thu, 24 Mar 2011 17:56
354 lines
14585 bytes
In article <7B1UA78J40626.0374189815@reece.net.au>
Kulin Remailer <remailer@reece.net.au> wrote:
>
> In article <20110315104623.F320B81403@fleegle.mixmin.net>
> StealthMonger <Use-Author-Supplied-Address-Header@[127.1]> wrote:
> >


> >
> > Here are some scripts to facilitate use of url@is-not-my.name.
> >
> > There are two main scripts:
> >
> >    uinmyn-fetch-body.py
> >       -- code URLs into a request and save the key
> >
> >    uinmyn-do-aam-article.py
> >       -- extract pages from returned a.a.m. articles
> >
> > Given a (short) list of URLs, uinmyn-fetch-body.py generates a random
> > key for the encryption and hsub of the reply, saves the key in a local
> > database, and constructs the body of the request, encrypted and ready
> > to send through a remailer chain.


How does one get the URLs without first going out on internet to 
see them?  Does this not defeat the goal?  How short, as remailers 
do not send large files anyway?  This database is created by the 
program itself and is encrypted?  When you say, "...ready to send," 
exactly what do you mean?  Does it generate a text file that I 
should then copy and paste into QSL, for example, or what?

> > Each message from a.a.m. is then fed to uinmyn-do-aam-article.py.  If
> > the message matches a key in the database, the key is removed from the
> > database, the decrypted message is saved for further processing, and
> > the script returns with a positive code.  Otherwise, the script gives
> > a negative code.

Is the encryption symmetric?  I mean, is the key used to decrypt 
the very same one that was used to encrypt?  If someone were to get 
my key, can he determine what I was after?  When the decrypted 
message is saved, where is it saved?
> >
> > The net effect, if all goes well, is that the pages addressed by URLs
> > submitted to uinmyn-fetch-body.py show up, after privacy-protecting
> > remailer random latencies.  No record leaves the requester's site of
> > who accessed the pages.

Are the pages saved in text only mode, no images?  What prevents a 
correlation between my sending a remailer request and the delivery 
of a message on a.a.m.?
> >
> > Also provided here are minor support scripts to list the URLs in a
> > given reply, and to insert page content into the browser-accessible
> > cache provided by wwwoffle [2].

"Minor support scripts..." aka, the devil is in the details.  Is 
human-readable content returned, or do we all need to understand 
HTML like you and your friend wwwoffle? :)  Does all this work in 
Windows too?

> > Return codes from uinmyn-do-aam-article.py are useful for procmail,
> > which might be checking the same message for other hits.  The
> > following .procmailrc clause sequence will send the decrypted "inner
> > posting" to local-recipient.
> >
> >    :0fW
> >    | uinmyn-do-aam-article.py /path/to/uinmyn_pending_requests_db
> >
> >    :0a
> >    ! local-recipient
> >
> > Out of respect for your privacy, uinmyn does not require you to access
> > any web site for its installation or use (though you may if you wish:
> > mailto:stealthsuite@nym.mixmin.net?subject=send%20index.html).
> > Everything is right here in this posting.
> >
> > ABOUT THE CODE
> >
> > Succinctness and readability are given priority here over efficiency.
> > If efficiency becomes an issue, there are lots of opportunities here
> > for speedup.
> >
> > These scripts are meant mainly as hints for you to adapt to the needs
> > of your particular case.  But they could be used verbatim if you like.
> >
> > INSTALLATION
> >
> >    Have python, gnupg, and mixmaster installed.
> >    Have the send@is-not-my.name public key on your gnupg keyring.
> >    Copy the scripts from below to somewhere on your executables path.
> >
> > Of course, you are taking a full feed of a.a.m at all times without
> > interruption, separating wheat from chaff only after it's all behind
> > closed doors.  Otherwise, the world is informed about which articles
> > you find interesting.

Is the some sort of mechanism to determine where my last query left 
off so that I can begin from there with the download?  I am not 
sure how many messages a.a.m. retains indefinately.
> >
> > Remember, long random latency is part of the price of anonymity.  It
> > can't be done with TOR or any other low-latency method.

Are you suggesting that we not use Tor?  What about using tor for 
the initial remailer message?  StealthMonger, I like Tor, speaking 
frankly.  In my mind not using it would be the same as using Google 
to do my queries and email.  What are you thinking?  Do you want to 
throw out the baby with the basket?


> > EXAMPLE
> >
> > Typing
> >
> >    uinmyn-fetch-body.py db | mixmaster url@is-not-my.name
> >    http://www.banana.mixmin.net
> >    ^D
> >
> > will send a request for http://www.banana.mixmin.net.  The key is
> > added to db, which need not have existed beforehand.  (It's plain
> > ASCII, so you can look at it to better understand what's happening.)
> >
> > Later, in a directory full of fresh a.a.m articles, the command
> >
> >    for f in *; do uinmyn-do-aam-article.py db < $f >> mbox; done
> >
> > will append the requested content to mbox if it has arrived.
> >
> > FOOTNOTES
> >
> > [1] http://www.is-not-my.name
> > [2] World Wide Web OFFline Explorer http://www.gedanken.demon.co.uk/wwwoffle/
> >
> > BUGS
> >
> >    Encryption/hsub keys are exposed briefly during a.a.m. processing.
> >
> > CHANGE LOG
> >
> >    0.06
> >
> >    Add time-stamps to database entries to facilitate removal of old,
> >    stale entries.
> >
> >    Changed slogan from "Is this anonymous surfing, or what?".
> >
> >    Documentation improvements.
> >
> >    0.05
> >
> >    Quote URL in uinmyn-do-aam-article.py against shell interpretation.
> >
> >    0.04
> >
> >    Did TODO item:
> >    Use PIPE for the gpg stdin in uinmyn-do-aam-article.py.
> >    (eliminating previous stupid size limit).
> >
> >    0.03
> >
> >    Add "decode=True" in uinmyn-to-wwwoffle-cache.py to capture coded
> >    files, such as .pdfs.
> >
> >    Change the www.bananasplit.info reference to www.banana.mixmin.net.
> >
> >    0.02
> >
> >    Add a script to enter gotten pages into a local browser-accessible
> >    cache.
> >
> >    Improvements to the documentation.


How about a GUI to make this beast rock?  What command line 
interface am I going to need?  Is this a cygwin thing?

> >
> >
> > Here are the scripts.
> >
> > 8<--------8<--------8<--------8<--------8<--------8<--------8<--------
> > #! /usr/bin/python
> >
> > # SYNOPSIS
> > #   uinmyn-fetch-body.py <pending-requests-dict>
> >
> > # DESCRIPTION
> >
> > #   Reads URLs from standard input, one per line, generates a fresh
> > #   random key to encrypt the reply and for its hsub, adds the key and
> > #   the requested URLs to pending-requests-dict (creating it anew if
> > #   it doesn't exist), constructs and encrypts a request for
> > #   url@is-not-my.name, and writes it to standard output.
> >
> > from os import urandom
> > from base64 import standard_b64encode
> > import sys, os, time
> > import pprint
> > from subprocess import Popen, PIPE
> >
> > UINMYN_PENDING_REQUESTS = sys.argv[1]
> >
> > # same key for both encryption and hsub:
> > key  = standard_b64encode(urandom(15))
> >
> > gpgproc = Popen('gpg -e -a -r send@is-not-my.name --trust-model always --no-emit-version --batch', shell=True, stdin=PIPE)
> > gpgproc.stdin.write("KEY " + key + '\n')
> >
> > urls = [time.time()] # time-tag precedes the urls in the db entry
> > for line in sys.stdin.readlines():
> >     urls.append(line.rstrip())
> >     gpgproc.stdin.write('SOURCE ' + line.rstrip() + '\n')
> >
> > gpgproc.stdin.close()
> >
> > # Not dealt with here: Mutually exclusive access to the
> > # UINMYN_PENDING_REQUESTS database, as would be required if request
> > # issuance might be concurrent with a.a.m. processing.
> >
> > if os.path.isfile(UINMYN_PENDING_REQUESTS):
> >     execfile(UINMYN_PENDING_REQUESTS)
> > else:
> >     uinmyn_pending_requests = {}
> > uinmyn_pending_requests[key] = urls
> >
> > new_upr_fd = open(UINMYN_PENDING_REQUESTS, 'w')
> > new_upr_fd.write('uinmyn_pending_requests =\\\n')
> > pprint.pprint(uinmyn_pending_requests,stream=new_upr_fd)
> > 8<--------8<--------8<--------8<--------8<--------8<--------8<--------
> > #! /usr/bin/python
> >
> > # SYNOPSIS
> > #   uinmyn-do-aam-article.py <pending-requests-dict>
> >
> > # DESCRIPTION
> >
> > #   Reads an article from standard input.  If its Subject: might be an
> > #   hsub, check it against each key in pending-requests-dict in turn.
> > #   If a hit is found, decrypt the inner posting and write it to
> > #   standard output.
> >
> > import sys, os
> > from hashlib import sha256
> > import email
> > import pprint
> > from subprocess import Popen, PIPE
> >
> > UINMYN_PENDING_REQUESTS = sys.argv[1]
> >
> > posting = email.message_from_file(sys.stdin)
> > subject = posting.get('Subject')
> >
> > try:
> >     iv = subject[:16].decode('hex')
> > except TypeError:
> >     sys.exit(1)
> >
> > # Not dealt with here: Mutually exclusive access to the
> > # UINMYN_PENDING_REQUESTS database, as would be required if request
> > # issuance might be concurrent with a.a.m. processing.
> >
> > if os.path.isfile(UINMYN_PENDING_REQUESTS):
> >     execfile(UINMYN_PENDING_REQUESTS)
> > else:
> >     uinmyn_pending_requests = {}
> >
> >
> > for key, urls in uinmyn_pending_requests.iteritems():
> >     if subject == (iv+sha256(iv+key).digest()).encode('hex')[:48]:
> >         # Doing part of the job in shell:
> >         gpgproc = Popen('mkfifo $HOME/passwdf ; (echo ' + key + ' > $HOME/passwdf &); gpg --passphrase-fd 3 3<$HOME/passwdf --trust-model always --batch 2>/dev/null ; rm $HOME/passwdf', stdin=PIPE, shell=True)
> >         gpgproc.stdin.write(posting.get_payload())
> >         # Other processing that could be done here:
> >         #  Deal with discrepancies between requested and obtained URL lists.
> >         #  Save the used key in an archive, rather than losing it forever.
> >         del uinmyn_pending_requests[key]
> >         new_upr_fd = open(UINMYN_PENDING_REQUESTS, 'w')
> >         new_upr_fd.write('uinmyn_pending_requests =\\\n')
> >         pprint.pprint(uinmyn_pending_requests,stream=new_upr_fd)
> >         sys.exit(0)
> > sys.exit(1)
> > 8<--------8<--------8<--------8<--------8<--------8<--------8<--------
> > #! /usr/bin/python
> >
> > # SYNOPSIS
> > #   uinmyn-list-gotten-urls.py
> >
> > # DESCRIPTION
> >
> > #   List the URLs in the url@is-not-my.name "inner mail" on standard
> > #   input together with the sizes of the fetched pages.
> >
> > import sys, email
> >
> > pages = email.message_from_file(sys.stdin)
> > for page in pages.get_payload():
> >     print(page.get('Content-Description') + ', size = ' + repr(len(page.get_payload())))
> > 8<--------8<--------8<--------8<--------8<--------8<--------8<--------
> > #! /usr/bin/python
> >
> > # SYNOPSIS
> > #   uinmyn-to-wwwoffle-cache.py
> >
> > # DESCRIPTION
> >
> > #   Given a (decrypted) url@is-not-my.name "inner posting", enter each
> > #   page that it contains into the wwwoffle cache, overlaying any
> > #   previous content having matching URLs.
> >
> > import sys, os, email
> > from subprocess import Popen, PIPE
> >
> > pages = email.message_from_file(sys.stdin)
> > for page in pages.get_payload():
> >     p = Popen('wwwoffle-write \'' + page.get('Content-Description') + '\'', stdin=PIPE, shell=True)
> >     p.stdin.write('HTTP/1.0 200 OK\n')
> >     p.stdin.write('Content-Type: ' + page.get('Content-Type') + '\n\n')
> >     p.stdin.write(page.get_payload(decode=True))
> >     p.stdin.close()
> >     p.wait()
> > 8<--------8<--------8<--------8<--------8<--------8<--------8<--------
> >
> >
> >
> >  -- StealthMonger <StealthMonger@nym.mixmin.net>
> >     Long, random latency is part of the price of Internet anonymity.
> >
> >    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/>
> >
> > iEYEARECAAYFAk1+58QACgkQDkU5rhlDCl6zCACguZBtkNeT1e3AxjZfQFDeBEpg
> > 6lQAnRsgP/u3PeMpufRfiVx2xrNWuUQM
> > =jxyo
> > -----END PGP SIGNATURE-----
>
> StealthMonger, I know you take great care in your work, and this
> all looks very nteresting and useful; but, speaking for myself at
> least, I have to say that your explanation is rather difficult to
> understand.  I would indeed like to give it a try, but can you
> 'dumb down' the dialogue a bit so that some of us who are not
> programmers can determine whether this is something we want.  Some
> of us have python on cygwin, windows and even linux, but we are not
> necessarily programmers.  :)  Thanks.


We love you, StealthMonger.  I also think you are certifiable!  
Thank goodness you are on our side.
Technical Details
Message-ID: <6f79dea2c9db689da36e90bd96e1d914@anonymitaet-im-inter.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.ams.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin3!goblin.stu.neva.ru!news-transit.tcx.org.uk!news.mixmin.net!mail2news.mixmin.net!not-for-mail
References: <20110315104623.F320B81403@fleegle.mixmin.net> <7B1UA78J40626.0374189815@reece.net.au>

Show Full Headers
Complete Article Headers
Message-ID: <6f79dea2c9db689da36e90bd96e1d914@anonymitaet-im-inter.net>
Subject: Re: uinmyn 0.06
Date: Thu, 24 Mar 2011 17:56:26 +0000
From: Dave U. Random <anonymous@anonymitaet-im-inter.net>
References: <20110315104623.F320B81403@fleegle.mixmin.net> <7B1UA78J40626.0374189815@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!num2.nntp.ams.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin3!goblin.stu.neva.ru!news-transit.tcx.org.uk!news.mixmin.net!mail2news.mixmin.net!not-for-mail
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@anonymitaet-im-inter.net>.
X-No-Archive: Yes
Newsgroups: alt.privacy.anon-server
Lines: 355
Injection-Info: mail2news.mixmin.net; mail-complaints-to=abuse@mixmin.net