From 0aaf19eade66097f6f25d850fde996f12bbdef80 Mon Sep 17 00:00:00 2001 From: jsteube Date: Wed, 15 Mar 2023 19:45:56 +0000 Subject: [PATCH] Fix https://github.com/hashcat/hashcat/issues/3641 --- src/hashes.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/hashes.c b/src/hashes.c index fb6fc6c18..9ed4cc680 100644 --- a/src/hashes.c +++ b/src/hashes.c @@ -2264,6 +2264,21 @@ int hashes_init_stage4 (hashcat_ctx_t *hashcat_ctx) } } + // https://github.com/hashcat/hashcat/issues/3641 + + if ((hashconfig->opts_type & OPTS_TYPE_DEEP_COMP_KERNEL) == 0) + { + if (hashconfig->attack_exec == ATTACK_EXEC_OUTSIDE_KERNEL) + { + if (hashes->digests_cnt != hashes->salts_cnt) + { + event_log_error (hashcat_ctx, "This hash-mode plugin cannot crack multiple hashes with the same salt, please select one of the hashes."); + + return -1; + } + } + } + // test iteration count in association attack if (user_options->attack_mode == ATTACK_MODE_ASSOCIATION)