Compare commits

...

5 Commits

@ -8029,7 +8029,7 @@ int backend_ctx_devices_init (hashcat_ctx_t *hashcat_ctx, const int comptime)
device_param->device_available_mem = device_param->device_global_mem - MAX_ALLOC_CHECKS_SIZE;
if (device_param->opencl_device_type & CL_DEVICE_TYPE_GPU)
if ((device_param->opencl_device_type & CL_DEVICE_TYPE_GPU) && ((device_param->opencl_platform_vendor_id != VENDOR_ID_INTEL_SDK) || (device_param->device_host_unified_memory == 0)))
{
// OK, so the problem here is the following:
// There's just CL_DEVICE_GLOBAL_MEM_SIZE to ask OpenCL about the total memory on the device,

@ -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 *));
}

Loading…
Cancel
Save