1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-12-26 16:38:35 +00: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;
}