1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-13 19:28:56 +00:00

Added old potfile detection, show warning message

This commit is contained in:
jsteube 2016-12-31 13:52:35 +01:00
parent 8a47c32537
commit a4f40ac226
2 changed files with 21 additions and 0 deletions

View File

@ -42,6 +42,7 @@
- Hash Parser: Improved error detection of invalid hex characters where hex character are expected
- OpenCL Runtime: Updated AMDGPU-Pro driver version check, do warn if version 16.50 is detected which is known to be broken
- Potfile: In v3.10 already, the default potfile suffix changed but the note about was missing. The "hashcat.pot" became "hashcat.potfile"
- Potfile: Added old potfile detection, show warning message
- Sanity: Added sanity check to disallow --speed-only in combination with -i
- Threads: Replaced all calls to ctime() with ctime_r() to ensure thread safety
- Threads: Replaced all calls to strerror() with %m printf() GNU extension to ensure thread safety

View File

@ -125,6 +125,26 @@ int potfile_init (hashcat_ctx_t *hashcat_ctx)
potfile_ctx->tmp_buf = tmp_buf;
// old potfile detection
if (user_options->potfile_path == NULL)
{
char *potfile_old;
hc_asprintf (&potfile_old, "%s/hashcat.pot", folder_config->profile_dir);
hc_stat_t st;
if (hc_stat (potfile_old, &st) == 0)
{
event_log_warning (hashcat_ctx, "Old potfile detected: %s", potfile_old);
event_log_warning (hashcat_ctx, "New potfile is: %s ", potfile_ctx->filename);
event_log_warning (hashcat_ctx, "");
}
hcfree (potfile_old);
}
return 0;
}