From 7d6c0d746cd19f3b4cd873df46d3ee7035304ae4 Mon Sep 17 00:00:00 2001 From: philsmd <921533+philsmd@users.noreply.github.com> Date: Thu, 22 Mar 2018 09:52:40 +0100 Subject: [PATCH] 7-Zip: increase the crc length to parse Similar to the increase done with this commit: https://github.com/hashcat/hashcat/commit/d38240080538882ebfa17c4977621daaa41d9083 we need to increase the crc length again such that hashcat can load hashes corresponding to some very highly compressed files within the 7-Zip archive. For reference, this problem was first reported here: https://hashcat.net/forum/thread-7378.html : as you can see ``` ...$1059026$5d00001000): Salt-value exception ``` The value 1059026 is about 1MB of decrypted and decompressed data that needs to be checksummed. --- src/interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interface.c b/src/interface.c index f8ebc578e..6d03e4192 100644 --- a/src/interface.c +++ b/src/interface.c @@ -12281,7 +12281,7 @@ int seven_zip_parse_hash (u8 *input_buf, u32 input_len, hash_t *hash_buf, MAYBE_ if (is_compressed == true) { - if (crc_len_len > 6) return (PARSER_SALT_VALUE); + if (crc_len_len > 7) return (PARSER_SALT_VALUE); if (coder_attributes_len > 10) return (PARSER_SALT_VALUE);