From e47a58db44552fbff724326485ea3dee7010644e Mon Sep 17 00:00:00 2001
From: Chick3nman <admin@chick3nman.com>
Date: Mon, 14 Feb 2022 12:43:20 -0600
Subject: [PATCH] Introduce logic to stop advice message from suggesting
 options that do not work in the current attack mode. Fixes #3169

---
 src/main.c | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/src/main.c b/src/main.c
index d57e05cf1..7264ac173 100644
--- a/src/main.c
+++ b/src/main.c
@@ -746,12 +746,15 @@ static void main_monitor_performance_hint (MAYBE_UNUSED hashcat_ctx_t *hashcat_c
 
   if (user_options->slow_candidates == false)
   {
-    event_log_advice (hashcat_ctx, "* Append -S to the commandline.");
-    event_log_advice (hashcat_ctx, "  This has a drastic speed impact but can be better for specific attacks.");
-    event_log_advice (hashcat_ctx, "  Typical scenarios are a small wordlist but a large ruleset.");
-    event_log_advice (hashcat_ctx, NULL);
+    if ((user_options_extra->wordlist_mode == WL_MODE_FILE) || (user_options_extra->wordlist_mode == WL_MODE_MASK))
+    {
+      event_log_advice (hashcat_ctx, "* Append -S to the commandline.");
+      event_log_advice (hashcat_ctx, "  This has a drastic speed impact but can be better for specific attacks.");
+      event_log_advice (hashcat_ctx, "  Typical scenarios are a small wordlist but a large ruleset.");
+      event_log_advice (hashcat_ctx, NULL);
+    }
   }
-
+  
   event_log_advice (hashcat_ctx, "* Update your backend API runtime / driver the right way:");
   event_log_advice (hashcat_ctx, "  https://hashcat.net/faq/wrongdriver");
   event_log_advice (hashcat_ctx, NULL);