From c9caca2b0cfc0229f6f08b6b1985d23e50f1378f Mon Sep 17 00:00:00 2001 From: jsteube Date: Fri, 16 Jun 2017 19:28:55 +0200 Subject: [PATCH] Increase max password length for DCC2 to 32 --- OpenCL/m02100.cl | 11 ++++++----- src/interface.c | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/OpenCL/m02100.cl b/OpenCL/m02100.cl index 9d7c9547e..0249709f8 100644 --- a/OpenCL/m02100.cl +++ b/OpenCL/m02100.cl @@ -479,10 +479,10 @@ __kernel void m02100_init (__global pw_t *pws, __global const kernel_rule_t *rul u32 w1[4]; - w1[0] = 0; - w1[1] = 0; - w1[2] = 0; - w1[3] = 0; + w1[0] = pws[gid].i[ 4]; + w1[1] = pws[gid].i[ 5]; + w1[2] = pws[gid].i[ 6]; + w1[3] = pws[gid].i[ 7]; u32 w2[4]; @@ -527,8 +527,9 @@ __kernel void m02100_init (__global pw_t *pws, __global const kernel_rule_t *rul * generate dcc */ - append_0x80_1x4_S (w0, pw_len); + append_0x80_4x4_S (w0, w1, w2, w3, pw_len); + make_utf16le_S (w1, w2, w3); make_utf16le_S (w0, w0, w1); w3[2] = pw_len * 2 * 8; diff --git a/src/interface.c b/src/interface.c index ee34441f7..2bc8e8b27 100644 --- a/src/interface.c +++ b/src/interface.c @@ -24393,7 +24393,7 @@ int hashconfig_init (hashcat_ctx_t *hashcat_ctx) break; case 1800: hashconfig->pw_max = 16; break; - case 2100: hashconfig->pw_max = 16; + case 2100: hashconfig->pw_max = 32; break; case 3000: hashconfig->pw_max = 7; break;