2016-09-09 23:17:43 +02:00
|
|
|
/**
|
2016-09-11 22:20:15 +02:00
|
|
|
* Author......: See docs/credits.txt
|
2016-09-09 23:17:43 +02:00
|
|
|
* License.....: MIT
|
|
|
|
*/
|
|
|
|
|
2023-01-30 15:41:12 +01:00
|
|
|
#ifndef HC_POTFILE_H
|
|
|
|
#define HC_POTFILE_H
|
2016-09-09 23:17:43 +02:00
|
|
|
|
|
|
|
#include <stdio.h>
|
2016-09-30 22:52:44 +02:00
|
|
|
#include <stddef.h>
|
2016-09-09 23:17:43 +02:00
|
|
|
#include <errno.h>
|
2017-10-17 12:08:17 +02:00
|
|
|
#include <search.h>
|
2016-09-09 23:17:43 +02:00
|
|
|
|
2016-09-10 11:32:26 +02:00
|
|
|
#define INCR_POT 1000
|
|
|
|
|
2016-10-06 17:26:15 +02:00
|
|
|
int potfile_init (hashcat_ctx_t *hashcat_ctx);
|
2016-10-06 15:40:27 +02: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);
|
2019-01-11 23:11:56 +01:00
|
|
|
void potfile_write_append (hashcat_ctx_t *hashcat_ctx, const char *out_buf, const int out_len, u8 *plain_ptr, unsigned int plain_len);
|
2016-10-13 10:07:04 +02:00
|
|
|
int potfile_remove_parse (hashcat_ctx_t *hashcat_ctx);
|
2016-10-06 15:40:27 +02:00
|
|
|
void potfile_destroy (hashcat_ctx_t *hashcat_ctx);
|
2016-10-18 20:42:34 +02:00
|
|
|
int potfile_handle_show (hashcat_ctx_t *hashcat_ctx);
|
|
|
|
int potfile_handle_left (hashcat_ctx_t *hashcat_ctx);
|
2016-09-09 23:17:43 +02:00
|
|
|
|
2017-10-17 12:08:17 +02:00
|
|
|
void potfile_update_hash (hashcat_ctx_t *hashcat_ctx, hash_t *found, char *line_pw_buf, int line_pw_len);
|
2019-08-04 03:38:24 +02:00
|
|
|
void potfile_update_hashes (hashcat_ctx_t *hashcat_ctx, hash_t *hash_buf, char *line_pw_buf, int line_pw_len, pot_tree_entry_t *tree);
|
2017-02-01 09:00:16 +01:00
|
|
|
|
2017-10-25 12:31:17 +02:00
|
|
|
void pot_tree_destroy (pot_tree_entry_t *tree);
|
|
|
|
|
|
|
|
int sort_pot_tree_by_hash (const void *v1, const void *v2);
|
2019-11-05 13:49:22 +01:00
|
|
|
int sort_pot_orig_line (const void *v1, const void *v2);
|
2017-10-25 12:31:17 +02:00
|
|
|
|
2023-01-30 15:41:12 +01:00
|
|
|
#endif // HC_POTFILE_H
|