[GH-ISSUE #2882] PRINCE mode hybrid mask problems #1828

Closed
opened 2026-10-15 04:26:10 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @magnumripper on GitHub (Nov 12, 2017).
Original GitHub issue: https://github.com/openwall/john/issues/2882

We have problems with eg. --prince -mask=?w?d?d. Not only is there some problem with max length when using -min-len (which can be worked around by using -max-len too), there is also an ETA bug. ?w?d will finish at "10%" and ?w?d?d will finish at "1%".

To see the max-length problem, IIRC use a format like raw-md5 (not NT) and some -min-len

$ ../run/john ../test/rawmd5_tst.in -form:raw-md5 -prince -mask:?w?a?a -min-len=8
Warning: invalid UTF-8 seen reading ../test/rawmd5_tst.in
Using default input encoding: UTF-8
Loaded 1500 password hashes with no different salts (Raw-MD5 [MD5 128/128 AVX 4x3])
Warning: no OpenMP support for this hash type, consider --fork=8
Error: net max length for PRINCE can't be greater than 32

Adding eg. -max-len=32 to the above works (but will expose the ETA bug instead).

Originally created by @magnumripper on GitHub (Nov 12, 2017). Original GitHub issue: https://github.com/openwall/john/issues/2882 We have problems with eg. `--prince -mask=?w?d?d`. Not only is there some problem with max length when using -min-len (which can be worked around by using -max-len too), there is also an ETA bug. `?w?d` will finish at "10%" and `?w?d?d` will finish at "1%". To see the max-length problem, IIRC use a format like raw-md5 (not NT) and some `-min-len` ``` $ ../run/john ../test/rawmd5_tst.in -form:raw-md5 -prince -mask:?w?a?a -min-len=8 Warning: invalid UTF-8 seen reading ../test/rawmd5_tst.in Using default input encoding: UTF-8 Loaded 1500 password hashes with no different salts (Raw-MD5 [MD5 128/128 AVX 4x3]) Warning: no OpenMP support for this hash type, consider --fork=8 Error: net max length for PRINCE can't be greater than 32 ``` Adding eg. `-max-len=32` to the above works (but will expose the ETA bug instead).
bsakaguchi 2026-10-15 04:26:10 +07:00
  • closed this issue
  • added the
    bug
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
openwall/john#1828
No description provided.