From 80c5150292f50ea99c558a305fe5cacce92e6d4a Mon Sep 17 00:00:00 2001 From: jsteube Date: Wed, 19 Jul 2017 15:33:19 +0200 Subject: [PATCH] Change the benchmarking info text on -O and disable it if -w is already set --- src/terminal.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/terminal.c b/src/terminal.c index 4bf282b84..0b322a0a6 100644 --- a/src/terminal.c +++ b/src/terminal.c @@ -39,8 +39,15 @@ void welcome_screen (hashcat_ctx_t *hashcat_ctx, const char *version_tag) { event_log_info (hashcat_ctx, "%s (%s) starting in benchmark mode...", PROGNAME, version_tag); event_log_info (hashcat_ctx, NULL); - event_log_advice (hashcat_ctx, "Benchmarking uses optimized kernels (-O). To disable, use a workload profile (-w)"); - event_log_advice (hashcat_ctx, NULL); + + if (user_options->workload_profile_chgd == false) + { + event_log_advice (hashcat_ctx, "Benchmarking uses hand optimized kernel code by default."); + event_log_advice (hashcat_ctx, "You can use it in your cracking session by setting the -O option."); + event_log_advice (hashcat_ctx, "Note that using optimized kernel code limits the maximum supported password length."); + event_log_advice (hashcat_ctx, "To disable the optimized kernel code in benchmark mode use the -w option."); + event_log_advice (hashcat_ctx, NULL); + } } else {