1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-13 19:28:56 +00:00

Added Remaining digest and salt count to Status output

Added logic to show/hide salt count based on number of salts for remaining digests as well as recovered digests
This commit is contained in:
Chick3nman 2019-07-12 12:54:21 -05:00
parent f7898da386
commit 0b0de6a283

View File

@ -1450,7 +1450,9 @@ void status_display (hashcat_ctx_t *hashcat_ctx)
"Speed.#*.........: %9sH/s",
hashcat_status->speed_sec_all);
}
if (hashcat_status->salts_cnt > 1)
{
event_log_info (hashcat_ctx,
"Recovered........: %d/%d (%.2f%%) Digests, %d/%d (%.2f%%) Salts",
hashcat_status->digests_done,
@ -1459,7 +1461,40 @@ void status_display (hashcat_ctx_t *hashcat_ctx)
hashcat_status->salts_done,
hashcat_status->salts_cnt,
hashcat_status->salts_percent);
}
else
{
event_log_info (hashcat_ctx,
"Recovered........: %d/%d (%.2f%%) Digests",
hashcat_status->digests_done,
hashcat_status->digests_cnt,
hashcat_status->digests_percent);
}
if (hashcat_status->digests_cnt > 1000)
{
int digests_remain = hashcat_status->digests_cnt - hashcat_status->digests_done;
double digests_remain_percent = (double) digests_remain / (double) hashcat_status->digests_cnt * 100;
int salts_remain = hashcat_status->salts_cnt - hashcat_status->salts_done;
double salts_remain_percent = (double) salts_remain / (double) hashcat_status->salts_cnt * 100;
if (hashcat_status->salts_cnt > 1)
{
event_log_info (hashcat_ctx,
"Remaining........: %d (%.2f%%) Digests, %d (%.2f%%) Salts",
digests_remain,
digests_remain_percent,
salts_remain,
salts_remain_percent);
}
else
{
event_log_info (hashcat_ctx,
"Remaining........: %d (%.2f%%) Digests",
digests_remain,
digests_remain_percent);
}
}
if (hashcat_status->digests_cnt > 1000)
{
event_log_info (hashcat_ctx,