|
|
Message-Id: <35ED6B35-6F7A-4BA4-8DC6-23E0ADD086C5@gmail.com>
Date: Mon, 10 Aug 2015 10:36:13 -0300
From: Nahuel Grisolia <nahuel.grisolia@...il.com>
To: john-users@...ts.openwall.com
Subject: Re: Custom Incremental Mode
Thank you very much Magnum!
N.-
> On Aug 10, 2015, at 6:43 AM, magnum <john.magnum@...hmail.com> wrote:
>
> On 2015-08-10 05:09, Nahuel Grisolia wrote:
>> Hello there! Hope you're all doing great!
>>
>> I would like to create a custom incremental mode with the following rules:
>>
>> MinLen = 6
>> MaxLen = 6
>> Chars: az09
>
> Using what input? Chances are you should just use "-inc:lowernum -min-len=6 -max-len=6". If you really have reason to create your own one, it's documented in many places.
>
>> Then, I would like to have the output in hex format, for example for "123456" I would like to get "313233343536".
>
> This little perl filter accomplishes that:
>
> perl -ne 'chomp; printf("%s\n", unpack("H*", $_))'
>
>> I will use this output to feed another program's input in order to bruteforce a password. This password is fed within a parameter of this other command:
>>
>> $ command -p <PASS_HERE>
>>
>> So, What do you recommend to accomplish this?
>
> You'd run john with -stdout and put that perl filter as next thing in the pipe dream. Something like
>
> $ ./john -inc:lowernum -min-len=6 -max-len=6 -stdout | perl -ne 'chomp; printf("%s\n", unpack("H*", $_))' | xargs -I PASS command -p PASS
>
> You can even parallelize this with some options to xargs (see its man page).
>
> magnum
>
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.