John the Ripper --rules option

user2893731 picture user2893731 · Oct 18, 2013 · Viewed 8.8k times · Source

I am trying to use John the Ripper with custom rules. I first added few extra rules in /etc/john/john.conf. For example -

[List.Rules:CustomRule]
cA0"[0-9][0-9]"
A0"[0-9][0-9]"

Next I tried to generate passwords using those rules but getting extra parameter option

$ john --wordlist:short-dict.txt --rules:CustomRule --stdout
Extra parameter for option: "--rules:CustomRule"

I am using john 1.7.8 in Ubuntu 12.04.3 LTS installed using apt-get. Any idea? Thanks in advance for the help.

Answer

MrInCrysis picture MrInCrysis · Dec 11, 2016

I had the same problem with the simple version of JTR (John the Ripper 1.9.0) but it works in "jumbo" edition

I could run something

./john -w:mydict --rules=myRules mypasswd 

So just go here http://www.openwall.com/john/ and download the current version of John the Ripper 1.9.0-jumbo-1 (sources, tar.xz, 23 MB)

An extra tip: I also had a problem compiling it so try to run

./configure

separately to

make