From 09915c72433ad2ffb9612f2d0473bd40b6098208 Mon Sep 17 00:00:00 2001 From: jsteube Date: Mon, 6 Nov 2023 20:05:09 +0000 Subject: [PATCH] Prepare hlfmt.c for combination of --username and --dynamic-x --- src/hlfmt.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/hlfmt.c b/src/hlfmt.c index 1440899bb..c775cd5d8 100644 --- a/src/hlfmt.c +++ b/src/hlfmt.c @@ -28,7 +28,11 @@ static void hlfmt_hash_hashcat (MAYBE_UNUSED hashcat_ctx_t *hashcat_ctx, char *l const user_options_t *user_options = hashcat_ctx->user_options; const hashconfig_t *hashconfig = hashcat_ctx->hashconfig; - if (user_options->username == true) + if ((user_options->username == true) && (user_options->dynamic_x == true)) + { + + } + else if (user_options->username == true) { char *pos = line_buf; size_t len = line_len; @@ -48,7 +52,7 @@ static void hlfmt_hash_hashcat (MAYBE_UNUSED hashcat_ctx_t *hashcat_ctx, char *l *hashbuf_pos = pos; *hashbuf_len = len; } - if (user_options->dynamic_x == true) + else if (user_options->dynamic_x == true) { }