Fixed an invalid progress value in status view if words from the base wordlist get rejected because of length

This commit is contained in:
jsteube
2017-08-19 17:02:05 +02:00
parent 319799bbbf
commit 0846b33f52
2 changed files with 12 additions and 4 deletions
+8 -1
View File
@@ -563,7 +563,14 @@ static int calc (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_param)
for (u32 salt_pos = 0; salt_pos < hashes->salts_cnt; salt_pos++)
{
status_ctx->words_progress_rejected[salt_pos] += words_extra_total * straight_ctx->kernel_rules_cnt;
if (attack_kern == ATTACK_KERN_STRAIGHT)
{
status_ctx->words_progress_rejected[salt_pos] += words_extra_total * straight_ctx->kernel_rules_cnt;
}
else if (attack_kern == ATTACK_KERN_COMBI)
{
status_ctx->words_progress_rejected[salt_pos] += words_extra_total * combinator_ctx->combs_cnt;
}
}
hc_thread_mutex_unlock (status_ctx->mux_counter);