mirror of
https://github.com/hashcat/hashcat.git
synced 2025-01-16 02:31:02 +00:00
Make mask support modular
This commit is contained in:
parent
db556d31d5
commit
4d35b278e8
12
src/mpsp.c
12
src/mpsp.c
@ -856,13 +856,15 @@ static void mask_append (mask_ctx_t *mask_ctx, const user_options_t *user_option
|
|||||||
|
|
||||||
int mask_ctx_init (mask_ctx_t *mask_ctx, const user_options_t *user_options, const user_options_extra_t *user_options_extra, const folder_config_t *folder_config, const restore_ctx_t *restore_ctx, const hashconfig_t *hashconfig)
|
int mask_ctx_init (mask_ctx_t *mask_ctx, const user_options_t *user_options, const user_options_extra_t *user_options_extra, const folder_config_t *folder_config, const restore_ctx_t *restore_ctx, const hashconfig_t *hashconfig)
|
||||||
{
|
{
|
||||||
memset (mask_ctx, 0, sizeof (mask_ctx_t));
|
|
||||||
|
|
||||||
mask_ctx->enabled = false;
|
mask_ctx->enabled = false;
|
||||||
|
|
||||||
if ((user_options->attack_mode != ATTACK_MODE_BF)
|
if (user_options->left == true) return 0;
|
||||||
&& (user_options->attack_mode != ATTACK_MODE_HYBRID1)
|
if (user_options->show == true) return 0;
|
||||||
&& (user_options->attack_mode != ATTACK_MODE_HYBRID2)) return 0;
|
if (user_options->usage == true) return 0;
|
||||||
|
if (user_options->version == true) return 0;
|
||||||
|
|
||||||
|
if (user_options->attack_mode == ATTACK_MODE_STRAIGHT) return 0;
|
||||||
|
if (user_options->attack_mode == ATTACK_MODE_COMBI) return 0;
|
||||||
|
|
||||||
mask_ctx->enabled = true;
|
mask_ctx->enabled = true;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user