1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-01-22 21:51:07 +00:00

Support hashes in outfiles in outfile-check folder without password

This commit is contained in:
jsteube 2019-01-21 11:00:18 +01:00
parent b2154b7ed9
commit 3f2346e951

View File

@ -194,9 +194,17 @@ static int outfile_remove (hashcat_ctx_t *hashcat_ctx)
if (line_len == 0) continue;
// this fake separator is used to enable loading outfiles without password
line_buf[line_len] = separator;
line_len++;
for (int tries = 0; tries < PW_MAX; tries++)
{
char *last_separator = strrchr (line_buf, separator);
if (last_separator == NULL) continue; // ??
if (last_separator == NULL) break;
char *line_pw_buf = last_separator + 1;
@ -300,6 +308,7 @@ static int outfile_remove (hashcat_ctx_t *hashcat_ctx)
if (status_ctx->shutdown_inner == true) break;
}
}
hcfree (line_buf);