mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-17 13:31:58 +00:00
Merge pull request #1996 from philsmd/patch-5
tests: fix hash generation of -m 8300 = DNSSEC
This commit is contained in:
commit
e79f1a29d4
@ -45,11 +45,9 @@ sub module_generate_hash
|
|||||||
|
|
||||||
my $hashalg = Net::DNS::SEC->digtype ("SHA1");
|
my $hashalg = Net::DNS::SEC->digtype ("SHA1");
|
||||||
|
|
||||||
my $salt_bin = pack ("H*", $salt_hex);
|
|
||||||
|
|
||||||
my $name = lc ($word . $domain);
|
my $name = lc ($word . $domain);
|
||||||
|
|
||||||
my $hash_buf = Net::DNS::RR::NSEC3::name2hash ($hashalg, $name, $iter, $salt_bin);
|
my $hash_buf = Net::DNS::RR::NSEC3::name2hash ($hashalg, $name, $iter, $salt_hex);
|
||||||
|
|
||||||
my $hash = sprintf ("%s:%s:%s:%d", $hash_buf, $domain, $salt_hex, $iter);
|
my $hash = sprintf ("%s:%s:%s:%d", $hash_buf, $domain, $salt_hex, $iter);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user