|
Message-ID: <a7bc6ba137c2b8573d6ee40a9bf9cbc1@smtp.hushmail.com> Date: Mon, 10 Aug 2015 11:43:41 +0200 From: magnum <john.magnum@...hmail.com> To: john-users@...ts.openwall.com Subject: Re: Custom Incremental Mode 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.