2016-09-06 18:23:26 +02:00
|
|
|
/**
|
|
|
|
* Authors.....: Jens Steube <jens.steube@gmail.com>
|
2016-09-06 22:25:54 +02:00
|
|
|
* Gabriele Gristina <matrix@hashcat.net>
|
|
|
|
*
|
2016-09-06 18:23:26 +02:00
|
|
|
* License.....: MIT
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdio.h>
|
2016-09-07 12:45:08 +02:00
|
|
|
#include <errno.h>
|
|
|
|
#include <dirent.h>
|
2016-09-06 18:23:26 +02:00
|
|
|
#include <unistd.h>
|
|
|
|
|
2016-09-07 22:29:57 +02:00
|
|
|
#if defined (_POSIX)
|
2016-09-06 18:23:26 +02:00
|
|
|
#include <sys/types.h>
|
2016-09-07 22:29:57 +02:00
|
|
|
#if defined (__APPLE__)
|
2016-09-06 22:25:54 +02:00
|
|
|
#include <mach-o/dyld.h>
|
|
|
|
#endif // __APPLE__
|
|
|
|
#endif // _POSIX
|
2016-09-06 18:23:26 +02:00
|
|
|
|
2016-09-07 22:29:57 +02:00
|
|
|
#if defined (_WIN)
|
2016-09-06 18:23:26 +02:00
|
|
|
#include <windows.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define DOT_HASHCAT ".hashcat"
|
|
|
|
#define SESSIONS_FOLDER "sessions"
|
|
|
|
|
|
|
|
char *get_exec_path (void);
|
|
|
|
char *get_install_dir (const char *progname);
|
|
|
|
char *get_profile_dir (const char *homedir);
|
|
|
|
char *get_session_dir (const char *profile_dir);
|
2016-09-07 12:45:08 +02:00
|
|
|
|
|
|
|
int count_dictionaries (char **dictionary_files);
|
|
|
|
|
|
|
|
char **scan_directory (const char *path);
|