1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-12-22 22:58:30 +00:00

Fix salt length for mode 16200 in test.pl

This commit is contained in:
jsteube 2017-12-12 16:44:04 +01:00
parent 94c668ce8a
commit dc58253703

View File

@ -3835,7 +3835,7 @@ sub passthrough
}
elsif ($mode == 16200)
{
$tmp_hash = gen_hash ($mode, $word_buf, substr ($salt_buf, 0, 16));
$tmp_hash = gen_hash ($mode, $word_buf, substr ($salt_buf, 0, 32));
}
else
{
@ -4898,11 +4898,11 @@ sub single
{
if ($len != 0)
{
rnd ($mode, $len, 16);
rnd ($mode, $len, 32);
}
else
{
rnd ($mode, $i, 16);
rnd ($mode, $i, 32);
}
}
}