mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-27 02:18:21 +00:00
31 lines
1.1 KiB
C
31 lines
1.1 KiB
C
/**
|
|
* Author......: See docs/credits.txt
|
|
* License.....: MIT
|
|
*/
|
|
|
|
#ifndef _POTFILE_H
|
|
#define _POTFILE_H
|
|
|
|
#include <stdio.h>
|
|
#include <stddef.h>
|
|
#include <errno.h>
|
|
#include <search.h>
|
|
|
|
#define INCR_POT 1000
|
|
|
|
int potfile_init (hashcat_ctx_t *hashcat_ctx);
|
|
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);
|
|
int potfile_remove_parse (hashcat_ctx_t *hashcat_ctx);
|
|
void potfile_destroy (hashcat_ctx_t *hashcat_ctx);
|
|
int potfile_handle_show (hashcat_ctx_t *hashcat_ctx);
|
|
int potfile_handle_left (hashcat_ctx_t *hashcat_ctx);
|
|
|
|
void potfile_update_hash (hashcat_ctx_t *hashcat_ctx, hash_t *found, char *line_pw_buf, int line_pw_len);
|
|
void potfile_update_hashes (hashcat_ctx_t *hashcat_ctx, hash_t *search, char *line_pw_buf, int line_pw_len, pot_tree_entry_t *tree);
|
|
|
|
#endif // _POTFILE_H
|