From 1bf3392b1acd5567d0944def394540bd28f93728 Mon Sep 17 00:00:00 2001 From: TheWorkingDeveloper <33965786+TheWorkingDeveloper@users.noreply.github.com> Date: Sat, 26 Jun 2021 23:53:04 +0200 Subject: [PATCH 1/2] Hexify plains with delimiter Hexify plains if the plain contains the : separator --- src/debugfile.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/debugfile.c b/src/debugfile.c index 28eeb59f8..bc054a467 100644 --- a/src/debugfile.c +++ b/src/debugfile.c @@ -23,14 +23,17 @@ static void debugfile_format_plain (hashcat_ctx_t *hashcat_ctx, const u8 *plain_ if (plain_ptr[i] < 0x20) { needs_hexify = 1; - break; } if (plain_ptr[i] > 0x7f) { needs_hexify = 1; - + break; + } + if (plain_ptr[i] == 0x3a) + { + needs_hexify = 1; break; } } From 3a3bd075148b5965dd717f74fe6a85899541dedc Mon Sep 17 00:00:00 2001 From: Jens Steube Date: Sun, 27 Jun 2021 10:37:15 +0200 Subject: [PATCH 2/2] Make it more visible we use a hardcoded character --- src/debugfile.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/debugfile.c b/src/debugfile.c index bc054a467..790b81efd 100644 --- a/src/debugfile.c +++ b/src/debugfile.c @@ -31,7 +31,8 @@ static void debugfile_format_plain (hashcat_ctx_t *hashcat_ctx, const u8 *plain_ needs_hexify = 1; break; } - if (plain_ptr[i] == 0x3a) + + if (plain_ptr[i] == ':') { needs_hexify = 1; break;