2016-09-09 21:17:43 +00:00
|
|
|
/**
|
2016-09-11 20:20:15 +00:00
|
|
|
* Author......: See docs/credits.txt
|
2016-09-09 21:17:43 +00:00
|
|
|
* License.....: MIT
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _POTFILE_H
|
|
|
|
#define _POTFILE_H
|
|
|
|
|
|
|
|
#include <stdio.h>
|
2016-09-30 20:52:44 +00:00
|
|
|
#include <stddef.h>
|
2016-09-09 21:17:43 +00:00
|
|
|
#include <errno.h>
|
|
|
|
|
2016-09-10 09:32:26 +00:00
|
|
|
#define INCR_POT 1000
|
|
|
|
|
2016-09-10 10:16:16 +00:00
|
|
|
int sort_by_hash_t_salt (const void *v1, const void *v2);
|
|
|
|
int sort_by_hash_t_salt_hccap (const void *v1, const void *v2);
|
|
|
|
|
2016-10-06 15:26:15 +00:00
|
|
|
int potfile_init (hashcat_ctx_t *hashcat_ctx);
|
2016-10-06 13:40:27 +00:00
|
|
|
int potfile_read_open (hashcat_ctx_t *hashcat_ctx);
|
|
|
|
void potfile_read_close (hashcat_ctx_t *hashcat_ctx);
|
|
|
|
int potfile_write_open (hashcat_ctx_t *hashcat_ctx);
|
|
|
|
void potfile_write_close (hashcat_ctx_t *hashcat_ctx);
|
|
|
|
void potfile_write_append (hashcat_ctx_t *hashcat_ctx, const char *out_buf, u8 *plain_ptr, unsigned int plain_len);
|
2016-10-13 08:07:04 +00:00
|
|
|
int potfile_remove_parse (hashcat_ctx_t *hashcat_ctx);
|
2016-10-06 13:40:27 +00:00
|
|
|
void potfile_destroy (hashcat_ctx_t *hashcat_ctx);
|
2016-10-18 18:42:34 +00:00
|
|
|
int potfile_handle_show (hashcat_ctx_t *hashcat_ctx);
|
|
|
|
int potfile_handle_left (hashcat_ctx_t *hashcat_ctx);
|
2016-09-09 21:17:43 +00:00
|
|
|
|
|
|
|
#endif // _POTFILE_H
|