2016-09-08 16:56:33 +00:00
|
|
|
/**
|
2016-09-11 20:20:15 +00:00
|
|
|
* Author......: See docs/credits.txt
|
2016-09-08 16:56:33 +00:00
|
|
|
* License.....: MIT
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _DICTSTAT_H
|
|
|
|
#define _DICTSTAT_H
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <sys/stat.h>
|
|
|
|
|
2016-09-09 08:22:21 +00:00
|
|
|
#include <errno.h>
|
|
|
|
#include <search.h>
|
|
|
|
|
2017-09-20 08:22:18 +00:00
|
|
|
#define MAX_DICTSTAT 100000
|
|
|
|
|
|
|
|
#define DICTSTAT_FILENAME "hashcat.dictstat2"
|
2017-10-01 15:03:16 +00:00
|
|
|
#define DICTSTAT_VERSION (0x6863646963743200 | 0x01)
|
2016-09-08 16:56:33 +00:00
|
|
|
|
|
|
|
int sort_by_dictstat (const void *s1, const void *s2);
|
|
|
|
|
2016-10-06 15:26:15 +00:00
|
|
|
int dictstat_init (hashcat_ctx_t *hashcat_ctx);
|
2016-10-06 14:55:17 +00:00
|
|
|
void dictstat_destroy (hashcat_ctx_t *hashcat_ctx);
|
|
|
|
void dictstat_read (hashcat_ctx_t *hashcat_ctx);
|
|
|
|
int dictstat_write (hashcat_ctx_t *hashcat_ctx);
|
|
|
|
u64 dictstat_find (hashcat_ctx_t *hashcat_ctx, dictstat_t *d);
|
|
|
|
void dictstat_append (hashcat_ctx_t *hashcat_ctx, dictstat_t *d);
|
2016-09-09 08:22:21 +00:00
|
|
|
|
2016-09-08 16:56:33 +00:00
|
|
|
#endif // _DICTSTAT_H
|