mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-22 08:08:10 +00:00
Merge pull request #3553 from willcrozi/bugfix-stdout-rules-#3537
stdout mode: fix pwd copy for optimized kernels
This commit is contained in:
commit
a931a8af38
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