2016-09-10 15:35:58 +00:00
|
|
|
/**
|
2016-09-11 20:20:15 +00:00
|
|
|
* Author......: See docs/credits.txt
|
2016-09-10 15:35:58 +00:00
|
|
|
* License.....: MIT
|
|
|
|
*/
|
|
|
|
|
2023-01-30 14:41:12 +00:00
|
|
|
#ifndef HC_OUTFILE_H
|
|
|
|
#define HC_OUTFILE_H
|
2016-09-10 15:35:58 +00:00
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <time.h>
|
|
|
|
#include <inttypes.h>
|
|
|
|
|
2016-10-15 17:30:57 +00:00
|
|
|
int build_plain (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_param, plain_t *plain, u32 *plain_buf, int *out_len);
|
|
|
|
int build_crackpos (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_param, plain_t *plain, u64 *out_pos);
|
|
|
|
int build_debugdata (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_param, plain_t *plain, u8 *debug_rule_buf, int *debug_rule_len, u8 *debug_plain_ptr, int *debug_plain_len);
|
2016-10-04 16:30:00 +00:00
|
|
|
|
2020-01-23 08:03:22 +00:00
|
|
|
u32 outfile_format_parse (const char *format_string);
|
|
|
|
|
2016-10-06 15:26:15 +00:00
|
|
|
int outfile_init (hashcat_ctx_t *hashcat_ctx);
|
2016-10-06 13:40:27 +00:00
|
|
|
void outfile_destroy (hashcat_ctx_t *hashcat_ctx);
|
2016-10-06 15:26:15 +00:00
|
|
|
int outfile_write_open (hashcat_ctx_t *hashcat_ctx);
|
2016-10-06 13:40:27 +00:00
|
|
|
void outfile_write_close (hashcat_ctx_t *hashcat_ctx);
|
2021-06-30 19:01:55 +00:00
|
|
|
int outfile_write (hashcat_ctx_t *hashcat_ctx, const char *out_buf, const int out_len, const unsigned char *plain_ptr, const u32 plain_len, const u64 crackpos, const unsigned char *username, const u32 user_len, const bool print_eol, char *tmp_buf);
|
2016-09-10 15:35:58 +00:00
|
|
|
|
2023-01-30 14:41:12 +00:00
|
|
|
#endif // HC_OUTFILE_H
|