From 3d53188cc38251669d54d8a13f4664464c05423a Mon Sep 17 00:00:00 2001 From: Jens Steube Date: Sat, 4 Dec 2021 16:56:16 +0100 Subject: [PATCH] Tuning Database: Added a warning if a module implements module_extra_tuningdb_block but the installed computing device is not found --- docs/changes.txt | 1 + src/backend.c | 15 +++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/docs/changes.txt b/docs/changes.txt index efc0f9f88..c5766d311 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -11,6 +11,7 @@ ## - Association Attack: Enable module specific pw_min and pw_max settings to avoid false positives in -a 9 attack-mode +- Tuning Database: Added a warning if a module implements module_extra_tuningdb_block but the installed computing device is not found - Usage Screen: On windows console, wait for any keypress if usage_mini_print() is used - User Options: Add new module function module_hash_decode_postprocess() to override hash specific configurations from command line diff --git a/src/backend.c b/src/backend.c index 7af5345d7..247d9a80d 100644 --- a/src/backend.c +++ b/src/backend.c @@ -10994,6 +10994,21 @@ int backend_session_begin (hashcat_ctx_t *hashcat_ctx) if (_kernel_accel == (u32) -1) // native, makes sense if OPTS_TYPE_MP_MULTI_DISABLE is used { + if (module_ctx->module_extra_tuningdb_block != MODULE_DEFAULT) + { + event_log_warning (hashcat_ctx, "ATTENTION! This hash-mode requires manual tuning to achieve full performance."); + event_log_warning (hashcat_ctx, "The loss of performance can be greater than 100%% without manual tuning."); + event_log_warning (hashcat_ctx, NULL); + event_log_warning (hashcat_ctx, "This warning message disappears after a definition for the installed"); + event_log_warning (hashcat_ctx, "compute-device in this computer has been added to either list:"); + event_log_warning (hashcat_ctx, "- src/modules/module_%05d.c", hashconfig->hash_mode); + event_log_warning (hashcat_ctx, "- hashcat.hctune"); + event_log_warning (hashcat_ctx, NULL); + event_log_warning (hashcat_ctx, "For instructions on tuning, see src/modules/module_%05d.c", hashconfig->hash_mode); + event_log_warning (hashcat_ctx, "Also, consider sending a PR to Hashcat Master so that other users can benefit from your work."); + event_log_warning (hashcat_ctx, NULL); + } + device_param->kernel_accel_min = device_param->device_processors; device_param->kernel_accel_max = device_param->device_processors; }