Keep output of --show and --left in the original ordering of the input hash file
This commit is contained in:
@@ -30,5 +30,6 @@ void potfile_update_hashes (hashcat_ctx_t *hashcat_ctx, hash_t *hash_buf, cha
|
||||
void pot_tree_destroy (pot_tree_entry_t *tree);
|
||||
|
||||
int sort_pot_tree_by_hash (const void *v1, const void *v2);
|
||||
int sort_pot_orig_line (const void *v1, const void *v2);
|
||||
|
||||
#endif // _POTFILE_H
|
||||
|
||||
@@ -834,6 +834,7 @@ typedef struct hash
|
||||
hashinfo_t *hash_info;
|
||||
char *pw_buf;
|
||||
int pw_len;
|
||||
u64 orig_line_pos;
|
||||
|
||||
} hash_t;
|
||||
|
||||
@@ -1695,6 +1696,14 @@ typedef struct pot_tree_entry
|
||||
|
||||
} pot_tree_entry_t;
|
||||
|
||||
typedef struct pot_orig_line_entry
|
||||
{
|
||||
u8 *hash_buf;
|
||||
int hash_len;
|
||||
int line_pos;
|
||||
|
||||
} pot_orig_line_entry_t;
|
||||
|
||||
typedef struct restore_data
|
||||
{
|
||||
int version;
|
||||
|
||||
Reference in New Issue
Block a user