mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-26 01:50:10 +00:00
Use a fixed path for the potfile rather than session depending
This commit is contained in:
parent
3cd83a4ab9
commit
09e971c938
@ -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 LOOPBACK_FILE "hashcat.loopback"
|
||||||
|
|
||||||
|
#define DICTSTAT_FILENAME "hashcat.dictstat"
|
||||||
|
#define POTFILE_FILENAME "hashcat.pot"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* types
|
* types
|
||||||
*/
|
*/
|
||||||
|
@ -10427,7 +10427,7 @@ int main (int argc, char **argv)
|
|||||||
|
|
||||||
if (keyspace == 0)
|
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");
|
dictstat_fp = fopen (dictstat, "rb");
|
||||||
|
|
||||||
@ -10483,7 +10483,7 @@ int main (int argc, char **argv)
|
|||||||
|
|
||||||
char potfile[256] = { 0 };
|
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;
|
data.pot_fp = NULL;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user