|
|
|
@ -241,6 +241,17 @@ int save_hash (hashcat_ctx_t *hashcat_ctx)
|
|
|
|
|
hc_fputc (separator, &fp);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (user_options->dynamic_x == true)
|
|
|
|
|
{
|
|
|
|
|
dynamicx_t *dynamicx = hashes->hash_info[idx]->dynamicx;
|
|
|
|
|
|
|
|
|
|
u32 i;
|
|
|
|
|
|
|
|
|
|
for (i = 0; i < dynamicx->dynamicx_len; i++) hc_fputc (dynamicx->dynamicx_buf[i], &fp);
|
|
|
|
|
|
|
|
|
|
hc_fputc (separator, &fp);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const int out_len = hash_encode (hashcat_ctx->hashconfig, hashcat_ctx->hashes, hashcat_ctx->module_ctx, (char *) out_buf, HCBUFSIZ_LARGE, salt_pos, digest_pos);
|
|
|
|
|
|
|
|
|
|
out_buf[out_len] = 0;
|
|
|
|
@ -1907,7 +1918,7 @@ int hashes_init_stage1 (hashcat_ctx_t *hashcat_ctx)
|
|
|
|
|
event_log_advice (hashcat_ctx, "* Token length exception: %u/%u hashes", hashes->parser_token_length_cnt, hashes->parser_token_length_cnt + hashes->hashes_cnt);
|
|
|
|
|
event_log_advice (hashcat_ctx, " This error happens if the wrong hash type is specified, if the hashes are");
|
|
|
|
|
event_log_advice (hashcat_ctx, " malformed, or if input is otherwise not as expected (for example, if the");
|
|
|
|
|
event_log_advice (hashcat_ctx, " --username option is used but no username is present)");
|
|
|
|
|
event_log_advice (hashcat_ctx, " --username or --dynamic-x option is used but no username or dynamic-tag is present)");
|
|
|
|
|
event_log_advice (hashcat_ctx, NULL);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -2009,7 +2020,7 @@ int hashes_init_stage2 (hashcat_ctx_t *hashcat_ctx)
|
|
|
|
|
|
|
|
|
|
hashinfo_t **hash_info = NULL;
|
|
|
|
|
|
|
|
|
|
if ((user_options->username == true) || (hashconfig->opts_type & OPTS_TYPE_HASH_COPY) || (hashconfig->opts_type & OPTS_TYPE_HASH_SPLIT))
|
|
|
|
|
if ((user_options->username == true) || (user_options->dynamic_x == true) || (hashconfig->opts_type & OPTS_TYPE_HASH_COPY) || (hashconfig->opts_type & OPTS_TYPE_HASH_SPLIT))
|
|
|
|
|
{
|
|
|
|
|
hash_info = (hashinfo_t **) hccalloc (hashes_cnt, sizeof (hashinfo_t *));
|
|
|
|
|
}
|
|
|
|
|