Keep output of --show and --left in the original ordering of the input hash file

This commit is contained in:
Jens Steube
2019-11-05 13:49:22 +01:00
parent 30f0745252
commit 6adc217bae
4 changed files with 98 additions and 5 deletions
+1
View File
@@ -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
+9
View File
@@ -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;