Article View: alt.privacy.anon-server
Article #251851Re: Rooster's Method of batch decryption
From: Kulin Remailer
Date: Tue, 08 Nov 2011 21:42
Date: Tue, 08 Nov 2011 21:42
124 lines
5148 bytes
5148 bytes
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 In article <FHOZFQZU40855.7041087963@reece.net.au> Rooster <remailer@reece.net.au> wrote: > I can see in a.a.m. that the appearance of my batch file has three long lines whose text was wrapped to the next line, and i realize that this wrapping might not be noticed by some persons. therefore, i want to point them out in particular so that you will understand that each of these lines should be entered in the batch file as only one line, individually and with a space at the beginning of the part that got wrapped. these are the lines: IF /i %counter%==3 (ECHO You have exceeded 3X. Batch processing will now cease.) & GOTO EOF FOR %%f in (*.asc) do gpg --list-only --status-fd 1 %%f | find /i "enc_to" && del %%f FOR %%G IN (*.asc) DO echo %pword%|gpg --batch --passphrase-fd 0 --decrypt-files %%G > - -------------------- > > rem: The folder where you execute this batch file > rem: should have ONLY this batch file, the > rem: password-file, and the messages for decrypting. > pause > @ECHO. > @ECHO Beginning Rooster's Method for batch decryption: > @ECHO. > RENAME *.txt *.asc > @ECHO off > IF errorlevel 1 GOTO EOF > SET "pword=" > > rem Begin OPTIONAL BLOCK-- > > rem: This block routine removes spaces from erratic filenames > dir /b /a-d *.asc>temp.txt > for /f "tokens=*" %%* in (temp.txt) do call:sub %%* > del temp.txt > goto :jump > > :sub > ren "%*" %1%2%3%4%5%6%7%8%9 > goto :eof > :jump > rem: end routine to remove spaces from filenames > > rem: This block routine allows you to remove all > rem: messages without outer symmetric encryption > SET counter=0 > :optional > SET "decision=" > IF /i %counter%==3 (ECHO You have exceeded 3X. Batch processing will now > cease.) & GOTO EOF > SET /a counter=%counter%+1 > cls > ECHO This is try # %counter%. You will get three tries. > ECHO. > SET /p decision= Do you want to search only files with an outer layer of > symmetric encryption? If you know that your messages have an outer layer of > symmetric encryption, then you should select "yes." If you do select "yes", then > all files having only public key encryption will be deleted first, before > decryption begins. This can save a lot of time. You must type Y or N and hit > enter. ^(Y or ^N)? > ECHO. > IF NOT DEFINED decision GOTO optional > IF /i %decision%==N GOTO variable > IF /i NOT %decision%==Y GOTO optional > FOR %%f in (*.asc) do gpg --list-only --status-fd 1 %%f | find /i "enc_to" && > del %%f > rem: end routine for removing messages without outer symmetric encryption > > rem End OPTIONAL BLOCK-- > > :variable > SET /p pword=<password-file > IF NOT DEFINED pword GOTO endprocess ELSE GOTO decipher > :decipher > FOR %%G IN (*.asc) DO echo %pword%|gpg --batch --passphrase-fd 0 --decrypt-files > %%G > FOR /F "skip=1" %%A IN (password-file) DO @echo %%A>>password-file2 > IF NOT EXIST password-file2 GOTO endprocess > ATTRIB -R password-file > MOVE /y password-file2 password-file > GOTO variable > :endprocess > ERASE /f password-file > ECHO There are no more passwords in the password-file. > SET "pword=" > ECHO Your messages, if any, have been deciphered. > ECHO Removing undeciphered messages... > ERASE /f *.asc > :EOF > ECHO The batch has finished processing. > - -------------------------------------------- -----BEGIN PGP SIGNATURE----- Version: N/A iQGcBAEBAgAGBQJOuXdCAAoJEO3Co03SMUtB+uQL+wVtNno1jwOJgpBQatNJRlTr 0njsTtQ2WyD6vjDL1airbH3E/b5W2JVfOQ4PrAw2Pjm4wHLfglVo3Z+03ymfX7kk vOAYQoRCoX4iqnIYd9RAJTlDtqra+gC2KbRdFbQVHJX/DuyVxuFmBdS4KjYzNmg2 m7vyigjyhibMWllR5V13xUCiTReXu41q97A3H8x5pK8Ro5SSKZeE8uqCISNwnVzu fxggBGfZnDli8is8cObuvIYCO6dAMjPzz8g5aMnvVKEaveHyIZjAPYxSW7UDigAZ oPnWDKZK3R1bCdiUGcSOShQrPKCItjHpd8R7CjO8LyhmAus/VlM5Hk2s+bTpVItJ oSXxl7+p6o98IbuNrtPleu0PgQMeocvyA73fKqfCwJffp2V6LaEwjNDF9JFBJoWe CRiGOUULXr3ykPH/dKUWUh52/t7bPZ7usYYrYCFrOsvK5PuAaVhSVMkmyruZs64x DiBqVuXLFar3Dqhietzuh/IdOYiG+0eHZEqoVcZX3g== =e3at -----END PGP SIGNATURE----- -- rooster@thechickencoop.net
Technical Details
Message-ID:
<EVFGHRD640856.237662037@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.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!novia!amsnews11.chello.com!xlned.com!feeder1.xlned.com!eweka.nl!hq-usenetpeers.eweka.nl!188.40.76.149.MISMATCH!mail2news.mixmin.net!not-for-mailReferences:
<PH9ADIIW40846.5791666667@reece.net.au> <9fbcab964528188aea386a9455bd825f@dizum.com> <FHOZFQZU40855.7041087963@reece.net.au>Show Full Headers
Complete Article Headers
Message-ID: <EVFGHRD640856.237662037@reece.net.au> Subject: Re: Rooster's Method of batch decryption Date: Tue, 08 Nov 2011 21:42:14 +0000 From: Kulin Remailer <remailer@reece.net.au> References: <PH9ADIIW40846.5791666667@reece.net.au> <9fbcab964528188aea386a9455bd825f@dizum.com> <FHOZFQZU40855.7041087963@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.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!novia!amsnews11.chello.com!xlned.com!feeder1.xlned.com!eweka.nl!hq-usenetpeers.eweka.nl!188.40.76.149.MISMATCH!mail2news.mixmin.net!not-for-mail X-Remailer-Contact: abuse@reece.net.au (English Only Please) Newsgroups: alt.privacy.anon-server Lines: 125 Injection-Info: mail2news.mixmin.net; mail-complaints-to=abuse@mixmin.net X-Original-Bytes: 4831