1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-14 11:48:57 +00:00
stdout mode: fix pwd copy for optimized kernels
This commit is contained in:
Jens Steube 2022-12-26 19:16:45 +01:00 committed by GitHub
commit a931a8af38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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