mirror of
https://github.com/hashcat/hashcat.git
synced 2025-05-29 20:28:47 +00:00
Support hashes in outfiles in outfile-check folder without password
This commit is contained in:
parent
b2154b7ed9
commit
3f2346e951
@ -194,9 +194,17 @@ static int outfile_remove (hashcat_ctx_t *hashcat_ctx)
|
|||||||
|
|
||||||
if (line_len == 0) continue;
|
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);
|
char *last_separator = strrchr (line_buf, separator);
|
||||||
|
|
||||||
if (last_separator == NULL) continue; // ??
|
if (last_separator == NULL) break;
|
||||||
|
|
||||||
char *line_pw_buf = last_separator + 1;
|
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;
|
if (status_ctx->shutdown_inner == true) break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
hcfree (line_buf);
|
hcfree (line_buf);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user