🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Safe Messaging

#254060
From: Rooster
Date: Thu, 09 Feb 2012 02:11
108 lines
6466 bytes
It is a truism that encrpted messages are more secure than plain-
text, and they help protect your privacy.  I have written a little 
script that will transform your plain-text messages to the kulin 
remailer into an encrypted one, which kulin would then decrypt and 
post.  It can be used to send a message to news groups or to 
individuals.  It's easy to use.

If you have Windows installed, then you may very well have Cygwin too. If so, then you already have available two extremely helpful CLI programs at your disposal: getclip and putclip.  Getclip gets the contents of Windows Clipboard and can save it to a file on-the-fly; putclip does just the opposite: it puts the contents of a file onto the Clipboard for use elsewhere. Both of these programs run in the Windows shell CLI.  In order to utilize these two simple utilities with my script, you need to have QSL, Gpg and the Remailer-key from kulin (Kulin Remailer <remailer@reece.net.au>), which can be freely downloaded. I will illustrate with this template:


Fcc: outbox
Host: your.host.net
From: nobody@invalid.net
Chain: *, kulin
To: remailer@reece.net.au

::
Encrypted: PGP

::
Anon-To: mail2news@dizum.com
Latent-Time: +0:00

##
From:"Yours Truly"
Subject: That's the way I like it
Newsgroups: news.group1, news.group2
References:

here goes the message body, etc...
----------------------------------------

First, let me say that this template, as well as most others, can be used for "Reply-to" messages easily enough in QSL.  If you save it first with no blank lines, and with these last three headers blank, then when you use Clipboard > Follow-Up and select it as the template in QSL, it will automatically populate those three headers with the original message's values so that your reply is put in the thread accordingly. That's handy.  Then you would also need to separate the sections manually, such as I have shown above, "before" you run my little script. Also, if you are intending to send a message to an individual, not a group, you should use that person's email URL in the above "Anon-To:" header, instead of the M2N-gateway, and leave off the "Newsgroups:" header.

So, once you have composed the message, and the format is as you see above, take your cursor and select everything from the second :: symbol, the one above Anon-To, including that symbol itself, all the way to the end of your message, and copy it Ctrl+C to the Clipboard.  Then, in QSL use "File > Open > Command prompt" and you will now be in the Windows shell and the current directory will be where you have QSL installed.  Into this same directory you will need to have copied this script, which I have named , eh, "rooster1.bat" in this context:

------------------------
rem: this script copies the contents of the Windows Clipboard to a 
text file, encrypts it to a particular recipient's key in your 
keyring file, saves that encrypted data to a file in ascii armor 
format, and reads the encrypted data back onto the Windows 
Clipboard, which can then be pasted into a message for remailing.

getclip > encmsg1
gpg -ai -r remailer@reece.net.au -e encmsg1
putclip < encmsg1.asc

rem: the presence of option "i" makes the program have you confirm 
that you want to overwrite an existing file with the same name as 
the one being output, which is "encmsg1.asc". if you do not want 
this prompting to happen, remove the option of "i"; the file will 
be overwritten.

rem: use this option if you want to encrypt also to (yourself) 
another: "--encrypt-to name"
--------------------------

At the command prompt, simply type "rooster1.bat" without the 
quotation marks. Now the script will take your Clipboard contents, 
save it to a file named encmsg1, apply the commands of gpg on the 
second line to this file, encrypting it to kulin's remailer key, 
which presumably you have on your keyring :) , put the encrypted 
data into a file named encmsg1.asc, and, finally, put this 
encrypted data onto Windows Clipboard. All you need to do at this 
point is close the Windows shell (or not!), move your cursor back 
over the QSL Window, which should still have the original text 
selected (unless you stopped that selection for some reason), and 
paste the newly encrypted data into the message, replacing the 
plain-text selection completely.  So, now your message will look 
like this:


Fcc: outbox
Host: your.host.net
From: nobody@invalid.net
Chain: *, kulin
To: remailer@reece.net.au

::
Encrypted: PGP

-----BEGIN PGP MESSAGE-----
Version: GnuPG v1.4.11 (MingW32)

hQEMAygkY0+9DWnxAQf/RVgJAMkEJCY4723vgp2FNu+wMX5JPGIdmVrUsB3SkiD8
6xPFzDtU18WFVAfTwnT0WH6dHL/iry0WWp+NJpZUA9Mh4pcpXSZjV7VY6MmEgmcW
mjgDBDKEQNnpFKH1gt62+uEMFGO8a93oZV7Uvh1YyqjvFzyLYsosItBw4GT3HTow
ezKgxFun+/LG1up7+jWaSHF9K0J+Hpg+OybHAhuGRBggMOG1rhizCqL1fR7fjtYd
m6cxo/+ubOitXCpFvzVeg/gNysuRUqWsklS32UQbXXDfGqkKeIb3rRiRqVUJMFnZ
RfFPtzcB86sm7loaXbsduoTooiZx6jxbAM3O1RKNMcnABM2mgO2H5JSJkENUv54R
mm+AebM2a6+qOlwOfsG/tqIhPytbmmfhz6pGGvtFqnuAKJFHb4Ef1OaVAeGszzIS
oZU1pFHb+dZzo3jnOvi0BMMZFRAHNDIUqEDZzjrSnIA6jffv+B78PgY/zZKptdNt
JpWyliQWruR+yADrs6qzWQgtMvPgD+r4IANkc/S9Zp8G73pNTbNAYkTs1GJ+pc15
wKIr5efn1L9IpPpgVhMeW5ug31AeZmc7caCFp+41Guoc1Jv5Sp0=
=2eZq
-----END PGP MESSAGE-----



This message is ready to send to the kulin remailer, using QSL or 
your favorite mail/news program.  :)

-- 
rooster@thechickencoop.net
gallus gallus domesticus
"A happy member of Kingdom Animalia"

Technical Details
Message-ID: <IU4XLNCW40948.4249189815@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.ams3.giganews.com!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!feed.xsnews.nl!border-1.ams.xsnews.nl!lightspeed.eweka.nl!81.171.88.16.MISMATCH!eweka.nl!hq-usenetpeers.eweka.nl!188.40.76.149.MISMATCH!mail2news.mixmin.net!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <IU4XLNCW40948.4249189815@reece.net.au>
Subject: Safe Messaging
Date: Thu, 09 Feb 2012 02:11:53 +0000
From: Rooster <remailer@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.ams3.giganews.com!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!feed.xsnews.nl!border-1.ams.xsnews.nl!lightspeed.eweka.nl!81.171.88.16.MISMATCH!eweka.nl!hq-usenetpeers.eweka.nl!188.40.76.149.MISMATCH!mail2news.mixmin.net!not-for-mail
Keywords: karma
X-Remailer-Contact: abuse@reece.net.au (English Only Please)
Newsgroups: alt.privacy.anon-server
Lines: 109
Injection-Info: mail2news.mixmin.net; mail-complaints-to=abuse@mixmin.net
X-Original-Bytes: 6188