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

Fix bug in test.pl, did not handle zero length passwords in -m 7700

This commit is contained in:
Jens Steube 2015-12-27 10:37:13 +01:00
parent 0f906dcfeb
commit eb7e096956

View File

@ -929,9 +929,11 @@ sub verify
# $salt$$hash
elsif ($mode == 7700 || $mode == 7800)
{
my @split1 = split (":", $line);
my $index1 = index ($line, ":");
next unless scalar @split1 == 2;
next if $index1 < 1;
my @split1 = split (":", $line);
my @split2 = split ('\$', $split1[0]);
@ -939,7 +941,14 @@ sub verify
$hash_in = $split1[0];
$word = $split1[1];
if (scalar @split1 > 1)
{
$word = $split1[1];
}
else
{
$word = "";
}
next unless (exists ($db->{$hash_in}) and (! defined ($db->{$hash_in})));