diff --git a/src/dictstat.c b/src/dictstat.c index 0fbe1961f..b240da726 100644 --- a/src/dictstat.c +++ b/src/dictstat.c @@ -48,7 +48,7 @@ int dictstat_init (hashcat_ctx_t *hashcat_ctx) snprintf (dictstat_ctx->filename, HCBUFSIZ_TINY - 1, "%s/hashcat.dictstat", folder_config->profile_dir); - FILE *fp = fopen (dictstat_ctx->filename, "wb"); + FILE *fp = fopen (dictstat_ctx->filename, "ab"); if (fp == NULL) { diff --git a/src/logfile.c b/src/logfile.c index cac3fc743..51514ab45 100644 --- a/src/logfile.c +++ b/src/logfile.c @@ -86,7 +86,7 @@ int logfile_init (hashcat_ctx_t *hashcat_ctx) logfile_ctx->enabled = true; - FILE *fp = fopen (logfile_ctx->logfile, "wb"); + FILE *fp = fopen (logfile_ctx->logfile, "ab"); if (fp == NULL) {