1
mirror of https://github.com/hashcat/hashcat synced 2024-11-17 08:28:39 +01:00
hashcat/include/folder.h

39 lines
909 B
C
Raw Normal View History

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