1 /**
2 * Author......: See docs/credits.txt
3 * License.....: MIT
4 */
5
6 #include "common.h"
7 #include "types.h"
8 #include "modules.h"
9 #include "bitops.h"
10 #include "convert.h"
11 #include "shared.h"
12
13 static const u32 ATTACK_EXEC = ATTACK_EXEC_OUTSIDE_KERNEL;
14 static const u32 DGST_POS0 = 0;
15 static const u32 DGST_POS1 = 1;
16 static const u32 DGST_POS2 = 2;
17 static const u32 DGST_POS3 = 3;
18 static const u32 DGST_SIZE = DGST_SIZE_4_4;
19 static const u32 HASH_CATEGORY = HASH_CATEGORY_DOCUMENTS;
20 static const char *HASH_NAME = "MS Office 2010";
21 static const u64 KERN_TYPE = 9500;
22 static const u32 OPTI_TYPE = OPTI_TYPE_ZERO_BYTE
23 | OPTI_TYPE_SLOW_HASH_SIMD_LOOP;
24 static const u64 OPTS_TYPE = OPTS_TYPE_PT_GENERATE_LE
25 | OPTS_TYPE_DEEP_COMP_KERNEL;
26 static const u32 SALT_TYPE = SALT_TYPE_EMBEDDED;
27 static const char *ST_PASS = "hashcat";
28 static const char *ST_HASH = "$office$*2010*100000*128*16*34170046140146368675746031258762*de5bc114991bb3a5679a6e24320bdb09*1b72a4ddffba3dcd5395f6a5ff75b126cb832b733c298e86162028ca47a235a9";
29
module_attack_exec(MAYBE_UNUSED const hashconfig_t * hashconfig,MAYBE_UNUSED const user_options_t * user_options,MAYBE_UNUSED const user_options_extra_t * user_options_extra)30 u32 module_attack_exec (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra) { return ATTACK_EXEC; }
module_dgst_pos0(MAYBE_UNUSED const hashconfig_t * hashconfig,MAYBE_UNUSED const user_options_t * user_options,MAYBE_UNUSED const user_options_extra_t * user_options_extra)31 u32 module_dgst_pos0 (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra) { return DGST_POS0; }
module_dgst_pos1(MAYBE_UNUSED const hashconfig_t * hashconfig,MAYBE_UNUSED const user_options_t * user_options,MAYBE_UNUSED const user_options_extra_t * user_options_extra)32 u32 module_dgst_pos1 (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra) { return DGST_POS1; }
module_dgst_pos2(MAYBE_UNUSED const hashconfig_t * hashconfig,MAYBE_UNUSED const user_options_t * user_options,MAYBE_UNUSED const user_options_extra_t * user_options_extra)33 u32 module_dgst_pos2 (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra) { return DGST_POS2; }
module_dgst_pos3(MAYBE_UNUSED const hashconfig_t * hashconfig,MAYBE_UNUSED const user_options_t * user_options,MAYBE_UNUSED const user_options_extra_t * user_options_extra)34 u32 module_dgst_pos3 (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra) { return DGST_POS3; }
module_dgst_size(MAYBE_UNUSED const hashconfig_t * hashconfig,MAYBE_UNUSED const user_options_t * user_options,MAYBE_UNUSED const user_options_extra_t * user_options_extra)35 u32 module_dgst_size (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra) { return DGST_SIZE; }
module_hash_category(MAYBE_UNUSED const hashconfig_t * hashconfig,MAYBE_UNUSED const user_options_t * user_options,MAYBE_UNUSED const user_options_extra_t * user_options_extra)36 u32 module_hash_category (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra) { return HASH_CATEGORY; }
module_hash_name(MAYBE_UNUSED const hashconfig_t * hashconfig,MAYBE_UNUSED const user_options_t * user_options,MAYBE_UNUSED const user_options_extra_t * user_options_extra)37 const char *module_hash_name (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra) { return HASH_NAME; }
module_kern_type(MAYBE_UNUSED const hashconfig_t * hashconfig,MAYBE_UNUSED const user_options_t * user_options,MAYBE_UNUSED const user_options_extra_t * user_options_extra)38 u64 module_kern_type (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra) { return KERN_TYPE; }
module_opti_type(MAYBE_UNUSED const hashconfig_t * hashconfig,MAYBE_UNUSED const user_options_t * user_options,MAYBE_UNUSED const user_options_extra_t * user_options_extra)39 u32 module_opti_type (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra) { return OPTI_TYPE; }
module_opts_type(MAYBE_UNUSED const hashconfig_t * hashconfig,MAYBE_UNUSED const user_options_t * user_options,MAYBE_UNUSED const user_options_extra_t * user_options_extra)40 u64 module_opts_type (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra) { return OPTS_TYPE; }
module_salt_type(MAYBE_UNUSED const hashconfig_t * hashconfig,MAYBE_UNUSED const user_options_t * user_options,MAYBE_UNUSED const user_options_extra_t * user_options_extra)41 u32 module_salt_type (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra) { return SALT_TYPE; }
module_st_hash(MAYBE_UNUSED const hashconfig_t * hashconfig,MAYBE_UNUSED const user_options_t * user_options,MAYBE_UNUSED const user_options_extra_t * user_options_extra)42 const char *module_st_hash (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra) { return ST_HASH; }
module_st_pass(MAYBE_UNUSED const hashconfig_t * hashconfig,MAYBE_UNUSED const user_options_t * user_options,MAYBE_UNUSED const user_options_extra_t * user_options_extra)43 const char *module_st_pass (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra) { return ST_PASS; }
44
45 typedef struct office2010
46 {
47 u32 encryptedVerifier[4];
48 u32 encryptedVerifierHash[8];
49
50 } office2010_t;
51
52 typedef struct office2010_tmp
53 {
54 u32 out[5];
55
56 } office2010_tmp_t;
57
58 static const char *SIGNATURE_OFFICE2010 = "$office$";
59
module_unstable_warning(MAYBE_UNUSED const hashconfig_t * hashconfig,MAYBE_UNUSED const user_options_t * user_options,MAYBE_UNUSED const user_options_extra_t * user_options_extra,MAYBE_UNUSED const hc_device_param_t * device_param)60 bool module_unstable_warning (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra, MAYBE_UNUSED const hc_device_param_t *device_param)
61 {
62 // AMD Radeon Pro W5700X Compute Engine; 1.2 (Apr 22 2021 21:54:44); 11.3.1; 20E241
63 if ((device_param->opencl_platform_vendor_id == VENDOR_ID_APPLE) && (device_param->opencl_device_type & CL_DEVICE_TYPE_GPU))
64 {
65 return true;
66 }
67
68 return false;
69 }
70
module_deep_comp_kernel(MAYBE_UNUSED const hashes_t * hashes,MAYBE_UNUSED const u32 salt_pos,MAYBE_UNUSED const u32 digest_pos)71 u32 module_deep_comp_kernel (MAYBE_UNUSED const hashes_t *hashes, MAYBE_UNUSED const u32 salt_pos, MAYBE_UNUSED const u32 digest_pos)
72 {
73 return KERN_RUN_3;
74 }
75
module_esalt_size(MAYBE_UNUSED const hashconfig_t * hashconfig,MAYBE_UNUSED const user_options_t * user_options,MAYBE_UNUSED const user_options_extra_t * user_options_extra)76 u64 module_esalt_size (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra)
77 {
78 const u64 esalt_size = (const u64) sizeof (office2010_t);
79
80 return esalt_size;
81 }
82
module_tmp_size(MAYBE_UNUSED const hashconfig_t * hashconfig,MAYBE_UNUSED const user_options_t * user_options,MAYBE_UNUSED const user_options_extra_t * user_options_extra)83 u64 module_tmp_size (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra)
84 {
85 const u64 tmp_size = (const u64) sizeof (office2010_tmp_t);
86
87 return tmp_size;
88 }
89
module_pw_max(MAYBE_UNUSED const hashconfig_t * hashconfig,MAYBE_UNUSED const user_options_t * user_options,MAYBE_UNUSED const user_options_extra_t * user_options_extra)90 u32 module_pw_max (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra)
91 {
92 // this overrides the reductions of PW_MAX in case optimized kernel is selected
93 // IOW, even in optimized kernel mode it support length 256
94
95 const u32 pw_max = PW_MAX;
96
97 return pw_max;
98 }
99
module_hash_decode(MAYBE_UNUSED const hashconfig_t * hashconfig,MAYBE_UNUSED void * digest_buf,MAYBE_UNUSED salt_t * salt,MAYBE_UNUSED void * esalt_buf,MAYBE_UNUSED void * hook_salt_buf,MAYBE_UNUSED hashinfo_t * hash_info,const char * line_buf,MAYBE_UNUSED const int line_len)100 int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED void *digest_buf, MAYBE_UNUSED salt_t *salt, MAYBE_UNUSED void *esalt_buf, MAYBE_UNUSED void *hook_salt_buf, MAYBE_UNUSED hashinfo_t *hash_info, const char *line_buf, MAYBE_UNUSED const int line_len)
101 {
102 u32 *digest = (u32 *) digest_buf;
103
104 office2010_t *office2010 = (office2010_t *) esalt_buf;
105
106 token_t token;
107
108 token.token_cnt = 8;
109
110 token.signatures_cnt = 1;
111 token.signatures_buf[0] = SIGNATURE_OFFICE2010;
112
113 token.len_min[0] = 8;
114 token.len_max[0] = 8;
115 token.sep[0] = '*';
116 token.attr[0] = TOKEN_ATTR_VERIFY_LENGTH
117 | TOKEN_ATTR_VERIFY_SIGNATURE;
118
119 token.len_min[1] = 4;
120 token.len_max[1] = 4;
121 token.sep[1] = '*';
122 token.attr[1] = TOKEN_ATTR_VERIFY_LENGTH
123 | TOKEN_ATTR_VERIFY_DIGIT;
124
125 token.len_min[2] = 6;
126 token.len_max[2] = 6;
127 token.sep[2] = '*';
128 token.attr[2] = TOKEN_ATTR_VERIFY_LENGTH
129 | TOKEN_ATTR_VERIFY_DIGIT;
130
131 token.len_min[3] = 3;
132 token.len_max[3] = 3;
133 token.sep[3] = '*';
134 token.attr[3] = TOKEN_ATTR_VERIFY_LENGTH
135 | TOKEN_ATTR_VERIFY_DIGIT;
136
137 token.len_min[4] = 2;
138 token.len_max[4] = 2;
139 token.sep[4] = '*';
140 token.attr[4] = TOKEN_ATTR_VERIFY_LENGTH
141 | TOKEN_ATTR_VERIFY_DIGIT;
142
143 token.len_min[5] = 32;
144 token.len_max[5] = 32;
145 token.sep[5] = '*';
146 token.attr[5] = TOKEN_ATTR_VERIFY_LENGTH
147 | TOKEN_ATTR_VERIFY_HEX;
148
149 token.len_min[6] = 32;
150 token.len_max[6] = 32;
151 token.sep[6] = '*';
152 token.attr[6] = TOKEN_ATTR_VERIFY_LENGTH
153 | TOKEN_ATTR_VERIFY_HEX;
154
155 token.len_min[7] = 64;
156 token.len_max[7] = 64;
157 token.sep[7] = '*';
158 token.attr[7] = TOKEN_ATTR_VERIFY_LENGTH
159 | TOKEN_ATTR_VERIFY_HEX;
160
161 const int rc_tokenizer = input_tokenizer ((const u8 *) line_buf, line_len, &token);
162
163 if (rc_tokenizer != PARSER_OK) return (rc_tokenizer);
164
165 const u8 *version_pos = token.buf[1];
166 const u8 *spinCount_pos = token.buf[2];
167 const u8 *keySize_pos = token.buf[3];
168 const u8 *saltSize_pos = token.buf[4];
169 const u8 *osalt_pos = token.buf[5];
170 const u8 *encryptedVerifier_pos = token.buf[6];
171 const u8 *encryptedVerifierHash_pos = token.buf[7];
172
173 const u32 version = hc_strtoul ((const char *) version_pos, NULL, 10);
174 const u32 spinCount = hc_strtoul ((const char *) spinCount_pos, NULL, 10);
175 const u32 keySize = hc_strtoul ((const char *) keySize_pos, NULL, 10);
176 const u32 saltSize = hc_strtoul ((const char *) saltSize_pos, NULL, 10);
177
178 if (version != 2010) return (PARSER_SALT_VALUE);
179 if (spinCount != 100000) return (PARSER_SALT_VALUE);
180 if (keySize != 128) return (PARSER_SALT_VALUE);
181 if (saltSize != 16) return (PARSER_SALT_VALUE);
182
183 /**
184 * salt
185 */
186
187 salt->salt_len = 16;
188 salt->salt_iter = spinCount;
189
190 salt->salt_buf[0] = hex_to_u32 (osalt_pos + 0);
191 salt->salt_buf[1] = hex_to_u32 (osalt_pos + 8);
192 salt->salt_buf[2] = hex_to_u32 (osalt_pos + 16);
193 salt->salt_buf[3] = hex_to_u32 (osalt_pos + 24);
194
195 salt->salt_buf[0] = byte_swap_32 (salt->salt_buf[0]);
196 salt->salt_buf[1] = byte_swap_32 (salt->salt_buf[1]);
197 salt->salt_buf[2] = byte_swap_32 (salt->salt_buf[2]);
198 salt->salt_buf[3] = byte_swap_32 (salt->salt_buf[3]);
199
200 /**
201 * esalt
202 */
203
204 office2010->encryptedVerifier[0] = hex_to_u32 (encryptedVerifier_pos + 0);
205 office2010->encryptedVerifier[1] = hex_to_u32 (encryptedVerifier_pos + 8);
206 office2010->encryptedVerifier[2] = hex_to_u32 (encryptedVerifier_pos + 16);
207 office2010->encryptedVerifier[3] = hex_to_u32 (encryptedVerifier_pos + 24);
208
209 office2010->encryptedVerifier[0] = byte_swap_32 (office2010->encryptedVerifier[0]);
210 office2010->encryptedVerifier[1] = byte_swap_32 (office2010->encryptedVerifier[1]);
211 office2010->encryptedVerifier[2] = byte_swap_32 (office2010->encryptedVerifier[2]);
212 office2010->encryptedVerifier[3] = byte_swap_32 (office2010->encryptedVerifier[3]);
213
214 office2010->encryptedVerifierHash[0] = hex_to_u32 (encryptedVerifierHash_pos + 0);
215 office2010->encryptedVerifierHash[1] = hex_to_u32 (encryptedVerifierHash_pos + 8);
216 office2010->encryptedVerifierHash[2] = hex_to_u32 (encryptedVerifierHash_pos + 16);
217 office2010->encryptedVerifierHash[3] = hex_to_u32 (encryptedVerifierHash_pos + 24);
218 office2010->encryptedVerifierHash[4] = hex_to_u32 (encryptedVerifierHash_pos + 32);
219 office2010->encryptedVerifierHash[5] = hex_to_u32 (encryptedVerifierHash_pos + 40);
220 office2010->encryptedVerifierHash[6] = hex_to_u32 (encryptedVerifierHash_pos + 48);
221 office2010->encryptedVerifierHash[7] = hex_to_u32 (encryptedVerifierHash_pos + 56);
222
223 office2010->encryptedVerifierHash[0] = byte_swap_32 (office2010->encryptedVerifierHash[0]);
224 office2010->encryptedVerifierHash[1] = byte_swap_32 (office2010->encryptedVerifierHash[1]);
225 office2010->encryptedVerifierHash[2] = byte_swap_32 (office2010->encryptedVerifierHash[2]);
226 office2010->encryptedVerifierHash[3] = byte_swap_32 (office2010->encryptedVerifierHash[3]);
227 office2010->encryptedVerifierHash[4] = byte_swap_32 (office2010->encryptedVerifierHash[4]);
228 office2010->encryptedVerifierHash[5] = byte_swap_32 (office2010->encryptedVerifierHash[5]);
229 office2010->encryptedVerifierHash[6] = byte_swap_32 (office2010->encryptedVerifierHash[6]);
230 office2010->encryptedVerifierHash[7] = byte_swap_32 (office2010->encryptedVerifierHash[7]);
231
232 /**
233 * digest
234 */
235
236 digest[0] = office2010->encryptedVerifierHash[0];
237 digest[1] = office2010->encryptedVerifierHash[1];
238 digest[2] = office2010->encryptedVerifierHash[2];
239 digest[3] = office2010->encryptedVerifierHash[3];
240
241 return (PARSER_OK);
242 }
243
module_hash_encode(MAYBE_UNUSED const hashconfig_t * hashconfig,MAYBE_UNUSED const void * digest_buf,MAYBE_UNUSED const salt_t * salt,MAYBE_UNUSED const void * esalt_buf,MAYBE_UNUSED const void * hook_salt_buf,MAYBE_UNUSED const hashinfo_t * hash_info,char * line_buf,MAYBE_UNUSED const int line_size)244 int module_hash_encode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const void *digest_buf, MAYBE_UNUSED const salt_t *salt, MAYBE_UNUSED const void *esalt_buf, MAYBE_UNUSED const void *hook_salt_buf, MAYBE_UNUSED const hashinfo_t *hash_info, char *line_buf, MAYBE_UNUSED const int line_size)
245 {
246 const office2010_t *office2010 = (const office2010_t *) esalt_buf;
247
248 const int line_len = snprintf (line_buf, line_size, "%s*%d*%d*%d*%d*%08x%08x%08x%08x*%08x%08x%08x%08x*%08x%08x%08x%08x%08x%08x%08x%08x",
249 SIGNATURE_OFFICE2010,
250 2010,
251 100000,
252 128,
253 16,
254 salt->salt_buf[0],
255 salt->salt_buf[1],
256 salt->salt_buf[2],
257 salt->salt_buf[3],
258 office2010->encryptedVerifier[0],
259 office2010->encryptedVerifier[1],
260 office2010->encryptedVerifier[2],
261 office2010->encryptedVerifier[3],
262 office2010->encryptedVerifierHash[0],
263 office2010->encryptedVerifierHash[1],
264 office2010->encryptedVerifierHash[2],
265 office2010->encryptedVerifierHash[3],
266 office2010->encryptedVerifierHash[4],
267 office2010->encryptedVerifierHash[5],
268 office2010->encryptedVerifierHash[6],
269 office2010->encryptedVerifierHash[7]);
270
271 return line_len;
272 }
273
module_init(module_ctx_t * module_ctx)274 void module_init (module_ctx_t *module_ctx)
275 {
276 module_ctx->module_context_size = MODULE_CONTEXT_SIZE_CURRENT;
277 module_ctx->module_interface_version = MODULE_INTERFACE_VERSION_CURRENT;
278
279 module_ctx->module_attack_exec = module_attack_exec;
280 module_ctx->module_benchmark_esalt = MODULE_DEFAULT;
281 module_ctx->module_benchmark_hook_salt = MODULE_DEFAULT;
282 module_ctx->module_benchmark_mask = MODULE_DEFAULT;
283 module_ctx->module_benchmark_salt = MODULE_DEFAULT;
284 module_ctx->module_build_plain_postprocess = MODULE_DEFAULT;
285 module_ctx->module_deep_comp_kernel = module_deep_comp_kernel;
286 module_ctx->module_deprecated_notice = MODULE_DEFAULT;
287 module_ctx->module_dgst_pos0 = module_dgst_pos0;
288 module_ctx->module_dgst_pos1 = module_dgst_pos1;
289 module_ctx->module_dgst_pos2 = module_dgst_pos2;
290 module_ctx->module_dgst_pos3 = module_dgst_pos3;
291 module_ctx->module_dgst_size = module_dgst_size;
292 module_ctx->module_dictstat_disable = MODULE_DEFAULT;
293 module_ctx->module_esalt_size = module_esalt_size;
294 module_ctx->module_extra_buffer_size = MODULE_DEFAULT;
295 module_ctx->module_extra_tmp_size = MODULE_DEFAULT;
296 module_ctx->module_extra_tuningdb_block = MODULE_DEFAULT;
297 module_ctx->module_forced_outfile_format = MODULE_DEFAULT;
298 module_ctx->module_hash_binary_count = MODULE_DEFAULT;
299 module_ctx->module_hash_binary_parse = MODULE_DEFAULT;
300 module_ctx->module_hash_binary_save = MODULE_DEFAULT;
301 module_ctx->module_hash_decode_potfile = MODULE_DEFAULT;
302 module_ctx->module_hash_decode_zero_hash = MODULE_DEFAULT;
303 module_ctx->module_hash_decode = module_hash_decode;
304 module_ctx->module_hash_encode_status = MODULE_DEFAULT;
305 module_ctx->module_hash_encode_potfile = MODULE_DEFAULT;
306 module_ctx->module_hash_encode = module_hash_encode;
307 module_ctx->module_hash_init_selftest = MODULE_DEFAULT;
308 module_ctx->module_hash_mode = MODULE_DEFAULT;
309 module_ctx->module_hash_category = module_hash_category;
310 module_ctx->module_hash_name = module_hash_name;
311 module_ctx->module_hashes_count_min = MODULE_DEFAULT;
312 module_ctx->module_hashes_count_max = MODULE_DEFAULT;
313 module_ctx->module_hlfmt_disable = MODULE_DEFAULT;
314 module_ctx->module_hook_extra_param_size = MODULE_DEFAULT;
315 module_ctx->module_hook_extra_param_init = MODULE_DEFAULT;
316 module_ctx->module_hook_extra_param_term = MODULE_DEFAULT;
317 module_ctx->module_hook12 = MODULE_DEFAULT;
318 module_ctx->module_hook23 = MODULE_DEFAULT;
319 module_ctx->module_hook_salt_size = MODULE_DEFAULT;
320 module_ctx->module_hook_size = MODULE_DEFAULT;
321 module_ctx->module_jit_build_options = MODULE_DEFAULT;
322 module_ctx->module_jit_cache_disable = MODULE_DEFAULT;
323 module_ctx->module_kernel_accel_max = MODULE_DEFAULT;
324 module_ctx->module_kernel_accel_min = MODULE_DEFAULT;
325 module_ctx->module_kernel_loops_max = MODULE_DEFAULT;
326 module_ctx->module_kernel_loops_min = MODULE_DEFAULT;
327 module_ctx->module_kernel_threads_max = MODULE_DEFAULT;
328 module_ctx->module_kernel_threads_min = MODULE_DEFAULT;
329 module_ctx->module_kern_type = module_kern_type;
330 module_ctx->module_kern_type_dynamic = MODULE_DEFAULT;
331 module_ctx->module_opti_type = module_opti_type;
332 module_ctx->module_opts_type = module_opts_type;
333 module_ctx->module_outfile_check_disable = MODULE_DEFAULT;
334 module_ctx->module_outfile_check_nocomp = MODULE_DEFAULT;
335 module_ctx->module_potfile_custom_check = MODULE_DEFAULT;
336 module_ctx->module_potfile_disable = MODULE_DEFAULT;
337 module_ctx->module_potfile_keep_all_hashes = MODULE_DEFAULT;
338 module_ctx->module_pwdump_column = MODULE_DEFAULT;
339 module_ctx->module_pw_max = module_pw_max;
340 module_ctx->module_pw_min = MODULE_DEFAULT;
341 module_ctx->module_salt_max = MODULE_DEFAULT;
342 module_ctx->module_salt_min = MODULE_DEFAULT;
343 module_ctx->module_salt_type = module_salt_type;
344 module_ctx->module_separator = MODULE_DEFAULT;
345 module_ctx->module_st_hash = module_st_hash;
346 module_ctx->module_st_pass = module_st_pass;
347 module_ctx->module_tmp_size = module_tmp_size;
348 module_ctx->module_unstable_warning = module_unstable_warning;
349 module_ctx->module_warmup_disable = MODULE_DEFAULT;
350 }
351