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

tests: fixes -m 26900 verify

This commit is contained in:
philsmd 2021-09-06 20:08:48 +02:00
parent 8c14fd85ea
commit d1509d9272

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;
}