1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-12-22 22:58:30 +00:00

Add minimum password length for -m 20510

This commit is contained in:
Jens Steube 2019-05-18 16:29:58 +02:00
parent 686d71397a
commit c9fba782ed
2 changed files with 9 additions and 2 deletions

View File

@ -129,6 +129,13 @@ typedef struct pkzip_extra
} pkzip_extra_t;
u32 module_pw_min (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra)
{
const u32 pw_min = 6;
return pw_min;
}
u64 module_tmp_size (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra)
{
const u64 tmp_size = (const u64) sizeof (pkzip_extra_t);
@ -264,7 +271,7 @@ void module_init (module_ctx_t *module_ctx)
module_ctx->module_potfile_keep_all_hashes = MODULE_DEFAULT;
module_ctx->module_pwdump_column = MODULE_DEFAULT;
module_ctx->module_pw_max = MODULE_DEFAULT;
module_ctx->module_pw_min = MODULE_DEFAULT;
module_ctx->module_pw_min = module_pw_min;
module_ctx->module_salt_max = MODULE_DEFAULT;
module_ctx->module_salt_min = MODULE_DEFAULT;
module_ctx->module_salt_type = module_salt_type;

View File

@ -8,7 +8,7 @@
use strict;
use warnings;
sub module_constraints { [[0, 250], [-1, -1], [-1, -1], [-1, -1], [-1, -1]] }
sub module_constraints { [[6, 250], [-1, -1], [-1, -1], [-1, -1], [-1, -1]] }
my @crc32tab =
(