1
mirror of https://github.com/hashcat/hashcat synced 2024-11-24 14:27:14 +01:00

Reset salt length limit in test.pl for mode 4520 to not run into errors in case the user specifies the -O mode

This commit is contained in:
jsteube 2017-09-04 15:57:57 +02:00
parent 0dfe015301
commit 0a0522cf76

View File

@ -3406,7 +3406,7 @@ sub passthrough
}
elsif ($mode == 4520)
{
my $salt_len = get_random_num (1, 64);
my $salt_len = get_random_num (1, 50);
$tmp_hash = gen_hash ($mode, $word_buf, substr ($salt_buf, 0, $salt_len));
}
@ -4066,7 +4066,7 @@ sub single
}
elsif ($mode == 4520)
{
my $salt_len = get_random_num (1, 64);
my $salt_len = get_random_num (1, 50);
for (my $i = 1; $i < 32; $i++)
{