From 934105bec05c409ac0983ad80a61fa6841881577 Mon Sep 17 00:00:00 2001 From: jsteube Date: Fri, 10 Nov 2023 09:16:28 +0000 Subject: [PATCH] Start using extract_dynamicx_hash() from hlfmt_hash_hashcat() --- src/hlfmt.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/hlfmt.c b/src/hlfmt.c index 9c6b813c3..819eae910 100644 --- a/src/hlfmt.c +++ b/src/hlfmt.c @@ -54,7 +54,14 @@ static void hlfmt_hash_hashcat (MAYBE_UNUSED hashcat_ctx_t *hashcat_ctx, char *l if (user_options->dynamic_x == true) { + char *pos = NULL; + int len = 0; + if (extract_dynamicx_hash ((const u8 *) line_buf, line_len, (u8 **) &pos, &len) != -1) + { + *hashbuf_pos = pos; + *hashbuf_len = len; + } } }