mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-27 02:18:21 +00:00
35 lines
735 B
C
35 lines
735 B
C
/**
|
|
* Authors.....: Jens Steube <jens.steube@gmail.com>
|
|
* Gabriele Gristina <matrix@hashcat.net>
|
|
*
|
|
* License.....: MIT
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
#include <errno.h>
|
|
#include <dirent.h>
|
|
#include <unistd.h>
|
|
|
|
#if defined (_POSIX)
|
|
#include <sys/types.h>
|
|
#if defined (__APPLE__)
|
|
#include <mach-o/dyld.h>
|
|
#endif // __APPLE__
|
|
#endif // _POSIX
|
|
|
|
#if defined (_WIN)
|
|
#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);
|
|
|
|
int count_dictionaries (char **dictionary_files);
|
|
|
|
char **scan_directory (const char *path);
|