From a8f339234429c7b993b164fd9c5db9dc526518c3 Mon Sep 17 00:00:00 2001 From: jsteube Date: Tue, 22 Aug 2017 10:08:28 +0200 Subject: [PATCH] Startup: Show some attack-specific optimizer constraints on start, eg: minimum and maximum support password- and salt-length --- docs/changes.txt | 1 + src/main.c | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/docs/changes.txt b/docs/changes.txt index a5a6f9543..94481a3d6 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -47,6 +47,7 @@ - OpenCL Kernels: Updated default scrypt TMTO to be ideal for latest NV and AMD top models - OpenCL Kernels: Vectorized tons of slow kernels to improve CPU cracking speed - OpenCL Runtime: Updated AMD ROCm driver version check, warn if version < 1.1 +- Startup: Show some attack-specific optimizer constraints on start, eg: minimum and maximum support password- and salt-length - WPA cracking: Improved nonce-error-corrections mode to use a both positive and negative corrections ## diff --git a/src/main.c b/src/main.c index 5f3e91a16..480ce9926 100644 --- a/src/main.c +++ b/src/main.c @@ -468,6 +468,24 @@ static void main_outerloop_mainscreen (MAYBE_UNUSED hashcat_ctx_t *hashcat_ctx, event_log_info (hashcat_ctx, NULL); + /** + * Optimizer constraints + */ + + event_log_info (hashcat_ctx, "Password length minimum: %u", hashconfig->pw_min); + event_log_info (hashcat_ctx, "Password length maximum: %u", hashconfig->pw_max); + + if (hashconfig->is_salted) + { + if (hashconfig->opti_type & OPTI_TYPE_RAW_HASH) + { + event_log_info (hashcat_ctx, "Salt length minimum: %u", hashconfig->salt_min); + event_log_info (hashcat_ctx, "Salt length maximum: %u", hashconfig->salt_max); + } + } + + event_log_info (hashcat_ctx, NULL); + /** * Watchdog and Temperature balance */