mirror of
https://github.com/hashcat/hashcat.git
synced 2025-01-22 13:40:56 +00:00
do not call mp_css_utf16le_expand() in case this is a slow_candidate session
This commit is contained in:
parent
686e722db0
commit
85b16ef844
@ -353,7 +353,7 @@ int hashconfig_init (hashcat_ctx_t *hashcat_ctx)
|
|||||||
{
|
{
|
||||||
if (user_options->quiet == false) event_log_warning (hashcat_ctx, "%s: Optimized OpenCL kernel requested but not needed - falling back to pure OpenCL kernel", source_file);
|
if (user_options->quiet == false) event_log_warning (hashcat_ctx, "%s: Optimized OpenCL kernel requested but not needed - falling back to pure OpenCL kernel", source_file);
|
||||||
}
|
}
|
||||||
else if (user_options->slow_candidates == false)
|
else
|
||||||
{
|
{
|
||||||
hashconfig->opti_type |= OPTI_TYPE_OPTIMIZED_KERNEL;
|
hashconfig->opti_type |= OPTI_TYPE_OPTIMIZED_KERNEL;
|
||||||
}
|
}
|
||||||
|
@ -1297,6 +1297,8 @@ int mask_ctx_update_loop (hashcat_ctx_t *hashcat_ctx)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (user_options->slow_candidates == false)
|
||||||
|
{
|
||||||
if (hashconfig->opts_type & OPTS_TYPE_PT_UTF16LE)
|
if (hashconfig->opts_type & OPTS_TYPE_PT_UTF16LE)
|
||||||
{
|
{
|
||||||
if (mp_css_utf16le_expand (hashcat_ctx) == -1) return -1;
|
if (mp_css_utf16le_expand (hashcat_ctx) == -1) return -1;
|
||||||
@ -1305,6 +1307,7 @@ int mask_ctx_update_loop (hashcat_ctx_t *hashcat_ctx)
|
|||||||
{
|
{
|
||||||
if (mp_css_utf16be_expand (hashcat_ctx) == -1) return -1;
|
if (mp_css_utf16be_expand (hashcat_ctx) == -1) return -1;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
u32 css_cnt_orig = mask_ctx->css_cnt;
|
u32 css_cnt_orig = mask_ctx->css_cnt;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user