1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-15 12:29:35 +00:00

In case all hashes were cracking using hints from potfile abort and inform user

This commit is contained in:
jsteube 2016-10-03 20:46:42 +02:00
parent d80653b014
commit d38cd459c4

View File

@ -959,6 +959,29 @@ static int outer_loop (hashcat_ctx_t *hashcat_ctx)
if (rc_hashes_init_stage2 == -1) return -1;
/**
* load hashes, stage 2: at this point we can check for all hashes cracked (by potfile)
*/
if (status_ctx->devices_status == STATUS_CRACKED)
{
if (user_options->quiet == false)
{
log_info ("INFO: All hashes found in potfile! You can use --show to display them.");
log_info ("");
log_info ("INFO: No more hashes left to crack, exiting...");
log_info ("");
}
hashes_destroy (hashes);
hashconfig_destroy (hashconfig);
potfile_destroy (potfile_ctx);
return 0;
}
/**
* load hashes, stage 3, automatic Optimizers
*/