mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-22 08:08:10 +00:00
Merge pull request #3843 from philsmd/30700_verify_fix
verify test fix for -m 30700 = Anope IRC Services
This commit is contained in:
commit
c2de4961a3
@ -52,12 +52,15 @@ sub module_verify_hash
|
|||||||
{
|
{
|
||||||
my $line = shift;
|
my $line = shift;
|
||||||
|
|
||||||
my ($hash, $salt, $word) = split (':', $line);
|
my ($signature, $digest, $salt, $word) = split (':', $line);
|
||||||
|
|
||||||
return unless defined $hash;
|
return unless defined $signature;
|
||||||
|
return unless defined $digest;
|
||||||
return unless defined $salt;
|
return unless defined $salt;
|
||||||
return unless defined $word;
|
return unless defined $word;
|
||||||
|
|
||||||
|
return unless ($signature eq "sha256");
|
||||||
|
|
||||||
my $word_packed = pack_if_HEX_notation ($word);
|
my $word_packed = pack_if_HEX_notation ($word);
|
||||||
|
|
||||||
my $new_hash = module_generate_hash ($word_packed, $salt);
|
my $new_hash = module_generate_hash ($word_packed, $salt);
|
||||||
|
Loading…
Reference in New Issue
Block a user