1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-22 08:08:10 +00:00

allow 04 and 05 in zlib header check

This commit is contained in:
philsmd 2019-12-11 15:44:32 +01:00 committed by GitHub
parent 3119914e18
commit d0a59db595
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -513,7 +513,9 @@ KERNEL_FQ void m21800_comp (KERN_ATTR_TMPS_ESALT (electrum_tmp_t, electrum_t))
// early reject
if ((buf[0] & 0x0007ffff) != 0x00059c78) return;
u32 zlib_header = buf[0] & 0x0007ffff;
if ((zlib_header != 0x00049c78) && (zlib_header != 0x00059c78)) return;
buf[1] ^= iv[1];
buf[2] ^= iv[2];