Fixes #2255: new --outfile-format with support for timestamps
This commit is contained in:
@@ -14,6 +14,8 @@ int build_plain (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_para
|
||||
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);
|
||||
|
||||
u32 outfile_format_parse (const char *format_string);
|
||||
|
||||
int outfile_init (hashcat_ctx_t *hashcat_ctx);
|
||||
void outfile_destroy (hashcat_ctx_t *hashcat_ctx);
|
||||
int outfile_write_open (hashcat_ctx_t *hashcat_ctx);
|
||||
|
||||
+4
-2
@@ -485,7 +485,9 @@ typedef enum outfile_fmt
|
||||
OUTFILE_FMT_HASH = (1 << 0),
|
||||
OUTFILE_FMT_PLAIN = (1 << 1),
|
||||
OUTFILE_FMT_HEXPLAIN = (1 << 2),
|
||||
OUTFILE_FMT_CRACKPOS = (1 << 3)
|
||||
OUTFILE_FMT_CRACKPOS = (1 << 3),
|
||||
OUTFILE_FMT_TIME_ABS = (1 << 4),
|
||||
OUTFILE_FMT_TIME_REL = (1 << 5)
|
||||
|
||||
} outfile_fmt_t;
|
||||
|
||||
@@ -1923,6 +1925,7 @@ typedef struct user_options
|
||||
char *opencl_device_types;
|
||||
char *outfile;
|
||||
char *outfile_check_dir;
|
||||
char *outfile_format;
|
||||
char *potfile_path;
|
||||
char *restore_file_path;
|
||||
char **rp_files;
|
||||
@@ -1962,7 +1965,6 @@ typedef struct user_options
|
||||
u32 spin_damp;
|
||||
u32 backend_vector_width;
|
||||
u32 outfile_check_timer;
|
||||
u32 outfile_format;
|
||||
u32 remove_timer;
|
||||
u32 restore_timer;
|
||||
u32 rp_files_cnt;
|
||||
|
||||
Reference in New Issue
Block a user