mirror of
https://github.com/hashcat/hashcat.git
synced 2025-01-10 15:51:10 +00:00
tests: fixes -m 27000 verify
This commit is contained in:
parent
8c14fd85ea
commit
21154dbad2
@ -146,21 +146,21 @@ sub module_verify_hash
|
|||||||
|
|
||||||
my $index1 = index ($line, "::");
|
my $index1 = index ($line, "::");
|
||||||
|
|
||||||
return if $index1 < 1;
|
return if $index1 < 0;
|
||||||
|
|
||||||
my $index2 = index ($line, ":", $index1 + 2);
|
my $index2 = index ($line, ":", $index1 + 2);
|
||||||
|
|
||||||
return if $index2 < 1;
|
return if $index2 < 0;
|
||||||
|
|
||||||
$index2 = index ($line, ":", $index2 + 1);
|
$index2 = index ($line, ":", $index2 + 1);
|
||||||
|
|
||||||
return if $index2 < 1;
|
return if $index2 < 0;
|
||||||
|
|
||||||
my $salt = substr ($line, 0, $index2 - 32);
|
my $salt = substr ($line, 0, $index2 - 32);
|
||||||
|
|
||||||
$index2 = index ($line, ":", $index2 + 1);
|
$index2 = index ($line, ":", $index2 + 1);
|
||||||
|
|
||||||
return if $index2 < 1;
|
return if $index2 < 0;
|
||||||
|
|
||||||
$salt .= substr ($line, $index2 + 1, 16);
|
$salt .= substr ($line, $index2 + 1, 16);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user