From fa293bb409e0cda75d728631caa6351872ab998d Mon Sep 17 00:00:00 2001 From: jsteube Date: Thu, 20 Oct 2016 10:21:25 +0200 Subject: [PATCH] Fix --quiet mode in main_cracker_finished() --- src/main.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main.c b/src/main.c index 2c49b4805..efc470753 100644 --- a/src/main.c +++ b/src/main.c @@ -258,7 +258,6 @@ static void main_cracker_finished (MAYBE_UNUSED hashcat_ctx_t *hashcat_ctx, MAYB if (user_options->keyspace == true) return; if (user_options->opencl_info == true) return; if (user_options->stdout_flag == true) return; - if (user_options->quiet == true) return; // if we had a prompt, clear it @@ -283,11 +282,14 @@ static void main_cracker_finished (MAYBE_UNUSED hashcat_ctx_t *hashcat_ctx, MAYB } else { - if (hashes->digests_saved != hashes->digests_done) event_log_info (hashcat_ctx, ""); + if (user_options->quiet == false) + { + if (hashes->digests_saved != hashes->digests_done) event_log_info (hashcat_ctx, ""); - status_display (hashcat_ctx); + status_display (hashcat_ctx); - event_log_info (hashcat_ctx, ""); + event_log_info (hashcat_ctx, ""); + } } }