mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-26 01:50:10 +00:00
Ensure that len_min cannot be larger than len_max, which can happend if len_max was forced to reduced in some special conditions
This commit is contained in:
parent
cec4aeac10
commit
2162e411e9
@ -338,6 +338,8 @@ sub init_db_word_rand
|
||||
|
||||
$len_max = ($len_max >= 31) ? 31 : $len_max;
|
||||
}
|
||||
|
||||
$len_min = ($len_min < $len_max) ? $len_min : $len_max;
|
||||
}
|
||||
|
||||
my @pool;
|
||||
@ -388,6 +390,8 @@ sub init_db_salt_rand
|
||||
# salt_max = SALT_MAX_OLD;
|
||||
|
||||
$len_max = ($len_max >= 51) ? 51 : $len_max;
|
||||
|
||||
$len_min = ($len_min < $len_max) ? $len_min : $len_max;
|
||||
}
|
||||
|
||||
my @pool;
|
||||
|
Loading…
Reference in New Issue
Block a user