Prepare hlfmt.c for dynamic_x flag

pull/3907/head
jsteube 7 months ago
parent cdad6cca7b
commit c00d88e2d9

@ -28,12 +28,7 @@ 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 user_options_t *user_options = hashcat_ctx->user_options;
const hashconfig_t *hashconfig = hashcat_ctx->hashconfig; const hashconfig_t *hashconfig = hashcat_ctx->hashconfig;
if (user_options->username == false) if (user_options->username == true)
{
*hashbuf_pos = line_buf;
*hashbuf_len = line_len;
}
else
{ {
char *pos = line_buf; char *pos = line_buf;
size_t len = line_len; size_t len = line_len;
@ -53,6 +48,15 @@ static void hlfmt_hash_hashcat (MAYBE_UNUSED hashcat_ctx_t *hashcat_ctx, char *l
*hashbuf_pos = pos; *hashbuf_pos = pos;
*hashbuf_len = len; *hashbuf_len = len;
} }
if (user_options->dynamic_x == true)
{
}
else
{
*hashbuf_pos = line_buf;
*hashbuf_len = line_len;
}
} }
static void hlfmt_user_hashcat (MAYBE_UNUSED hashcat_ctx_t *hashcat_ctx, char *line_buf, const int line_len, char **userbuf_pos, int *userbuf_len) static void hlfmt_user_hashcat (MAYBE_UNUSED hashcat_ctx_t *hashcat_ctx, char *line_buf, const int line_len, char **userbuf_pos, int *userbuf_len)

Loading…
Cancel
Save