Date: Thu, 3 Mar 2016 16:23:47 +0100 From: Marek Wrzosek <marek.wrzosek@...il.com> To: john-users@...ts.openwall.com Subject: Re: Reverse T9 rule W dniu 02.03.2016 o 22:25, Frank Dittrich pisze: > On 03/02/2016 09:44 PM, magnum wrote: >> Here's where I cowardly gave up: >> >> # Should do 624686 -> magnum (among many alternatives) >> [List.Rules:9T] >> s2[abc] s3[def] s4[ghi] s5[jkl] s6[mno] s7[pqrs] s8[tuv] s9[wxyz] >> s0[ ] Q >> > > I'm afraid a completely generic solution just with --rules isn't possible. > I think you'll need rexgen support and define a new regex alphabet you > can use with --regex. > Alternatively, enhance --external to support generating multiple > candidates per input word, and define a new external mode. > > Frank I've created new alphabet in john.local.conf: [List.Rexgen.Alpha:reverseT9] 0=[\ 0] 1= 2=[abc2] 3=[def3] 4=[ghi4] 5=[jkl5] 6=[mno6] 7=[pqrs7] 8=[tuv8] 9=[wxyz9] (I've added digits at the end, so the outputs of all following commands will be the same.) To use it, I need this: $ echo 624686 |./john --stdin --stdout --regex=alpha:reverset9='\0'|grep magnum Using default input encoding: UTF-8 Press Ctrl-C to abort, or send SIGUSR1 to john process for status magnum 4096p 0:00:00:00 0.00% 34133p/s 624686 or create wordlist with only one line: 624686 and use wordlist mode with regex. The easiest way with using rexgen is something like this: $ ./john --stdout --regex='[mno6][abc2][ghi4][mno6][tuv8][mno6]'|grep magnum Warning: regex mode currently can't be resumed if aborted Press 'q' or Ctrl-C to abort, almost any other key for status magnum 4096p 0:00:00:00 0.00% 25600p/s 624686 It's impossible to use regex with alphabet as standalone mode. Or am I doing something wrong? -- 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.