I am trying out john the ripper to guess the password of a test.pdf
file. I know the password is 8 characters long and I know it uses only letters and numbers as described by this regex [a-zA-Z0-9]{8}
.
But I am getting the error: No charset defined for mode: CustomCharset
.
Here's exactly what I did:
mkdir john;
cd john;
git remote add origin https://github.com/openwall/john.git;
git checkout bleeding-jumbo;
git pull origin bleeding-jumbo;
cd src;
./configure --without-openssl && make
I added this to the bottom of the ~/john/run/john.conf
file:
[Incremental:CustomCharset]
MinLen = 8
MaxLen = 8
CharSet = ?l?u?d
I grab the password hash liek this:
python3 ~/john/run/pdf2john.py ~/test.pdf > ~/test.hash
Then run this command
~/john/run/john --config=~/john/run/john.conf --incremental=CustomCharset --format=pdf ~/test.hash
But I get the error No charset defined for mode: CustomCharset
.
What did I do wrong?