Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Sun, 17 May 2015 18:18:21 +0100
From: Demian Smith <demian.smith@....de>
To: john-users@...ts.openwall.com
Subject: Re: Advise on best approach (truecrypt pw based on pdf
 file)

 This is part why I love open source and free software communities,
everybody is so helpful and nice. I am glad to have people like ye and I
am happy whenever I can help other people myself (even though it's not
with JtR though).

No, Marek - if you don't mind, while I understand what awk is, how would
I actually implement the rule you have given me? Would it be |-ed to
John? Or would I pre-process the wordfile? (Totally lost here, sorry...)

Demian

 ★ On 15/05/17 05:25 p.m. Marek Wrzosek wrote ★
'It's no measure of mental health to be well adjusted
to a profoundly sick society.'

Sinéad O'Connor
'It's no measure of mental health to be well adjusted
to a profoundly sick society.'

Sinéad O'Connor
> W dniu 17.05.2015 o 17:11, magnum pisze:
>> On 2015-05-17 12:18, Demian Smith wrote:
>>> So, this is my last question and with it I wish to apply for the "Most
>>> stupid question - 2015" award - is it possible, to create a "moving
>>> interval" rule?
>>
>> Not in the way you describe below, no. Mainly because I believe we can't
>> handle more than 125 characters of input in one line.
>>
>>> I am thinking to take my wordlist rule, remove all the line breaks so
>>> that I have a really long stream of chars and then just move the
>>> Interval.
>>>
>>> Say, my stream would be
>>> SiadqrfewmnsohabiwtoarotwwsbaotmcaaTpthbwuitrubwltetpt
>>>
>>> I'd like to have rule (or preoprocessed rule) that walks throught the
>>> file like this
>>> [Siad]qrfewmnsohabiwtoarotwwsbaotmcaaTpthbwuitrubwltetpt
>>> [Siadq]rfewmnsohabiwtoarotwwsbaotmcaaTpthbwuitrubwltetpt
>>> [Siadqr]fewmnsohabiwtoarotwwsbaotmcaaTpthbwuitrubwltetpt
>>> (...)
>>> [Siadqrfewmnsohabiwto]arotwwsbaotmcaaTpthbwuitrubwltetpt
>>> S[iadq]rfewmnsohabiwtoarotwwsbaotmcaaTpthbwuitrubwltetpt
>>> S[iadqr]fewmnsohabiwtoarotwwsbaotmcaaTpthbwuitrubwltetpt
>>> S[iadqrf]ewmnsohabiwtoarotwwsbaotmcaaTpthbwuitrubwltetpt
>>> (...)
>>> Si[adqr]fewmnsohabiwtoarotwwsbaotmcaaTpthbwuitrubwltetpt
>>
>> I think this is best done with a perl script or something. Probably very
>> trivial but I'll pass for now. Anyone?
>>
>> magnum
>>
> Hi
> 
> This simple awk one-liner can do the trick:
> awk '{for (i = 1; i <= length($1); i++){for
> (j=i;j<=length($1);j++){print substr($1, i, j-i+1);}}}'
> 
> Feel free to adjust i or j accordingly (e.g. if you don't want passwords
> shorter than 4 letters just change j=i to j=i+3).
> 
> Best Regards
> 

'It's no measure of mental health to be well adjusted
to a profoundly sick society.'

Sinéad O'Connor

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.