From 79bb69bcd4b5a7031f45f094a702b65a9dce82a5 Mon Sep 17 00:00:00 2001 From: jsteube Date: Mon, 17 Jul 2017 15:00:28 +0200 Subject: [PATCH] Assign more official pw_min and pw_max values to related modes --- src/interface.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/interface.c b/src/interface.c index fad96b1ef..a2ea46b22 100644 --- a/src/interface.c +++ b/src/interface.c @@ -24546,7 +24546,11 @@ int hashconfig_init (hashcat_ctx_t *hashcat_ctx) if (user_options->length_limit_disable == true) { - // nothing to do + switch (hashconfig->hash_mode) + { + case 10700: hashconfig->pw_max = 127; // https://www.pdflib.com/knowledge-base/pdf-password-security/encryption/ + break; + } } else { @@ -24641,8 +24645,11 @@ int hashconfig_init (hashcat_ctx_t *hashcat_ctx) case 9810: hashconfig->pw_max = 5; break; // Underlaying RC4-40 max case 10000: hashconfig->pw_max = PW_MAX; break; case 10300: hashconfig->pw_max = 40; break; // https://www.daniel-berlin.de/security/sap-sec/password-hash-algorithms/ + case 10400: hashconfig->pw_max = 32; break; // https://www.pdflib.com/knowledge-base/pdf-password-security/encryption/ case 10410: hashconfig->pw_max = 5; break; // Underlaying RC4-40 max - case 10500: hashconfig->pw_max = 32; break; // PDF 1.4 - 1.6 (Acrobat 5 - 8) max + case 10420: hashconfig->pw_max = 32; break; // https://www.pdflib.com/knowledge-base/pdf-password-security/encryption/ + case 10500: hashconfig->pw_max = 32; break; // https://www.pdflib.com/knowledge-base/pdf-password-security/encryption/ + case 10600: hashconfig->pw_max = 127; break; // https://www.pdflib.com/knowledge-base/pdf-password-security/encryption/ case 10900: hashconfig->pw_max = PW_MAX; break; case 11300: hashconfig->pw_max = PW_MAX; break; case 11600: hashconfig->pw_max = PW_MAX; break;