mirror of
https://github.com/hashcat/hashcat
synced 2024-11-24 14:27:14 +01:00
Refactor self_test_disable variable to just self_test, same idea as outfile_autohex variable
This commit is contained in:
parent
7b52dad8c9
commit
ff94f4c9d0
@ -701,7 +701,7 @@ typedef enum user_options_defaults
|
|||||||
RUNTIME = 0,
|
RUNTIME = 0,
|
||||||
SCRYPT_TMTO = 0,
|
SCRYPT_TMTO = 0,
|
||||||
SEGMENT_SIZE = 33554432,
|
SEGMENT_SIZE = 33554432,
|
||||||
SELF_TEST_DISABLE = false,
|
SELF_TEST = true,
|
||||||
SHOW = false,
|
SHOW = false,
|
||||||
SKIP = 0,
|
SKIP = 0,
|
||||||
SLOW_CANDIDATES = false,
|
SLOW_CANDIDATES = false,
|
||||||
@ -2361,7 +2361,7 @@ typedef struct user_options
|
|||||||
bool remove;
|
bool remove;
|
||||||
bool restore;
|
bool restore;
|
||||||
bool restore_disable;
|
bool restore_disable;
|
||||||
bool self_test_disable;
|
bool self_test;
|
||||||
bool show;
|
bool show;
|
||||||
bool slow_candidates;
|
bool slow_candidates;
|
||||||
bool speed_only;
|
bool speed_only;
|
||||||
|
@ -287,7 +287,7 @@ int hashconfig_init (hashcat_ctx_t *hashcat_ctx)
|
|||||||
hashconfig->opts_type |= OPTS_TYPE_MP_MULTI_DISABLE;
|
hashconfig->opts_type |= OPTS_TYPE_MP_MULTI_DISABLE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (user_options->self_test_disable == true)
|
if (user_options->self_test == false)
|
||||||
{
|
{
|
||||||
hashconfig->opts_type |= OPTS_TYPE_SELF_TEST_DISABLE;
|
hashconfig->opts_type |= OPTS_TYPE_SELF_TEST_DISABLE;
|
||||||
}
|
}
|
||||||
|
@ -1048,7 +1048,7 @@ HC_API_CALL void *thread_selftest (void *p)
|
|||||||
|
|
||||||
user_options_t *user_options = hashcat_ctx->user_options;
|
user_options_t *user_options = hashcat_ctx->user_options;
|
||||||
|
|
||||||
if (user_options->self_test_disable == true) return NULL;
|
if (user_options->self_test == false) return NULL;
|
||||||
|
|
||||||
hc_device_param_t *device_param = backend_ctx->devices_param + thread_param->tid;
|
hc_device_param_t *device_param = backend_ctx->devices_param + thread_param->tid;
|
||||||
|
|
||||||
|
@ -269,7 +269,7 @@ int user_options_init (hashcat_ctx_t *hashcat_ctx)
|
|||||||
user_options->runtime = RUNTIME;
|
user_options->runtime = RUNTIME;
|
||||||
user_options->scrypt_tmto = SCRYPT_TMTO;
|
user_options->scrypt_tmto = SCRYPT_TMTO;
|
||||||
user_options->segment_size = SEGMENT_SIZE;
|
user_options->segment_size = SEGMENT_SIZE;
|
||||||
user_options->self_test_disable = SELF_TEST_DISABLE;
|
user_options->self_test = SELF_TEST;
|
||||||
user_options->separator = SEPARATOR;
|
user_options->separator = SEPARATOR;
|
||||||
user_options->session = PROGNAME;
|
user_options->session = PROGNAME;
|
||||||
user_options->show = SHOW;
|
user_options->show = SHOW;
|
||||||
@ -414,7 +414,7 @@ int user_options_getopt (hashcat_ctx_t *hashcat_ctx, int argc, char **argv)
|
|||||||
case IDX_OUTFILE_CHECK_DIR: user_options->outfile_check_dir = optarg; break;
|
case IDX_OUTFILE_CHECK_DIR: user_options->outfile_check_dir = optarg; break;
|
||||||
case IDX_HASH_INFO: user_options->hash_info = true; break;
|
case IDX_HASH_INFO: user_options->hash_info = true; break;
|
||||||
case IDX_FORCE: user_options->force = true; break;
|
case IDX_FORCE: user_options->force = true; break;
|
||||||
case IDX_SELF_TEST_DISABLE: user_options->self_test_disable = true; break;
|
case IDX_SELF_TEST_DISABLE: user_options->self_test = false; break;
|
||||||
case IDX_SKIP: user_options->skip = hc_strtoull (optarg, NULL, 10);
|
case IDX_SKIP: user_options->skip = hc_strtoull (optarg, NULL, 10);
|
||||||
user_options->skip_chgd = true; break;
|
user_options->skip_chgd = true; break;
|
||||||
case IDX_LIMIT: user_options->limit = hc_strtoull (optarg, NULL, 10);
|
case IDX_LIMIT: user_options->limit = hc_strtoull (optarg, NULL, 10);
|
||||||
@ -3280,7 +3280,7 @@ void user_options_logger (hashcat_ctx_t *hashcat_ctx)
|
|||||||
logfile_top_uint (user_options->runtime);
|
logfile_top_uint (user_options->runtime);
|
||||||
logfile_top_uint (user_options->scrypt_tmto);
|
logfile_top_uint (user_options->scrypt_tmto);
|
||||||
logfile_top_uint (user_options->segment_size);
|
logfile_top_uint (user_options->segment_size);
|
||||||
logfile_top_uint (user_options->self_test_disable);
|
logfile_top_uint (user_options->self_test);
|
||||||
logfile_top_uint (user_options->slow_candidates);
|
logfile_top_uint (user_options->slow_candidates);
|
||||||
logfile_top_uint (user_options->show);
|
logfile_top_uint (user_options->show);
|
||||||
logfile_top_uint (user_options->speed_only);
|
logfile_top_uint (user_options->speed_only);
|
||||||
|
Loading…
Reference in New Issue
Block a user