1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-12-16 11:48:15 +00:00
hashcat/include/folder.h

45 lines
1000 B
C
Raw Normal View History

/**
* Author......: See docs/credits.txt
* License.....: MIT
*/
#include <stdio.h>
#include <stdlib.h>
2016-09-07 10:45:08 +00:00
#include <errno.h>
#include <dirent.h>
#include <unistd.h>
#include <limits.h>
#if defined (_POSIX)
#include <sys/types.h>
#include <pwd.h>
#endif
#if defined (__APPLE__)
2016-09-06 20:25:54 +00:00
#include <mach-o/dyld.h>
#endif // __APPLE__
2016-09-21 21:06:11 +00:00
#if defined (_WIN)
#include <windows.h>
2016-10-01 11:51:06 +00:00
#include <direct.h>
#endif
#define DOT_HASHCAT ".hashcat"
#define SESSIONS_FOLDER "sessions"
2016-09-11 08:53:29 +00:00
int sort_by_stringptr (const void *p1, const void *p2);
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 10:45:08 +00:00
int count_dictionaries (char **dictionary_files);
char **scan_directory (const char *path);
2016-09-21 21:06:11 +00:00
2016-10-06 14:17:29 +00:00
int folder_config_init (hashcat_ctx_t *hashcat_ctx, const char *install_folder, const char *shared_folder);
void folder_config_destroy (hashcat_ctx_t *hashcat_ctx);
2016-10-01 11:51:06 +00:00
int hc_mkdir (const char *name, int mode);