🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: uinmyn 0.06

#247526
From: Anne Onime
Date: Fri, 25 Mar 2011 05:15
74 lines
4168 bytes
In article <slrniondms.tct.admin@fleegle.mixmin.net>
Zax <admin@mixmin.net> wrote:
>
> On Tue, 15 Mar 2011 10:46:23 +0000 (GMT), StealthMonger wrote in
> Message-Id: <20110315104623.F320B81403@fleegle.mixmin.net>:
>
> > 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.
>
> Hi StealthMonger,
>
> Just taken a look at your uinmyn-fetch-body.py and would suggest you
> consider the minor patch below.
>
> In summary:
> Using the long keyid to specify the GPG recipient instead of
> send@is-not-my.name avoids a potential risk if anyone starts posting
> fake Nymserver keys for the unwary to download.
>
> I removed the Base64 import and used the internal encode('base64').
> Don't think this makes much difference unless you're catching
> exceptions.  It just saves an import.
>
> Casting the Base64 output as a string (using %s) prevents a potential
> concatenation error should the Base64 output be all numeric, resulting
> in "key" being an Integer.  This would cause:
> TypeError: cannot concatenate 'str' and 'int' objects
>
> I also changed the gpgproc.stdin.write to the same format, more for
> consistency than any actual issue.
>
>
>
> --- uinmyn-fetch-body.py        2011-03-23 18:07:32.000000000 +0000
> +++ uinmyn-fetch-body.sc.py     2011-03-24 20:44:30.000000000 +0000
> @@ -12,23 +12,25 @@
>  #   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]
> +NYMSERV_KEY = '94F204C28BF00937EFC85D1AFF4DB66014D0C447'
>
>  # same key for both encryption and hsub:
> -key  = standard_b64encode(urandom(15))
> +key  = urandom(15).encode('base64')
>
> -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')
> +gpgcmd = 'gpg --armor --encrypt --recipient %s ' % NYMSERV_KEY
> +gpgopts = '--trust-model always --no-emit-version --batch'
> +gpgproc = Popen(gpgcmd + gpgopts, shell=True, stdin=PIPE)
> +gpgproc.stdin.write("KEY %s\n" % key)
>
>  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.write('SOURCE %s\n' % line.rstrip())
>
>  gpgproc.stdin.close()


Looks like Zax knows his stuff all right!  I suppose you want a cup 
of tea after all that, huh?  :)  Once again, thanks for the 
initiative and contribution to the group.
Technical Details
Message-ID: <2c1e1ce291a02cee4864a44d60c77621@rip.ax.lt>
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!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.straub-nv.de!news.mixmin.net!mail2news.mixmin.net!not-for-mail
References: <20110315104623.F320B81403@fleegle.mixmin.net> <slrniondms.tct.admin@fleegle.mixmin.net>

Show Full Headers
Complete Article Headers
Message-ID: <2c1e1ce291a02cee4864a44d60c77621@rip.ax.lt>
Subject: Re: uinmyn 0.06
Date: Fri, 25 Mar 2011 05:15:02 +0000
From: Anne Onime <anonymous@rip.ax.lt>
References: <20110315104623.F320B81403@fleegle.mixmin.net> <slrniondms.tct.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!border1.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.straub-nv.de!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@rip.ax.lt>. An online form is
 available at http://rip.ax.lt/block to prevent further emails
 from being sent to this email address.
X-No-Archive: Yes
Newsgroups: alt.privacy.anon-server
Lines: 75
Injection-Info: mail2news.mixmin.net; mail-complaints-to=abuse@mixmin.net
X-Original-Bytes: 3928