mirror of
https://github.com/hashcat/hashcat.git
synced 2025-07-06 14:52:35 +00:00
Merge cd5dc9e3ce
into 6716447dfc
This commit is contained in:
commit
efe63c6793
14
src/rp.c
14
src/rp.c
@ -906,6 +906,7 @@ int kernel_rules_load (hashcat_ctx_t *hashcat_ctx, kernel_rule_t **out_buf, u32
|
|||||||
}
|
}
|
||||||
|
|
||||||
u32 invalid_cnt = 0;
|
u32 invalid_cnt = 0;
|
||||||
|
u32 valid_cnt = 0;
|
||||||
|
|
||||||
for (u32 i = 0; i < kernel_rules_cnt; i++)
|
for (u32 i = 0; i < kernel_rules_cnt; i++)
|
||||||
{
|
{
|
||||||
@ -924,18 +925,27 @@ int kernel_rules_load (hashcat_ctx_t *hashcat_ctx, kernel_rule_t **out_buf, u32
|
|||||||
{
|
{
|
||||||
if (out_pos == RULES_MAX - 1)
|
if (out_pos == RULES_MAX - 1)
|
||||||
{
|
{
|
||||||
event_log_warning (hashcat_ctx, "Maximum functions per rule exceeded during chaining of rules, skipping...");
|
|
||||||
|
|
||||||
invalid_cnt++;
|
invalid_cnt++;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
valid_cnt++;
|
||||||
|
}
|
||||||
|
|
||||||
out->cmds[out_pos] = in->cmds[in_pos];
|
out->cmds[out_pos] = in->cmds[in_pos];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (invalid_cnt > 0)
|
||||||
|
{
|
||||||
|
event_log_warning (hashcat_ctx, "Maximum functions per rule exceeded during chaining of rules.");
|
||||||
|
event_log_warning (hashcat_ctx, "Skipped %u rule chains, %u valid chains remain.", invalid_cnt, valid_cnt);
|
||||||
|
event_log_warning (hashcat_ctx, NULL);
|
||||||
|
}
|
||||||
|
|
||||||
hcfree (repeats);
|
hcfree (repeats);
|
||||||
|
|
||||||
kernel_rules_cnt -= invalid_cnt;
|
kernel_rules_cnt -= invalid_cnt;
|
||||||
|
Loading…
Reference in New Issue
Block a user