1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-25 09:28:20 +00:00

Made all module_constraints [32,32].

This commit is contained in:
Michael Kruger 2021-08-02 14:09:19 +02:00
parent 30fe29b8a8
commit 2814f7f910
2 changed files with 4 additions and 4 deletions

View File

@ -91,7 +91,7 @@ sub get_random_netntlmv1_salt
return $salt_buf;
}
sub module_constraints { [[32, 32], [-1, -1], [0, 27], [-1, -1], [-1, -1]] } # room for improvement in pure kernel mode
sub module_constraints { [[32, 32], [-1, -1], [32, 32], [-1, -1], [-1, -1]] } # room for improvement in pure kernel mode
sub module_generate_hash
{
@ -166,9 +166,9 @@ sub module_verify_hash
my $word = substr ($line, $index2 + 1 + 16 + 1);
my $word_packed = pack ("H*", $word);
# my $word_packed = pack ("H*", $word);
my $new_hash = module_generate_hash ($word_packed, undef, $salt);
my $new_hash = module_generate_hash ($word, undef, $salt);
return ($new_hash, $word);
}

View File

@ -12,7 +12,7 @@ use Digest::HMAC qw (hmac hmac_hex);
use Digest::MD5 qw (md5);
use Encode qw (encode);
sub module_constraints { [[32, 32], [32, 32], [32, 32], [0, 27], [-1, -1]] }
sub module_constraints { [[32, 32], [32, 32], [32, 32], [32, 32], [-1, -1]] }
sub module_generate_hash
{