1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-08-01 11:28:08 +00:00

remove: do not remove hashes unless --remove was specified

This commit is contained in:
philsmd 2017-03-13 22:42:51 +01:00
parent 49f9a967ec
commit ae3fb3516b
No known key found for this signature in database
GPG Key ID: 4F25D016D9D6A8AF

View File

@ -503,6 +503,8 @@ static int outer_loop (hashcat_ctx_t *hashcat_ctx)
*/
if (status_ctx->devices_status == STATUS_CRACKED)
{
if (user_options->remove == true)
{
if (hashes->digests_saved != hashes->digests_done)
{
@ -510,6 +512,7 @@ static int outer_loop (hashcat_ctx_t *hashcat_ctx)
if (rc == -1) return -1;
}
}
EVENT (EVENT_POTFILE_ALL_CRACKED);
@ -689,6 +692,8 @@ static int outer_loop (hashcat_ctx_t *hashcat_ctx)
*/
if (status_ctx->devices_status == STATUS_CRACKED)
{
if (user_options->remove == true)
{
if (hashes->digests_saved != hashes->digests_done)
{
@ -696,6 +701,7 @@ static int outer_loop (hashcat_ctx_t *hashcat_ctx)
if (rc == -1) return -1;
}
}
EVENT (EVENT_WEAK_HASH_ALL_CRACKED);