1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-13 19:28:56 +00:00

stdout mode: fix pwd copy for optimized kernels

This commit is contained in:
Will Crozier 2022-12-24 11:29:01 +00:00
parent 6d3cf3689f
commit c23ee3331a

View File

@ -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;
for (u32 i = 0; i < pw_idx->cnt; i++)
{
plain_buf[i] = pw[i];
}
if (hashconfig->opti_type & OPTI_TYPE_OPTIMIZED_KERNEL)
{
for (int i = 0; i < 8; i++)
{
plain_buf[i] = pw[i];
}
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);
}