1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-24 00:51:05 +00:00

This patch should remove a bottleneck causing slow writing performance of hash files which can be annoying when using --remove in combination with large hashlists

This commit is contained in:
Jens Steube 2016-06-15 12:10:09 +02:00
parent 3461673b26
commit 90181e565a

View File

@ -2350,8 +2350,6 @@ static void save_hash ()
if (data.hash_mode != 2500) if (data.hash_mode != 2500)
{ {
char out_buf[HCBUFSIZ] = { 0 };
if (data.username == 1) if (data.username == 1)
{ {
user_t *user = data.hash_info[idx]->user; user_t *user = data.hash_info[idx]->user;
@ -2363,13 +2361,24 @@ static void save_hash ()
fputc (separator, fp); fputc (separator, fp);
} }
char out_buf[HCBUFSIZ]; // scratch buffer
out_buf[0] = 0;
ascii_digest (out_buf, salt_pos, digest_pos); ascii_digest (out_buf, salt_pos, digest_pos);
fputs (out_buf, fp); fputs (out_buf, fp);
if (fp == stdout)
{
log_out (fp, ""); log_out (fp, "");
} }
else else
{
fputc ('\n', fp);
}
}
else
{ {
hccap_t hccap; hccap_t hccap;