mirror of
https://github.com/hashcat/hashcat.git
synced 2025-02-08 21:52:51 +00:00
Fix some output in case wordlist has only size of 1 word
This commit is contained in:
parent
6582a8ae21
commit
68b907a012
@ -405,6 +405,8 @@ u64 count_words (hashcat_ctx_t *hashcat_ctx, FILE *fd, const char *dictfile)
|
|||||||
|
|
||||||
double percent = ((double) comp / (double) d.stat.st_size) * 100;
|
double percent = ((double) comp / (double) d.stat.st_size) * 100;
|
||||||
|
|
||||||
|
if (percent < 100)
|
||||||
|
{
|
||||||
cache_generate_t cache_generate;
|
cache_generate_t cache_generate;
|
||||||
|
|
||||||
cache_generate.dictfile = (char *) dictfile;
|
cache_generate.dictfile = (char *) dictfile;
|
||||||
@ -415,6 +417,7 @@ u64 count_words (hashcat_ctx_t *hashcat_ctx, FILE *fd, const char *dictfile)
|
|||||||
|
|
||||||
EVENT_DATA (EVENT_WORDLIST_CACHE_GENERATE, &cache_generate, sizeof (cache_generate));
|
EVENT_DATA (EVENT_WORDLIST_CACHE_GENERATE, &cache_generate, sizeof (cache_generate));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
cache_generate_t cache_generate;
|
cache_generate_t cache_generate;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user