Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Mon, 18 May 2015 20:42:21 +0200
From: Marek Wrzosek <marek.wrzosek@...il.com>
To: john-users@...ts.openwall.com
Subject: Re: Advise on best approach (truecrypt pw based on pdf
 file)

Hi Demian

There should be space between grep and '^[A-Z]'. The ^[A-Z] regular
expression is for searching lines with a capital as first letter.
I've been thinking about rewriting this awk command to search a capital
letter other than 'I' at the end of string to break the inner loop.
Maybe I'll get rid of grep and change loop type.

Best Regards

W dniu 18.05.2015 o 18:32, Demian Smith pisze:
> Hi Marek,
> 
> I tried Markov over night , but it doesn't look really good - I had
> trained it on a pwd file generated from the pdf (with keeping only first
> letters of each word), but it cretaed mostly candidates like
> titttttttttttaief
> 
> So, I wanted to get back to the awk version and run it on a similar file
> created from the pdfs in the relevant folder, alas, I get
> cat all5 | awk '{for (i = 1; i <= length($1);
> i++){for(j=i+4;j<i+12&&j<=length($1);j++){print substr($1, i,
> j-i+1);}}}' | grep'^[A-Z]' > all6
> 
> grep^[A-Z]: command not found
> 
> I don't know enough about bash programming to sort this one out and
> hence would come back to your advise, if you don't mind ...
> 
> Thanks,
> Demian
> --
> 'It's no measure of mental health to be well adjusted
> to a profoundly sick society.'
> 
> Sinéad O'Connor
> 
>  ★ On 15/05/18 04:57 a.m. Marek Wrzosek wrote ★
>> awk '{for (i = 1; i <= length($1); i++){for
>> (j=i+4;j<i+12&&j<=length($1);j++){print substr($1, i, j-i+1);}}}'|grep
>> '^[A-Z]'

-- 
Marek Wrzosek
marek.wrzosek@...il.com

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.