From d4fdb4f7a77264563c97e74e7a8bbff0c18d01c5 Mon Sep 17 00:00:00 2001 From: jsteube Date: Fri, 27 Jan 2017 16:34:48 +0100 Subject: [PATCH] Also check existence of rules selected from user using -r on startup --- src/user_options.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/user_options.c b/src/user_options.c index 774565594..f89a8f453 100644 --- a/src/user_options.c +++ b/src/user_options.c @@ -1344,6 +1344,18 @@ int user_options_check_files (hashcat_ctx_t *hashcat_ctx) return -1; } } + + for (int i = 0; i < (int) user_options->rp_files_cnt; i++) + { + char *rp_file = user_options->rp_files[i]; + + if (hc_path_exist (rp_file) == false) + { + event_log_error (hashcat_ctx, "%s: %m", rp_file); + + return -1; + } + } } else if (user_options->attack_mode == ATTACK_MODE_COMBI) {