|
|
@ -112,6 +112,7 @@ static const struct option long_options[] =
|
|
|
|
{"speed-only", no_argument, NULL, IDX_SPEED_ONLY},
|
|
|
|
{"speed-only", no_argument, NULL, IDX_SPEED_ONLY},
|
|
|
|
{"spin-damp", required_argument, NULL, IDX_SPIN_DAMP},
|
|
|
|
{"spin-damp", required_argument, NULL, IDX_SPIN_DAMP},
|
|
|
|
{"status", no_argument, NULL, IDX_STATUS},
|
|
|
|
{"status", no_argument, NULL, IDX_STATUS},
|
|
|
|
|
|
|
|
{"status-json", no_argument, NULL, IDX_STATUS_JSON},
|
|
|
|
{"status-timer", required_argument, NULL, IDX_STATUS_TIMER},
|
|
|
|
{"status-timer", required_argument, NULL, IDX_STATUS_TIMER},
|
|
|
|
{"stdout", no_argument, NULL, IDX_STDOUT_FLAG},
|
|
|
|
{"stdout", no_argument, NULL, IDX_STDOUT_FLAG},
|
|
|
|
{"stdin-timeout-abort", required_argument, NULL, IDX_STDIN_TIMEOUT_ABORT},
|
|
|
|
{"stdin-timeout-abort", required_argument, NULL, IDX_STDIN_TIMEOUT_ABORT},
|
|
|
@ -242,6 +243,7 @@ int user_options_init (hashcat_ctx_t *hashcat_ctx)
|
|
|
|
user_options->speed_only = SPEED_ONLY;
|
|
|
|
user_options->speed_only = SPEED_ONLY;
|
|
|
|
user_options->spin_damp = SPIN_DAMP;
|
|
|
|
user_options->spin_damp = SPIN_DAMP;
|
|
|
|
user_options->status = STATUS;
|
|
|
|
user_options->status = STATUS;
|
|
|
|
|
|
|
|
user_options->status_json = STATUS_JSON;
|
|
|
|
user_options->status_timer = STATUS_TIMER;
|
|
|
|
user_options->status_timer = STATUS_TIMER;
|
|
|
|
user_options->stdin_timeout_abort = STDIN_TIMEOUT_ABORT;
|
|
|
|
user_options->stdin_timeout_abort = STDIN_TIMEOUT_ABORT;
|
|
|
|
user_options->stdout_flag = STDOUT_FLAG;
|
|
|
|
user_options->stdout_flag = STDOUT_FLAG;
|
|
|
@ -391,6 +393,7 @@ int user_options_getopt (hashcat_ctx_t *hashcat_ctx, int argc, char **argv)
|
|
|
|
case IDX_RESTORE_DISABLE: user_options->restore_disable = true; break;
|
|
|
|
case IDX_RESTORE_DISABLE: user_options->restore_disable = true; break;
|
|
|
|
case IDX_RESTORE_FILE_PATH: user_options->restore_file_path = optarg; break;
|
|
|
|
case IDX_RESTORE_FILE_PATH: user_options->restore_file_path = optarg; break;
|
|
|
|
case IDX_STATUS: user_options->status = true; break;
|
|
|
|
case IDX_STATUS: user_options->status = true; break;
|
|
|
|
|
|
|
|
case IDX_STATUS_JSON: user_options->status_json = true; break;
|
|
|
|
case IDX_STATUS_TIMER: user_options->status_timer = hc_strtoul (optarg, NULL, 10); break;
|
|
|
|
case IDX_STATUS_TIMER: user_options->status_timer = hc_strtoul (optarg, NULL, 10); break;
|
|
|
|
case IDX_MACHINE_READABLE: user_options->machine_readable = true; break;
|
|
|
|
case IDX_MACHINE_READABLE: user_options->machine_readable = true; break;
|
|
|
|
case IDX_LOOPBACK: user_options->loopback = true; break;
|
|
|
|
case IDX_LOOPBACK: user_options->loopback = true; break;
|
|
|
@ -2787,6 +2790,7 @@ void user_options_logger (hashcat_ctx_t *hashcat_ctx)
|
|
|
|
logfile_top_uint (user_options->speed_only);
|
|
|
|
logfile_top_uint (user_options->speed_only);
|
|
|
|
logfile_top_uint (user_options->spin_damp);
|
|
|
|
logfile_top_uint (user_options->spin_damp);
|
|
|
|
logfile_top_uint (user_options->status);
|
|
|
|
logfile_top_uint (user_options->status);
|
|
|
|
|
|
|
|
logfile_top_uint (user_options->status_json);
|
|
|
|
logfile_top_uint (user_options->status_timer);
|
|
|
|
logfile_top_uint (user_options->status_timer);
|
|
|
|
logfile_top_uint (user_options->stdout_flag);
|
|
|
|
logfile_top_uint (user_options->stdout_flag);
|
|
|
|
logfile_top_uint (user_options->usage);
|
|
|
|
logfile_top_uint (user_options->usage);
|
|
|
|