From 50e7d9d56c18cb544d3e113bb91fca667ec9adb4 Mon Sep 17 00:00:00 2001 From: Arseniy Sharoglazov Date: Sun, 13 Aug 2023 12:31:38 +0300 Subject: [PATCH] Fixed a bug that --outfile-autohex-disable affects potfile --- docs/changes.txt | 1 + src/potfile.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/changes.txt b/docs/changes.txt index 48518dc7e..466a65c86 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -103,6 +103,7 @@ - Fixed vector datatypes usage for HIP - Fixed out-of-boundary read when a fast hash defines a kernel_loops_min value higher than the amplifiers provided by the user - Fix missing check for -j and -k before writing hashcat.dictstat2 which can lead to false negatives +- Fixed a bug that --outfile-autohex-disable affects potfile ## ## Technical diff --git a/src/potfile.c b/src/potfile.c index 2b2006d90..64bc58250 100644 --- a/src/potfile.c +++ b/src/potfile.c @@ -275,7 +275,7 @@ void potfile_write_append (hashcat_ctx_t *hashcat_ctx, const char *out_buf, cons { const bool always_ascii = (hashconfig->opts_type & OPTS_TYPE_PT_ALWAYS_ASCII) ? true : false; - if ((user_options->outfile_autohex == true) && (need_hexify (plain_ptr, plain_len, hashconfig->separator, always_ascii) == true)) + if (need_hexify (plain_ptr, plain_len, hashconfig->separator, always_ascii) == true) { tmp_buf[tmp_len++] = '$'; tmp_buf[tmp_len++] = 'H';