mirror of
https://github.com/hashcat/hashcat.git
synced 2024-12-23 07:08:19 +00:00
remove: do not remove hashes unless --remove was specified
This commit is contained in:
parent
49f9a967ec
commit
ae3fb3516b
@ -504,11 +504,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);
|
||||
@ -690,11 +693,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);
|
||||
|
Loading…
Reference in New Issue
Block a user