1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-22 08:08:10 +00:00

Merge pull request #3842 from philsmd/3730_verify_fix

verify test fix for -m 3730 = md5($s1.uc(md5($s2.$p)))
This commit is contained in:
Jens Steube 2023-08-28 11:05:24 +02:00 committed by GitHub
commit 5752ad9ab6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,15 +29,16 @@ sub module_verify_hash
{
my $line = shift;
my ($hash, $salt, $word) = split (':', $line);
my ($hash, $salt1, $salt2, $word) = split (':', $line);
return unless defined $hash;
return unless defined $salt;
return unless defined $salt1;
return unless defined $salt2;
return unless defined $word;
my $word_packed = pack_if_HEX_notation ($word);
my $new_hash = module_generate_hash ($word_packed, $salt);
my $new_hash = module_generate_hash ($word_packed, $salt1, $salt2);
return ($new_hash, $word);
}