mirror of
https://github.com/hashcat/hashcat
synced 2024-12-23 14:13:43 +01:00
tests: fix hash generation of -m 8300 = DNSSEC
The salt needs to be passed AS-IS (in hexadecimal) not converted to binary for the perl module Net::DNS::RR::NSEC3::name2hash. Thank you very much
This commit is contained in:
parent
7c6970dbdd
commit
407d331c9d
@ -45,11 +45,9 @@ sub module_generate_hash
|
||||
|
||||
my $hashalg = Net::DNS::SEC->digtype ("SHA1");
|
||||
|
||||
my $salt_bin = pack ("H*", $salt_hex);
|
||||
|
||||
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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user