From 09e971c9383d16965cc3e1f4c080fc14df0fdb3c Mon Sep 17 00:00:00 2001 From: Jens Steube Date: Sun, 3 Apr 2016 15:46:05 +0200 Subject: [PATCH] Use a fixed path for the potfile rather than session depending --- include/shared.h | 3 +++ src/oclHashcat.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/include/shared.h b/include/shared.h index 92bee2d..7435896 100644 --- a/include/shared.h +++ b/include/shared.h @@ -161,6 +161,9 @@ static inline int CPU_ISSET (int num, cpu_set_t *cs) { return (cs->count & (1 < #define LOOPBACK_FILE "hashcat.loopback" +#define DICTSTAT_FILENAME "hashcat.dictstat" +#define POTFILE_FILENAME "hashcat.pot" + /** * types */ diff --git a/src/oclHashcat.c b/src/oclHashcat.c index 6ec6f46..8fa81ce 100644 --- a/src/oclHashcat.c +++ b/src/oclHashcat.c @@ -10427,7 +10427,7 @@ int main (int argc, char **argv) if (keyspace == 0) { - snprintf (dictstat, sizeof (dictstat) - 1, "%s/hashcat.dictstat", profile_dir); + snprintf (dictstat, sizeof (dictstat) - 1, "%s/%s", profile_dir, DICTSTAT_FILENAME); dictstat_fp = fopen (dictstat, "rb"); @@ -10483,7 +10483,7 @@ int main (int argc, char **argv) char potfile[256] = { 0 }; - snprintf (potfile, sizeof (potfile) - 1, "%s/%s.pot", session_dir, session); + snprintf (potfile, sizeof (potfile) - 1, "%s/%s", profile_dir, POTFILE_FILENAME); data.pot_fp = NULL; -- 2.25.1