1
mirror of https://github.com/hashcat/hashcat synced 2024-11-20 23:27:31 +01:00

Merge pull request #2966 from philsmd/27000_tests_fix

tests: fixes -m 27000 verify
This commit is contained in:
Jens Steube 2021-09-07 18:09:37 +02:00 committed by GitHub
commit 120326c117
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -146,21 +146,21 @@ sub module_verify_hash
my $index1 = index ($line, "::");
return if $index1 < 1;
return if $index1 < 0;
my $index2 = index ($line, ":", $index1 + 2);
return if $index2 < 1;
return if $index2 < 0;
$index2 = index ($line, ":", $index2 + 1);
return if $index2 < 1;
return if $index2 < 0;
my $salt = substr ($line, 0, $index2 - 32);
$index2 = index ($line, ":", $index2 + 1);
return if $index2 < 1;
return if $index2 < 0;
$salt .= substr ($line, $index2 + 1, 16);