From 09513ed78be9b63710047a88d3ff77f560c09e8b Mon Sep 17 00:00:00 2001 From: Gabriele Gristina Date: Sat, 19 Jun 2021 12:32:02 +0200 Subject: [PATCH] fix starting message --- src/terminal.c | 12 +++++++++++- src/user_options.c | 7 +++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/src/terminal.c b/src/terminal.c index 0b6c8a37a..312d04a04 100644 --- a/src/terminal.c +++ b/src/terminal.c @@ -32,7 +32,12 @@ void welcome_screen (hashcat_ctx_t *hashcat_ctx, const char *version_tag) if (user_options->left == true) return; if (user_options->identify == true) return; - if (user_options->benchmark == true) + if (user_options->usage == true) + { + event_log_info (hashcat_ctx, "%s (%s) starting in help mode...", PROGNAME, version_tag); + event_log_info (hashcat_ctx, NULL); + } + else if (user_options->benchmark == true) { if (user_options->machine_readable == false) { @@ -79,6 +84,11 @@ void welcome_screen (hashcat_ctx_t *hashcat_ctx, const char *version_tag) event_log_info (hashcat_ctx, "%s (%s) starting in autodetect mode...", PROGNAME, version_tag); event_log_info (hashcat_ctx, NULL); } + else if (user_options->hash_info == true) + { + event_log_info (hashcat_ctx, "%s (%s) starting in hash-info mode...", PROGNAME, version_tag); + event_log_info (hashcat_ctx, NULL); + } else { event_log_info (hashcat_ctx, "%s (%s) starting...", PROGNAME, version_tag); diff --git a/src/user_options.c b/src/user_options.c index 9acef8d3e..09cca2496 100644 --- a/src/user_options.c +++ b/src/user_options.c @@ -1172,6 +1172,13 @@ int user_options_sanity (hashcat_ctx_t *hashcat_ctx) return -1; } + if (user_options->hash_info == true) + { + event_log_error (hashcat_ctx, "Use of --hash-info/example is not allowed in benchmark mode."); + + return -1; + } + if (user_options->increment == true) { event_log_error (hashcat_ctx, "Can't change --increment (-i) in benchmark mode.");