fixes #963: show all user's hashes if --show/--left was specified

This commit is contained in:
philsmd
2017-02-01 09:00:16 +01:00
parent 934cc6fcec
commit dfd4084b3b
5 changed files with 88 additions and 28 deletions

View File

@@ -26,4 +26,7 @@ void potfile_destroy (hashcat_ctx_t *hashcat_ctx);
int potfile_handle_show (hashcat_ctx_t *hashcat_ctx);
int potfile_handle_left (hashcat_ctx_t *hashcat_ctx);
void potfile_update_hash (hashcat_ctx_t *hashcat_ctx, hash_t *found, char *line_pw_buf, int line_pw_len);
void potfile_update_hashes (hashcat_ctx_t *hashcat_ctx, hash_t *found, hash_t *hashes_buf, u32 hashes_cnt, int (*compar) (const void *, const void *, void *), char *line_pw_buf, int line_pw_len);
#endif // _POTFILE_H

View File

@@ -1244,6 +1244,8 @@ typedef struct potfile_ctx
{
bool enabled;
bool keep_all_usernames;
FILE *fp;
char *filename;