From 7b3ab9dbcbd7fe611d9299a83af748a3f982bf68 Mon Sep 17 00:00:00 2001 From: philsmd Date: Fri, 15 Feb 2019 18:49:16 +0100 Subject: [PATCH] fixes 7-Zip parser limits for encrypted/decrypted data lengths --- docs/changes.txt | 1 + src/modules/module_11600.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/changes.txt b/docs/changes.txt index 04d1266e4..27549e59a 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -15,6 +15,7 @@ - Fixed output of IKE PSK (mode 5300 and 5400) hashes to have separators at right position - Fixed the validation of the --brain-client-features command line argument (only values 1, 2 or 3 are allowed) - Fixed cracking of Cisco-PIX and Cisco-ASA MD5 passwords in mask-attack mode if mask > length 16 +- Fixed the 7-Zip parser to allow the entire supported range of encrypted and decrypted data lengths ## ## Technical diff --git a/src/modules/module_11600.c b/src/modules/module_11600.c index 967b3a068..9958f56f1 100644 --- a/src/modules/module_11600.c +++ b/src/modules/module_11600.c @@ -341,13 +341,13 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE token.sep[8] = '$'; token.len_min[8] = 1; - token.len_max[8] = 4; + token.len_max[8] = 6; token.attr[8] = TOKEN_ATTR_VERIFY_LENGTH | TOKEN_ATTR_VERIFY_DIGIT; token.sep[9] = '$'; token.len_min[9] = 1; - token.len_max[9] = 4; + token.len_max[9] = 6; token.attr[9] = TOKEN_ATTR_VERIFY_LENGTH | TOKEN_ATTR_VERIFY_DIGIT;