mirror of
https://github.com/hashcat/hashcat.git
synced 2025-02-02 10:51:16 +00:00
masks: skipping too large/small masks fixed
This commit is contained in:
parent
d7f8f780ca
commit
fa679ce496
@ -25,6 +25,7 @@
|
|||||||
- Fixed a hash parsing problem for 7-Zip hashes: allow a longer crc32 data length field within the hash format
|
- Fixed a hash parsing problem for 7-Zip hashes: allow a longer crc32 data length field within the hash format
|
||||||
- Fixed the output of --show if $HEX[] passwords are present within the potfile
|
- Fixed the output of --show if $HEX[] passwords are present within the potfile
|
||||||
- Fixed a restore issue leading to "Restore value is greater than keyspace" in case mask-files or wordlist-folders were used
|
- Fixed a restore issue leading to "Restore value is greater than keyspace" in case mask-files or wordlist-folders were used
|
||||||
|
- Fixed a mask-length check issue: Return -1 in case the mask-length is not within the password-length range
|
||||||
|
|
||||||
##
|
##
|
||||||
## Improvements
|
## Improvements
|
||||||
|
@ -1284,18 +1284,20 @@ int mask_ctx_update_loop (hashcat_ctx_t *hashcat_ctx)
|
|||||||
if (mask_ctx->css_cnt < mask_min)
|
if (mask_ctx->css_cnt < mask_min)
|
||||||
{
|
{
|
||||||
event_log_warning (hashcat_ctx, "Skipping mask '%s' because it is smaller than the minimum password length.", mask_ctx->mask);
|
event_log_warning (hashcat_ctx, "Skipping mask '%s' because it is smaller than the minimum password length.", mask_ctx->mask);
|
||||||
|
event_log_warning (hashcat_ctx, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mask_ctx->css_cnt > mask_max)
|
if (mask_ctx->css_cnt > mask_max)
|
||||||
{
|
{
|
||||||
event_log_warning (hashcat_ctx, "Skipping mask '%s' because it is larger than the maximum password length.", mask_ctx->mask);
|
event_log_warning (hashcat_ctx, "Skipping mask '%s' because it is larger than the maximum password length.", mask_ctx->mask);
|
||||||
|
event_log_warning (hashcat_ctx, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
// skip to next mask
|
// skip to next mask
|
||||||
|
|
||||||
logfile_sub_msg ("STOP");
|
logfile_sub_msg ("STOP");
|
||||||
|
|
||||||
return 0;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hashconfig->opts_type & OPTS_TYPE_PT_UTF16LE)
|
if (hashconfig->opts_type & OPTS_TYPE_PT_UTF16LE)
|
||||||
|
Loading…
Reference in New Issue
Block a user