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:
parent
6d3cf3689f
commit
c23ee3331a
15
src/stdout.c
15
src/stdout.c
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user