From 0fe6db6839f9646124a5c6ae6f52111a573fe1ac Mon Sep 17 00:00:00 2001 From: jsteube Date: Thu, 5 Jan 2017 22:46:34 +0100 Subject: [PATCH] Sanity: Added sanity check to disallow --loopback in combination with --runtime --- docs/changes.txt | 1 + src/user_options.c | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/docs/changes.txt b/docs/changes.txt index 2c7852a53..2d8c5341b 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -62,6 +62,7 @@ - Potfile: In v3.10 already, the default potfile suffix changed but the note about was missing. The "hashcat.pot" became "hashcat.potfile" - Potfile: Added old potfile detection, show warning message - Sanity: Added sanity check to disallow --speed-only in combination with -i +- Sanity: Added sanity check to disallow --loopback in combination with --runtime - Threads: Replaced all calls to ctime() with ctime_r() to ensure thread safety - Threads: Replaced all calls to strerror() with %m printf() GNU extension to ensure thread safety diff --git a/src/user_options.c b/src/user_options.c index c1b97a7ab..d42e0a4a9 100644 --- a/src/user_options.c +++ b/src/user_options.c @@ -393,6 +393,13 @@ int user_options_sanity (hashcat_ctx_t *hashcat_ctx) return -1; } + if (user_options->runtime_chgd == true && user_options->loopback == true) + { + event_log_error (hashcat_ctx, "Runtime-Limit is not allowed in combination with --loopback"); + + return -1; + } + if (user_options->hash_mode > 99999) { event_log_error (hashcat_ctx, "Invalid hash-type specified");