1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-25 17:38:23 +00:00

Fix md5crypt encoder

This commit is contained in:
jsteube 2019-01-12 22:18:49 +01:00
parent 3c794b370b
commit 3adec86fcc

View File

@ -220,11 +220,11 @@ int module_hash_encode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
if (salt->salt_iter == ROUNDS_MD5CRYPT)
{
line_len = snprintf (line_buf, line_len, "$1$%s$%s", (char *) salt->salt_buf, tmp);
line_len = snprintf (line_buf, line_size, "$1$%s$%s", (char *) salt->salt_buf, tmp);
}
else
{
line_len = snprintf (line_buf, line_len, "$1$rounds=%u$%s$%s", salt->salt_iter, (char *) salt->salt_buf, tmp);
line_len = snprintf (line_buf, line_size, "$1$rounds=%u$%s$%s", salt->salt_iter, (char *) salt->salt_buf, tmp);
}
return line_len;