John The Ripper

References

Password cracking tool

Unshadow

Unshadow (combine passwd and shadow files) linux passwords:

1
$ unshadow passwd1 shadow1 > unshadow.txt

Cracking

Crack all hashes:

1
$ john unshadow.txt

Crack only one account:

1
2
$ john --users=toto unshadow.txt
$ john --users=1055 unshadow.txt

Print cracked passwords:

1
$ john --show unshadow.txt

Custom mutations rules

Generate a dict based on a rule and then use it to crack

1
2
$ john --wordlist=/usr/share/wordlists/password/rockyou.txt --stdout --rules:norajCommon02 > dict.txt
$ john hash.txt --format=raw-md5 --wordlist=./dict.txt

Use a mutation rule directly

1
$ john hash.txt --format=raw-md5 --wordlist=/usr/share/wordlists/password/rockyou.txt --rules=norajCommon02

References:

Benchmark

1
$ john --test

Maximum password length