1
mirror of https://github.com/hashcat/hashcat synced 2024-12-01 20:18:12 +01:00
This commit is contained in:
jsteube 2017-03-13 23:00:33 +01:00
commit e9d5b6d44d

View File

@ -509,11 +509,14 @@ static int outer_loop (hashcat_ctx_t *hashcat_ctx)
if (status_ctx->devices_status == STATUS_CRACKED)
{
if (hashes->digests_saved != hashes->digests_done)
if (user_options->remove == true)
{
const int rc = save_hash (hashcat_ctx);
if (hashes->digests_saved != hashes->digests_done)
{
const int rc = save_hash (hashcat_ctx);
if (rc == -1) return -1;
if (rc == -1) return -1;
}
}
EVENT (EVENT_POTFILE_ALL_CRACKED);
@ -695,11 +698,14 @@ static int outer_loop (hashcat_ctx_t *hashcat_ctx)
if (status_ctx->devices_status == STATUS_CRACKED)
{
if (hashes->digests_saved != hashes->digests_done)
if (user_options->remove == true)
{
const int rc = save_hash (hashcat_ctx);
if (hashes->digests_saved != hashes->digests_done)
{
const int rc = save_hash (hashcat_ctx);
if (rc == -1) return -1;
if (rc == -1) return -1;
}
}
EVENT (EVENT_WEAK_HASH_ALL_CRACKED);