From c0b3f036059e1dd8dac1d60d6cab14cbde3f095b Mon Sep 17 00:00:00 2001 From: Chick3nman Date: Tue, 12 Mar 2019 12:53:44 -0500 Subject: [PATCH] Do not remove hashes if --keep-guessing enabled --- src/potfile.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/potfile.c b/src/potfile.c index a7d3db540..44ce90547 100644 --- a/src/potfile.c +++ b/src/potfile.c @@ -373,10 +373,13 @@ int potfile_remove_parse (hashcat_ctx_t *hashcat_ctx) const hashes_t *hashes = hashcat_ctx->hashes; const module_ctx_t *module_ctx = hashcat_ctx->module_ctx; const potfile_ctx_t *potfile_ctx = hashcat_ctx->potfile_ctx; + const user_options_t *user_options = hashcat_ctx->user_options; if (potfile_ctx->enabled == false) return 0; if (hashconfig->potfile_disable == true) return 0; + + if (user_options->keep_guessing == true) return 0; // if no potfile exists yet we don't need to do anything here