1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-14 03:39:09 +00:00

Merge pull request #3843 from philsmd/30700_verify_fix

verify test fix for -m 30700 = Anope IRC Services
This commit is contained in:
Jens Steube 2023-08-29 13:45:46 +02:00 committed by GitHub
commit c2de4961a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,12 +52,15 @@ sub module_verify_hash
{
my $line = shift;
my ($hash, $salt, $word) = split (':', $line);
my ($signature, $digest, $salt, $word) = split (':', $line);
return unless defined $hash;
return unless defined $signature;
return unless defined $digest;
return unless defined $salt;
return unless defined $word;
return unless ($signature eq "sha256");
my $word_packed = pack_if_HEX_notation ($word);
my $new_hash = module_generate_hash ($word_packed, $salt);