Made all module_constraints [32,32].

pull/2607/head
Michael Kruger 3 years ago
parent 30fe29b8a8
commit 2814f7f910

@ -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);
}

@ -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
{

Loading…
Cancel
Save