1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-14 03:39:09 +00:00

Merge pull request #3880 from PenguinKeeper7/a9-outfile-warning-fix

Remove -o warning when already used
This commit is contained in:
Jens Steube 2023-09-22 21:16:01 +02:00 committed by GitHub
commit 1a4a581774
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 3 deletions

View File

@ -2305,6 +2305,7 @@ typedef struct user_options
bool nonce_error_corrections_chgd;
bool spin_damp_chgd;
bool backend_vector_width_chgd;
bool outfile_chgd;
bool outfile_format_chgd;
bool remove_timer_chgd;
bool rp_gen_seed_chgd;

View File

@ -563,7 +563,12 @@ static void main_outerloop_mainscreen (MAYBE_UNUSED hashcat_ctx_t *hashcat_ctx,
{
event_log_advice (hashcat_ctx, "ATTENTION! Potfile storage is disabled for this hash mode.");
event_log_advice (hashcat_ctx, "Passwords cracked during this session will NOT be stored to the potfile.");
event_log_advice (hashcat_ctx, "Consider using -o to save cracked passwords.");
if(user_options->outfile_chgd == false)
{
event_log_advice (hashcat_ctx, "Consider using -o to save cracked passwords.");
}
event_log_advice (hashcat_ctx, NULL);
}
@ -571,7 +576,12 @@ static void main_outerloop_mainscreen (MAYBE_UNUSED hashcat_ctx_t *hashcat_ctx,
{
event_log_advice (hashcat_ctx, "ATTENTION! Potfile read/write is disabled for this attack mode.");
event_log_advice (hashcat_ctx, "Passwords cracked during this session will NOT be stored to the potfile.");
event_log_advice (hashcat_ctx, "Consider using -o to save cracked passwords.");
if(user_options->outfile_chgd == false)
{
event_log_advice (hashcat_ctx, "Consider using -o to save cracked passwords.");
}
event_log_advice (hashcat_ctx, NULL);
}
/**

View File

@ -459,7 +459,8 @@ int user_options_getopt (hashcat_ctx_t *hashcat_ctx, int argc, char **argv)
case IDX_MARKOV_INVERSE: user_options->markov_inverse = true; break;
case IDX_MARKOV_THRESHOLD: user_options->markov_threshold = hc_strtoul (optarg, NULL, 10); break;
case IDX_MARKOV_HCSTAT2: user_options->markov_hcstat2 = optarg; break;
case IDX_OUTFILE: user_options->outfile = optarg; break;
case IDX_OUTFILE: user_options->outfile = optarg;
user_options->outfile_chgd = true; break;
case IDX_OUTFILE_FORMAT: user_options->outfile_format = outfile_format_parse (optarg);
user_options->outfile_format_chgd = true; break;
case IDX_OUTFILE_AUTOHEX_DISABLE: user_options->outfile_autohex = false; break;