stdout mode: fix pwd copy for optimized kernels
pull/3561/head
Jens Steube 1 year ago committed by GitHub
commit a931a8af38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -205,22 +205,17 @@ int process_stdout (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_param,
{
const u32 off = device_param->innerloop_pos + il_pos;
if (hashconfig->opti_type & OPTI_TYPE_OPTIMIZED_KERNEL)
for (u32 i = 0; i < pw_idx->cnt; i++)
{
for (int i = 0; i < 8; i++)
{
plain_buf[i] = pw[i];
}
plain_buf[i] = pw[i];
}
if (hashconfig->opti_type & OPTI_TYPE_OPTIMIZED_KERNEL)
{
plain_len = apply_rules_optimized (straight_ctx->kernel_rules_buf[off].cmds, &plain_buf[0], &plain_buf[4], pw_idx->len);
}
else
{
for (u32 i = 0; i < pw_idx->cnt; i++)
{
plain_buf[i] = pw[i];
}
plain_len = apply_rules (straight_ctx->kernel_rules_buf[off].cmds, plain_buf, pw_idx->len);
}

Loading…
Cancel
Save