Skip to content

Prince mode silently skips passwords if password length over current --max-length #4779

Closed
@klensy

Description

@klensy

Checklist

  • 🥇 I've read and understood these instrucions(<---- btw, here a typo);
    • This is not a support forum, it's a bug tracker. For questions and support, review postings on the john-users mailing list.
  • 👍 I've tested using latest bleeding version from this repository.
    • Be clear about your environment and what you are doing. Share a sample hash or file that can be used to reproduce.
  • 😕 I'm confused and I need guidance.
$ ./john --list=build-info
Version: 1.9.0-jumbo-1+bleeding-2e6eba4 2021-07-07 17:16:06 +0200
Build: cygwin 64-bit x86_64 AVX2 AC OMP
SIMD: AVX2, interleaving: MD4:3 MD5:3 SHA1:1 SHA256:1 SHA512:1
CPU tests: AVX2
CPU fallback binary: john-xop
OMP fallback binary: john-avx2-non-omp
$JOHN is /run/
Format interface version: 14
Max. number of reported tunable costs: 4
Rec file version: REC4
Charset file version: CHR3
CHARSET_MIN: 1 (0x01)
CHARSET_MAX: 255 (0xff)
CHARSET_LENGTH: 24
SALT_HASH_SIZE: 1048576
SINGLE_IDX_MAX: 2147483648
SINGLE_BUF_MAX: 4294967295
Effective limit: Number of salts vs. SingleMaxBufferSize
Max. Markov mode level: 400
Max. Markov mode password length: 30
gcc version: 10.2.0
OpenCL headers version: 2.2
Crypto library: OpenSSL
OpenSSL library version: 01010106f
OpenSSL 1.1.1f  31 Mar 2020
GMP library version: 6.2.1
File locking: fcntl()
fseek(): fseek
ftell(): ftell
fopen(): fopen
memmem(): System's
times(2) sysconf(_SC_CLK_TCK) is 1000
Using times(2) for timers, resolution 1 ms
HR timer: QueryPerformanceCounter(), resolution 256 ns
Total physical host memory: 16324 MiB
Available physical host memory: 10033 MiB
Terminal locale string: ru_RU.UTF-8
Parsed terminal locale: UTF-8

command:

$ ./john --format=NT hashlist.txt  --progress-every=5  --no-log --prince=wordlist.txt --prince-elem-cnt-max=8  --prince-elem-cnt-min=1

wordlist:

aaaaaa
bb
cc
dddddddd

I've expecting that if combined password length (given current wordlist and prince-elem-cnt-max) can be over current --max-length, john should warn about that, instead of skipping that passwords.

It can be not specific to prince mode, but i didn't checked that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions