🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Blowfish esub nym reply block success report

#227012
From: StealthMonger
Date: Tue, 29 Jul 2008 07:23
283 lines
9632 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

This is just to report success with using the new blowfish encrypted
subject reply block feature of nym.mixmin.net, and to show how it was
done.

It used to be that esub (encrypted subject) was only available using
patented CAST encryption.  But last year nym.mixmin.net began to offer
blowfish esub:

   From: Zax <admin@bananasplit.info>
   Newsgroups: alt.privacy.anon-server
   Subject: Re: ATTN: ZAX, PANTA
   Date: Fri, 22 Jun 2007 14:52:11 +0000 (UTC)
   Message-ID: <f5gnmr$e9c$1@bananasplit.info>

   On Fri, 22 Jun 2007 03:18:39 -0600 (MDT), Christian Danner wrote in
   Message-Id: <2f7e7dd5888d1da8ef07072d8c06a072@pseudo.borked.net>:

   > I just added Blowfish validation to OM, took a few minutes. For
   > testing purposes it would be nice if you could only post or send me a
   > valid passphrase / subject / esub combination.

   Hi Christian,

   I just modified the Mixmaster source and it seems to be working.

   ... only Nyms going directly to a.a.m from the Nymserver, using
   Encrypt-Subject will be Blowfish encrypted.

Indeed, success has been achieved using reply blocks like this:

   Reply-Block:
   ::
   Anon-To: mail2news@m2n.mixmin.net
   Latent-Time: +0:00
   Encrypt-Key: <body-key>
   Encrypt-Subject: <subject-key>

   ##
   Subject: <subject>
   Newsgroups: alt.anonymous.messages

   **

The only additional thing needed is to be able to detect these new
replies when they appear on a.a.m.  Appended below are some codes for
just this purpose.  (You should already be taking a full feed of a.a.m
anyway.)  More information and documentation can be obtained from
mailto:stealthsuite@nym.mixmin.net?subject=send\%20esubbf_1.03.tar.gz.

 -- StealthMonger
	 <StealthMonger@nym.mixmin.net>
	 <StealthMonger@nym.panta-rhei.eu.org>

 --
   stealthmail: Scripts to hide whether you're doing email, or when,
   or with whom.  mailto:stealthsuite@nym.mixmin.net

#!/bin/sh
# This is a shell archive (produced by GNU sharutils 4.6.3).
# To extract the files from this archive, save it to some FILE, remove
# everything before the `#!/bin/sh' line above, then type `sh FILE'.
#
lock_dir=_sh11469
# Made on 2008-07-27 10:34 UTC by <StealthMonger@nym.mixmin.net>.
#
# Existing files will *not* be overwritten, unless `-c' is specified.
#
# This shar contains:
# length mode       name
# ------ ---------- ------------------------------------------
#   1383 -rw-r--r-- esubbft.c
#    338 -rwxr-xr-x esubbft-arthdr
#
MD5SUM=${MD5SUM-md5sum}
f=`${MD5SUM} --version | egrep '^md5sum .*(core|text)utils'`
test -n "${f}" && md5check=true || md5check=false
${md5check} || \
  echo 'Note: not verifying md5sums.  Consider installing GNU coreutils.'
save_IFS="${IFS}"
IFS="${IFS}:"
gettext_dir=FAILED
locale_dir=FAILED
first_param="$1"
for dir in $PATH
do
  if test "$gettext_dir" = FAILED && test -f $dir/gettext \
     && ($dir/gettext --version >/dev/null 2>&1)
  then
    case `$dir/gettext --version 2>&1 | sed 1q` in
      *GNU*) gettext_dir=$dir ;;
    esac
  fi
  if test "$locale_dir" = FAILED && test -f $dir/shar \
     && ($dir/shar --print-text-domain-dir >/dev/null 2>&1)
  then
    locale_dir=`$dir/shar --print-text-domain-dir`
  fi
done
IFS="$save_IFS"
if test "$locale_dir" = FAILED || test "$gettext_dir" = FAILED
then
  echo=echo
else
  TEXTDOMAINDIR=$locale_dir
  export TEXTDOMAINDIR
  TEXTDOMAIN=sharutils
  export TEXTDOMAIN
  echo="$gettext_dir/gettext -s"
fi
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null
then if (echo -n test; echo 1,2,3) | grep n >/dev/null
     then shar_n= shar_c='
'
     else shar_n=-n shar_c= ; fi
else shar_n= shar_c='\c' ; fi
f=shar-touch.$$
st1=200112312359.59
st2=123123592001.59
st2tr=123123592001.5 # old SysV 14-char limit
st3=1231235901

if touch -am -t ${st1} ${f} >/dev/null 2>&1 && \
   test ! -f ${st1} && test -f ${f}; then
  shar_touch='touch -am -t $1$2$3$4$5$6.$7 "$8"'

elif touch -am ${st2} ${f} >/dev/null 2>&1 && \
   test ! -f ${st2} && test ! -f ${st2tr} && test -f ${f}; then
  shar_touch='touch -am $3$4$5$6$1$2.$7 "$8"'

elif touch -am ${st3} ${f} >/dev/null 2>&1 && \
   test ! -f ${st3} && test -f ${f}; then
  shar_touch='touch -am $3$4$5$6$2 "$8"'

else
  shar_touch=:
  echo
  ${echo} 'WARNING: not restoring timestamps.  Consider getting and'
  ${echo} 'installing GNU `touch'\'', distributed in GNU coreutils...'
  echo
fi
rm -f ${st1} ${st2} ${st2tr} ${st3} ${f}
#
if test ! -d ${lock_dir}
then : ; else ${echo} 'lock directory '${lock_dir}' exists'
  exit 1
fi
if mkdir ${lock_dir}
then ${echo} 'x - created lock directory `'${lock_dir}\''.'
else ${echo} 'x - failed to create lock directory `'${lock_dir}\''.'
  exit 1
fi
# ============= esubbft.c ==============
if test -f 'esubbft.c' && test "$first_param" != -c; then
  ${echo} 'x -SKIPPING esubbft.c (file already exists)'
else
${echo} 'x - extracting esubbft.c (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'esubbft.c' &&
#if 0/*
exec gcc -g -o `basename $0 .c` $0 -lcrypto -lc;*/
#endif
/* Note:  Because of the foregoing, an executable can be built
X   simply by issuing the command ``sh esubbft.c'' to the shell.
X
SYNOPSIS
X        esubbft <key> <subject> <test>
X
DESCRIPTION
X        Return 0 if <test> might have been the result of running
X        "esubbf <key> <subject>", else 1.  A succinct statement of the
X        functionality is that
X
X          esubbft <key> <subject> $(esubbf <key> <subject>) ; echo $?
X
X        gives 0.
X
SEE ALSO
X        esubbf
X
*/
X
#include <stdio.h>
#include <stdlib.h>
#include <openssl/md5.h>
#include <openssl/blowfish.h>
X
X
int scanbytes(const char* buf, unsigned char* bytes, const int count)
{
X  int i;
X  char s[]="0xxx" , *eptr;
X
X  for (i = 0; i < count; i++) {
X    s[2] = *(buf + 2*i) ;
X    s[3] = *(buf + 2*i + 1) ;
X    eptr = &s[0];
X    *(bytes + i) = (unsigned char) strtol(s, &eptr, 16);
X    if ( eptr == &s[0] ) return 1;
X  };
X  return 0;
}
X
int main(int argc, char **argv)
{
X  BF_KEY ks;
X  int n=0;
X  char keyd[16], subd[16], tsu[24], tsvd[16];
X  if ( argc != 4 || strlen(argv[3]) != 48 ) return 1;
X  if ( scanbytes(argv[3],tsu,24)) return 1;
X  MD5(argv[1],strlen(argv[1]),keyd);
X  BF_set_key(&ks, 16, keyd);
X  BF_cfb64_encrypt(&tsu[8], tsvd, 16, &ks, tsu, &n, BF_DECRYPT);
X  MD5(argv[2],strlen(argv[2]),subd);
X  return (memcmp(subd, tsvd, 16) == 0 ? 0 : 1);
}
SHAR_EOF
  (set 20 05 03 07 02 50 05 'esubbft.c'; eval "$shar_touch") &&
  chmod 0644 'esubbft.c'
if test $? -ne 0
then ${echo} 'restore of esubbft.c failed'
fi
  if ${md5check}
  then (
       ${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'esubbft.c: MD5 check failed'
       ) << SHAR_EOF
8071f325cabf9957c017026a4484a028  esubbft.c
SHAR_EOF
  else
test `LC_ALL=C wc -c < 'esubbft.c'` -ne 1383 && \
  ${echo} 'restoration warning:  size of esubbft.c is not 1383'
  fi
fi
# ============= esubbft-arthdr ==============
if test -f 'esubbft-arthdr' && test "$first_param" != -c; then
  ${echo} 'x -SKIPPING esubbft-arthdr (file already exists)'
else
${echo} 'x - extracting esubbft-arthdr (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'esubbft-arthdr' &&
#!/bin/sh
X
# SYNOPSIS
#          esubbft-arthdr key sub
X
# DESCRIPTION
#          Returns the result of calling esubbft key sub test, where
#          test is a ^Subject: field found on standard input.  Useful
#          as a procmail test when fed the header of a candidate
#          article.
esubbft $1 $2 $(sed -n 's/^Subject: //Ip')
SHAR_EOF
  (set 20 05 03 19 23 33 41 'esubbft-arthdr'; eval "$shar_touch") &&
  chmod 0755 'esubbft-arthdr'
if test $? -ne 0
then ${echo} 'restore of esubbft-arthdr failed'
fi
  if ${md5check}
  then (
       ${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'esubbft-arthdr: MD5 check failed'
       ) << SHAR_EOF
c489e640aad72f155768c32bf6428cbe  esubbft-arthdr
SHAR_EOF
  else
test `LC_ALL=C wc -c < 'esubbft-arthdr'` -ne 338 && \
  ${echo} 'restoration warning:  size of esubbft-arthdr is not 338'
  fi
fi
if rm -fr ${lock_dir}
then ${echo} 'x - removed lock directory `'${lock_dir}\''.'
else ${echo} 'x - failed to remove lock directory `'${lock_dir}\''.'
  exit 1
fi
exit 0
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8+ <http://mailcrypt.sourceforge.net/>

iD8DBQFIjW4TDkU5rhlDCl4RAgncAJsFJnvceXcw9B46j1hqexA+bYypKACaAjfR
M2ZM0BayFcUJ+v9x73uSpBg=
=Cm0/
-----END PGP SIGNATURE-----
Technical Details
Message-ID: <20080729072352.A45D8815BC@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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!out04b.usenetserver.com!news.usenetserver.com!in02.usenetserver.com!news.usenetserver.com!feeder.news-service.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news.wiretrip.org!news.dizum.com!sewer-output!mail2news

Show Full Headers
Complete Article Headers
Message-ID: <20080729072352.A45D8815BC@fleegle.mixmin.net>
Subject: Blowfish esub nym reply block success report
Date: Tue, 29 Jul 2008 07:23:52 +0000
From: StealthMonger <Use-Author-Supplied-Address-Header@[127.1]>
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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!out04b.usenetserver.com!news.usenetserver.com!in02.usenetserver.com!news.usenetserver.com!feeder.news-service.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news.wiretrip.org!news.dizum.com!sewer-output!mail2news
Author-Supplied-Address: StealthMonger <AT> nym <DOT> mixmin <DOT> net
Newsgroups: alt.privacy.anon-server
Mail-To-News-Contact: abuse@dizum.com
Organization: mail2news@dizum.com
Lines: 282
X-Original-Bytes: 9392