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:
commit
19a0f96842
@ -383,7 +383,7 @@ int module_hash_encode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
|
|||||||
snprintf (auth_tmp + j, 3, "%02x", ptr[i]);
|
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,
|
SIGNATURE_ZIP2_START,
|
||||||
zip2->type,
|
zip2->type,
|
||||||
zip2->mode,
|
zip2->mode,
|
||||||
|
Loading…
Reference in New Issue
Block a user