1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-12-23 07:08:19 +00:00

Merge pull request #2967 from philsmd/26900_tests_fix

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

View File

@ -24,6 +24,8 @@ sub module_generate_hash
my $pad_len = 34 - length ($engineID);
my $engineID_orig = $engineID;
$engineID = join '', $engineID, "0" x $pad_len;
# make salt even if needed
@ -47,7 +49,7 @@ sub module_generate_hash
$digest = substr ($digest, 0, 64);
my $hash = "\$SNMPv3\$5\$" . $pkt_num . "\$" . $salt . "\$" . $engineID . "\$" . $digest;
my $hash = "\$SNMPv3\$5\$" . $pkt_num . "\$" . $salt . "\$" . $engineID_orig . "\$" . $digest;
return $hash;
}