mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-22 16:18:09 +00:00
check if selected hash-mode cannot crack multiple hashes with the same salt only if salt_type is SALT_TYPE_GENERIC or SALT_TYPE_EMBEDDED
This commit is contained in:
parent
5780430176
commit
3f7b48218f
13
src/hashes.c
13
src/hashes.c
@ -2266,15 +2266,18 @@ 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->salt_type == SALT_TYPE_GENERIC || hashconfig->salt_type == SALT_TYPE_EMBEDDED)
|
||||
{
|
||||
if (hashconfig->attack_exec == ATTACK_EXEC_OUTSIDE_KERNEL)
|
||||
if ((hashconfig->opts_type & OPTS_TYPE_DEEP_COMP_KERNEL) == 0)
|
||||
{
|
||||
if (hashes->digests_cnt != hashes->salts_cnt)
|
||||
if (hashconfig->attack_exec == ATTACK_EXEC_OUTSIDE_KERNEL)
|
||||
{
|
||||
event_log_error (hashcat_ctx, "This hash-mode plugin cannot crack multiple hashes with the same salt, please select one of the hashes.");
|
||||
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;
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user