mirror of
https://github.com/hashcat/hashcat.git
synced 2025-05-19 07:18:47 +00: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:
parent
0dfe015301
commit
0a0522cf76
@ -3406,7 +3406,7 @@ sub passthrough
|
|||||||
}
|
}
|
||||||
elsif ($mode == 4520)
|
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));
|
$tmp_hash = gen_hash ($mode, $word_buf, substr ($salt_buf, 0, $salt_len));
|
||||||
}
|
}
|
||||||
@ -4066,7 +4066,7 @@ sub single
|
|||||||
}
|
}
|
||||||
elsif ($mode == 4520)
|
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++)
|
for (my $i = 1; $i < 32; $i++)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user