1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-22 08:08:10 +00:00

Prepare commandline parameter for upcoming partial support for $dynamic_X$

This commit is contained in:
jsteube 2023-11-01 16:12:44 +00:00
parent b1b349e8c9
commit b66527f0d2
2 changed files with 4 additions and 0 deletions

View File

@ -2334,6 +2334,7 @@ typedef struct user_options
#endif #endif
bool force; bool force;
bool deprecated_check; bool deprecated_check;
bool dynamic_x;
bool hwmon; bool hwmon;
bool hash_info; bool hash_info;
bool hex_charset; bool hex_charset;

View File

@ -206,6 +206,7 @@ int user_options_init (hashcat_ctx_t *hashcat_ctx)
user_options->debug_file = NULL; user_options->debug_file = NULL;
user_options->debug_mode = DEBUG_MODE; user_options->debug_mode = DEBUG_MODE;
user_options->deprecated_check = DEPRECATED_CHECK; user_options->deprecated_check = DEPRECATED_CHECK;
user_options->dynamic_x = DYNAMIC_X;
user_options->encoding_from = ENCODING_FROM; user_options->encoding_from = ENCODING_FROM;
user_options->encoding_to = ENCODING_TO; user_options->encoding_to = ENCODING_TO;
user_options->force = FORCE; user_options->force = FORCE;
@ -402,6 +403,7 @@ int user_options_getopt (hashcat_ctx_t *hashcat_ctx, int argc, char **argv)
case IDX_LEFT: user_options->left = true; break; case IDX_LEFT: user_options->left = true; break;
case IDX_ADVICE_DISABLE: user_options->advice = false; break; case IDX_ADVICE_DISABLE: user_options->advice = false; break;
case IDX_USERNAME: user_options->username = true; break; case IDX_USERNAME: user_options->username = true; break;
case IDX_DYNAMIC_X: user_options->dynamic_x = true; break;
case IDX_REMOVE: user_options->remove = true; break; case IDX_REMOVE: user_options->remove = true; break;
case IDX_REMOVE_TIMER: user_options->remove_timer = hc_strtoul (optarg, NULL, 10); case IDX_REMOVE_TIMER: user_options->remove_timer = hc_strtoul (optarg, NULL, 10);
user_options->remove_timer_chgd = true; break; user_options->remove_timer_chgd = true; break;
@ -3229,6 +3231,7 @@ void user_options_logger (hashcat_ctx_t *hashcat_ctx)
logfile_top_uint (user_options->bitmap_max); logfile_top_uint (user_options->bitmap_max);
logfile_top_uint (user_options->bitmap_min); logfile_top_uint (user_options->bitmap_min);
logfile_top_uint (user_options->debug_mode); logfile_top_uint (user_options->debug_mode);
logfile_top_uint (user_options->dynamic_x);
logfile_top_uint (user_options->hash_info); logfile_top_uint (user_options->hash_info);
logfile_top_uint (user_options->force); logfile_top_uint (user_options->force);
logfile_top_uint (user_options->hwmon); logfile_top_uint (user_options->hwmon);