From c884a5d02fdb573b9ca756ed69ad21ef63737927 Mon Sep 17 00:00:00 2001 From: Jens Steube Date: Sat, 20 Aug 2022 09:39:59 +0200 Subject: [PATCH] Logfile: Write per-session "recovered new" value to logfile Fixes https://github.com/hashcat/hashcat/issues/3392 --- docs/changes.txt | 1 + src/hashcat.c | 4 ++++ src/hashes.c | 2 ++ 3 files changed, 7 insertions(+) diff --git a/docs/changes.txt b/docs/changes.txt index d854b2802..f68c5ebe0 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -127,6 +127,7 @@ - Modules: New LUKS v1 modules (29511-29543) which do not use `module_hash_binary_parse` to get data from containers anymore (use new tool `tools/luks2hashcat.py`). - Modules: Renamed old LUKS module into LUKS v1 and added suffix *legacy* (14600). - Workflow: Added basic workflow for GitHub Actions. +- Logfile: Write per-session "recovered new" value to logfile * changes v6.2.4 -> v6.2.5 diff --git a/src/hashcat.c b/src/hashcat.c index bff1bb4ea..76d4b7972 100644 --- a/src/hashcat.c +++ b/src/hashcat.c @@ -395,6 +395,10 @@ static int inner2_loop (hashcat_ctx_t *hashcat_ctx) status_ctx->accessible = false; + // update newly cracked hashes per session + + logfile_sub_uint (hashes->digests_done_new); + EVENT (EVENT_CRACKER_FINISHED); // mark sub logfile diff --git a/src/hashes.c b/src/hashes.c index 8dd902daa..fb6fc6c18 100644 --- a/src/hashes.c +++ b/src/hashes.c @@ -2692,6 +2692,8 @@ void hashes_logger (hashcat_ctx_t *hashcat_ctx) logfile_top_uint (hashes->hashlist_format); logfile_top_uint (hashes->hashes_cnt); logfile_top_uint (hashes->digests_cnt); + logfile_top_uint (hashes->digests_done_pot); + logfile_top_uint (hashes->digests_done_zero); logfile_top_uint (hashes->digests_done); logfile_top_uint (hashes->salts_cnt); logfile_top_uint (hashes->salts_done);