1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-07-22 06:28:16 +00:00

Merge pull request #4073 from ventaquil/winzip-hash-encode

Fix hash encoding in WinZip format
This commit is contained in:
hashcat-bot 2025-07-12 15:39:39 +02:00 committed by GitHub
commit 19a0f96842
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -383,7 +383,7 @@ int module_hash_encode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
snprintf (auth_tmp + j, 3, "%02x", ptr[i]);
}
const int line_len = snprintf (line_buf, line_size, "%s*%u*%u*%u*%s*%x*%x*%s*%s*%s",
const int line_len = snprintf (line_buf, line_size, "%s*%u*%u*%u*%s*%04x*%x*%s*%s*%s",
SIGNATURE_ZIP2_START,
zip2->type,
zip2->mode,