mirror of
https://github.com/hashcat/hashcat.git
synced 2025-03-13 22:16:14 +00:00
the idea of having guaranteed mixed password and salt lengths is not working.
fixed size password (as in DES) will always produce length 8 but only the first would get accepted. the same logic basically also applies if the range is less than 8.
This commit is contained in:
parent
a39f414def
commit
2c47c03e26
@ -341,11 +341,6 @@ sub init_db_word_rand
|
||||
$len_max = ($len_max >= 31) ? 31 : $len_max;
|
||||
}
|
||||
|
||||
my $db_len;
|
||||
|
||||
$db_len->{$len_min} = undef;
|
||||
$db_len->{$len_max} = undef;
|
||||
|
||||
my $db_out;
|
||||
|
||||
my $idx = 0;
|
||||
@ -361,10 +356,6 @@ sub init_db_word_rand
|
||||
|
||||
my $len = random_number ($len_min, $len_max);
|
||||
|
||||
next if exists $db_len->{$len};
|
||||
|
||||
$db_len->{$len} = undef;
|
||||
|
||||
$db_out->[$idx] = $len;
|
||||
|
||||
$idx++;
|
||||
@ -394,11 +385,6 @@ sub init_db_salt_rand
|
||||
$len_max = ($len_max >= 51) ? 51 : $len_max;
|
||||
}
|
||||
|
||||
my $db_len;
|
||||
|
||||
$db_len->{$len_min} = undef;
|
||||
$db_len->{$len_max} = undef;
|
||||
|
||||
my $db_out;
|
||||
|
||||
my $idx = 0;
|
||||
@ -414,10 +400,6 @@ sub init_db_salt_rand
|
||||
|
||||
my $len = random_number ($len_min, $len_max);
|
||||
|
||||
next if exists $db_len->{$len};
|
||||
|
||||
$db_len->{$len} = undef;
|
||||
|
||||
$db_out->[$idx] = $len;
|
||||
|
||||
$idx++;
|
||||
|
Loading…
Reference in New Issue
Block a user