2016-09-08 14:32:24 +00:00
|
|
|
/**
|
2016-09-11 20:20:15 +00:00
|
|
|
* Author......: See docs/credits.txt
|
2016-09-08 14:32:24 +00:00
|
|
|
* License.....: MIT
|
|
|
|
*/
|
|
|
|
|
2023-01-30 14:41:12 +00:00
|
|
|
#ifndef HC_WORDLIST_H
|
|
|
|
#define HC_WORDLIST_H
|
2016-09-08 14:32:24 +00:00
|
|
|
|
2016-09-28 20:52:42 +00:00
|
|
|
#include <time.h>
|
|
|
|
#include <inttypes.h>
|
|
|
|
|
2018-02-08 18:13:29 +00:00
|
|
|
size_t convert_from_hex (hashcat_ctx_t *hashcat_ctx, char *line_buf, const size_t line_len);
|
2016-09-08 14:32:24 +00:00
|
|
|
|
2018-09-01 10:31:17 +00:00
|
|
|
void pw_pre_add (hc_device_param_t *device_param, const u8 *pw_buf, const int pw_len, const u8 *base_buf, const int base_len, const int rule_idx);
|
|
|
|
void pw_base_add (hc_device_param_t *device_param, pw_pre_t *pw_pre);
|
|
|
|
void pw_add (hc_device_param_t *device_param, const u8 *pw_buf, const int pw_len);
|
2016-09-08 14:32:24 +00:00
|
|
|
|
2016-09-30 14:43:59 +00:00
|
|
|
void get_next_word_lm (char *buf, u64 sz, u64 *len, u64 *off);
|
|
|
|
void get_next_word_uc (char *buf, u64 sz, u64 *len, u64 *off);
|
|
|
|
void get_next_word_std (char *buf, u64 sz, u64 *len, u64 *off);
|
2016-09-08 14:32:24 +00:00
|
|
|
|
2019-06-26 17:06:46 +00:00
|
|
|
void get_next_word (hashcat_ctx_t *hashcat_ctx, HCFILE *fp, char **out_buf, u32 *out_len);
|
|
|
|
int load_segment (hashcat_ctx_t *hashcat_ctx, HCFILE *fp);
|
|
|
|
int count_words (hashcat_ctx_t *hashcat_ctx, HCFILE *fp, const char *dictfile, u64 *result);
|
2019-06-21 19:56:38 +00:00
|
|
|
|
2016-10-13 08:07:04 +00:00
|
|
|
int wl_data_init (hashcat_ctx_t *hashcat_ctx);
|
2016-10-06 14:16:56 +00:00
|
|
|
void wl_data_destroy (hashcat_ctx_t *hashcat_ctx);
|
2016-09-22 09:35:08 +00:00
|
|
|
|
2023-01-30 14:41:12 +00:00
|
|
|
#endif // HC_WORDLIST_H
|