1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-02-02 02:41:35 +00:00

Fix constraints in -m 30 and -m 40 and return array in -m 40

This commit is contained in:
jsteube 2019-01-03 12:51:45 +01:00
parent 9ee247c6f8
commit 0baf8fc2f9
2 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@ use warnings;
use Digest::MD5 qw (md5_hex); use Digest::MD5 qw (md5_hex);
use Encode; use Encode;
sub module_constraints { [[0, 127], [0, 255], [0, 27], [0, 54], [0, 27]] } sub module_constraints { [[0, 255], [0, 255], [0, 27], [0, 55], [0, 27]] }
sub module_generate_hash sub module_generate_hash
{ {

View File

@ -11,7 +11,7 @@ use warnings;
use Digest::MD5 qw (md5_hex); use Digest::MD5 qw (md5_hex);
use Encode; use Encode;
sub module_constraints { [[0, 127], [0, 127], [0, 27], [0, 55], [0, 27]] } sub module_constraints { [[0, 255], [0, 255], [0, 27], [0, 55], [0, 27]] }
sub module_generate_hash sub module_generate_hash
{ {
@ -39,7 +39,7 @@ sub module_verify_hash
my $new_hash = module_generate_hash ($word, $salt); my $new_hash = module_generate_hash ($word, $salt);
return $new_hash; return ($new_hash, $word);
} }
1; 1;