Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAEo4CeNx_jh1xqU5rWnxXRjbiXroVfdzMvD5QR6mWWmL7SbsKA@mail.gmail.com>
Date: Thu, 26 Dec 2013 14:48:59 +0100
From: Albert Veli <albert.veli@...il.com>
To: john-users@...ts.openwall.com
Subject: Re: pgp private key / passphrase (How to?)

If your .gnupg private key is in the file mykey-priv.asc, then run:

 ./gpg2john mykey-priv.asc

and save the output into a new file. Then you can run john on the new file.
If you know parts of the password, then put all parts you know into a
separate dictionary. Then you can create a custom rule. Maybe something
like this:

[List.Rules:MyRule]
AZ"[0-9][0-9][0-9][0-9][x][y][z]"

Append those two line to the end of john.conf (or put them in
john.local.conf), then run

 ./john --wordlist=mylist.txt --rules=MyRule mygpg.txt

Where mylist.txt contains (at least) the word absd and mygpg.txt is the
output of gpg2john. The custom rule will then try all combinations of 4
digits and append xyz at the end.


On Wed, Dec 25, 2013 at 9:53 PM, Demian Smith <demian.smith@....de> wrote:

> Dear list,
> I'd like to try to recover my private passphrase fpr a pgp-key. I know
> most of it but 3 parts of it, which leaves me with abou 217
> possibilities. I suppose this would be "easy" for anybody "in the
> knowing", however, this is my first time I'm using JtR. As far as I
> understand I would have to write some rule for the to-try-passphrase to
> add the specifics at a certain placeā€¦ say, the phrase is
> > absdXXXXxyz
> And I know that XXXX consists of a combination of numbers only, I could
> then tell JtR to try the different combinations (I have a txt file
> containing all possibilities, created with crunch), right?
>
> The problem is
> a) how do I add pgp support to JtR (I have john-1.7.9-jumbo-7 wit OMP
> support running) and b) how would I write the personalized rule for to try?
>
> I hope this is not to much to ask for help and thanks in advance,
> Demian
>

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.