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:
parent
8c14fd85ea
commit
d1509d9272
@ -24,6 +24,8 @@ sub module_generate_hash
|
|||||||
|
|
||||||
my $pad_len = 34 - length ($engineID);
|
my $pad_len = 34 - length ($engineID);
|
||||||
|
|
||||||
|
my $engineID_orig = $engineID;
|
||||||
|
|
||||||
$engineID = join '', $engineID, "0" x $pad_len;
|
$engineID = join '', $engineID, "0" x $pad_len;
|
||||||
|
|
||||||
# make salt even if needed
|
# make salt even if needed
|
||||||
@ -47,7 +49,7 @@ sub module_generate_hash
|
|||||||
|
|
||||||
$digest = substr ($digest, 0, 64);
|
$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;
|
return $hash;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user