diff --git a/include/types.h b/include/types.h index 0f69d8e4b..be7506251 100644 --- a/include/types.h +++ b/include/types.h @@ -663,7 +663,7 @@ typedef enum user_options_defaults KEYSPACE = false, LEFT = false, LIMIT = 0, - LOGFILE_DISABLE = false, + LOGFILE = true, LOOPBACK = false, MACHINE_READABLE = false, MARKOV_CLASSIC = false, @@ -2341,7 +2341,7 @@ typedef struct user_options bool keep_guessing; bool keyspace; bool left; - bool logfile_disable; + bool logfile; bool loopback; bool machine_readable; bool markov_classic; diff --git a/src/logfile.c b/src/logfile.c index d69e15d75..45e58b43d 100644 --- a/src/logfile.c +++ b/src/logfile.c @@ -77,7 +77,7 @@ int logfile_init (hashcat_ctx_t *hashcat_ctx) logfile_ctx_t *logfile_ctx = hashcat_ctx->logfile_ctx; user_options_t *user_options = hashcat_ctx->user_options; - if (user_options->logfile_disable == true) return 0; + if (user_options->logfile == false) return 0; hc_asprintf (&logfile_ctx->logfile, "%s/%s.log", folder_config->session_dir, user_options->session); diff --git a/src/user_options.c b/src/user_options.c index 5a244b1b9..553710582 100644 --- a/src/user_options.c +++ b/src/user_options.c @@ -230,7 +230,7 @@ int user_options_init (hashcat_ctx_t *hashcat_ctx) user_options->keyspace = KEYSPACE; user_options->left = LEFT; user_options->limit = LIMIT; - user_options->logfile_disable = LOGFILE_DISABLE; + user_options->logfile = LOGFILE; user_options->loopback = LOOPBACK; user_options->machine_readable = MACHINE_READABLE; user_options->markov_classic = MARKOV_CLASSIC; @@ -499,7 +499,7 @@ int user_options_getopt (hashcat_ctx_t *hashcat_ctx, int argc, char **argv) user_options->spin_damp_chgd = true; break; case IDX_HWMON_DISABLE: user_options->hwmon = false; break; case IDX_HWMON_TEMP_ABORT: user_options->hwmon_temp_abort = hc_strtoul (optarg, NULL, 10); break; - case IDX_LOGFILE_DISABLE: user_options->logfile_disable = true; break; + case IDX_LOGFILE_DISABLE: user_options->logfile = false; break; case IDX_HCCAPX_MESSAGE_PAIR: user_options->hccapx_message_pair = hc_strtoul (optarg, NULL, 10); user_options->hccapx_message_pair_chgd = true; break; case IDX_NONCE_ERROR_CORRECTIONS: user_options->nonce_error_corrections = hc_strtoul (optarg, NULL, 10); @@ -1834,7 +1834,7 @@ void user_options_preprocess (hashcat_ctx_t *hashcat_ctx) { user_options->hwmon = false; user_options->left = false; - user_options->logfile_disable = true; + user_options->logfile = false; user_options->spin_damp = 0; user_options->outfile_check_timer = 0; user_options->potfile_disable = true; @@ -1858,7 +1858,7 @@ void user_options_preprocess (hashcat_ctx_t *hashcat_ctx) { user_options->hwmon = false; user_options->left = false; - user_options->logfile_disable = true; + user_options->logfile = false; user_options->spin_damp = 0; user_options->outfile_check_timer = 0; user_options->potfile_disable = true; @@ -1881,7 +1881,7 @@ void user_options_preprocess (hashcat_ctx_t *hashcat_ctx) user_options->hwmon_temp_abort = 0; user_options->increment = false; user_options->left = false; - user_options->logfile_disable = true; + user_options->logfile = false; user_options->spin_damp = 0; user_options->potfile_disable = true; user_options->progress_only = false; @@ -3247,7 +3247,7 @@ void user_options_logger (hashcat_ctx_t *hashcat_ctx) logfile_top_uint (user_options->kernel_threads); logfile_top_uint (user_options->keyspace); logfile_top_uint (user_options->left); - logfile_top_uint (user_options->logfile_disable); + logfile_top_uint (user_options->logfile); logfile_top_uint (user_options->loopback); logfile_top_uint (user_options->machine_readable); logfile_top_uint (user_options->markov_classic);