|
|
|
@ -26,6 +26,7 @@ static const u32 OPTI_TYPE = OPTI_TYPE_ZERO_BYTE
|
|
|
|
|
| OPTI_TYPE_SLOW_HASH_SIMD_LOOP;
|
|
|
|
|
static const u64 OPTS_TYPE = OPTS_TYPE_STOCK_MODULE
|
|
|
|
|
| OPTS_TYPE_PT_GENERATE_LE
|
|
|
|
|
| OPTS_TYPE_DEEP_COMP_KERNEL
|
|
|
|
|
| OPTS_TYPE_NATIVE_THREADS;
|
|
|
|
|
static const u32 SALT_TYPE = SALT_TYPE_EMBEDDED;
|
|
|
|
|
static const char *ST_PASS = "hashcat";
|
|
|
|
@ -66,6 +67,11 @@ typedef struct electrum_tmp
|
|
|
|
|
|
|
|
|
|
static const char *SIGNATURE_ELECTRUM = "$electrum$5*";
|
|
|
|
|
|
|
|
|
|
u32 module_deep_comp_kernel (MAYBE_UNUSED const hashes_t *hashes, MAYBE_UNUSED const u32 salt_pos, MAYBE_UNUSED const u32 digest_pos)
|
|
|
|
|
{
|
|
|
|
|
return KERN_RUN_3;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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)
|
|
|
|
|
{
|
|
|
|
|
// problem with this kernel is the huge amount of register pressure on u8 tmp[TMPSIZ];
|
|
|
|
@ -191,13 +197,8 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
|
|
|
|
|
|
|
|
|
|
// fake salt
|
|
|
|
|
|
|
|
|
|
salt->salt_buf[0] = esalt->data_buf[0];
|
|
|
|
|
salt->salt_buf[1] = esalt->data_buf[1];
|
|
|
|
|
salt->salt_buf[2] = esalt->data_buf[2];
|
|
|
|
|
salt->salt_buf[3] = esalt->data_buf[3];
|
|
|
|
|
|
|
|
|
|
salt->salt_len = 16;
|
|
|
|
|
|
|
|
|
|
salt->salt_buf[0] = 0;
|
|
|
|
|
salt->salt_len = 0;
|
|
|
|
|
salt->salt_iter = 1024 - 1;
|
|
|
|
|
|
|
|
|
|
return (PARSER_OK);
|
|
|
|
@ -271,7 +272,7 @@ void module_init (module_ctx_t *module_ctx)
|
|
|
|
|
module_ctx->module_benchmark_charset = MODULE_DEFAULT;
|
|
|
|
|
module_ctx->module_benchmark_salt = MODULE_DEFAULT;
|
|
|
|
|
module_ctx->module_build_plain_postprocess = MODULE_DEFAULT;
|
|
|
|
|
module_ctx->module_deep_comp_kernel = MODULE_DEFAULT;
|
|
|
|
|
module_ctx->module_deep_comp_kernel = module_deep_comp_kernel;
|
|
|
|
|
module_ctx->module_deprecated_notice = MODULE_DEFAULT;
|
|
|
|
|
module_ctx->module_dgst_pos0 = module_dgst_pos0;
|
|
|
|
|
module_ctx->module_dgst_pos1 = module_dgst_pos1;
|
|
|
|
|