2

I'm trying to use john to test wpa security. I want it to generate 10-character passwords, so I've added this to john.conf:

[Incremental:Test]
File = $JOHN/alnum.chr
MinLen = 10
MaxLen = 10
CharCount = 62

However, when I run john --format=wpapsk --session=mysession --incremental=Test data, it prints:

Note: minimum length forced to 8

and still generates 8-character passwords. What am I missing?

1 Answers1

1

and still generates 8-character passwords. What am I missing?

"incremental" mode is limited to lengths up to 8 by default, at compile time.

How to deal with this ?

Download JTR source code

  1. Now edit the src/params.h file - replace the following lines (around line 200):
define CHARSET_MIN ' '
define CHARSET_MAX 0x7E
define CHARSET_LENGTH 8
with:
define CHARSET_MIN ' '
define CHARSET_MAX  0x7E
define CHARSET_LENGTH 10
  1. Then let's rebuild JtR with this modification:

  2. And generate a new .chr file:

./john --make-charset=digits10.chr

Now you can define a new "incremental" mode:

[Incremental:Digits10] 
File = $JOHN/digits10.chr 
MinLen = 10 
MaxLen = 10 
CharCount = 64

hope this will work for you

Arjun sharma
  • 660
  • 3
  • 20