mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-22 08:08:10 +00:00
Merge branch 'master' of https://github.com/hashcat/hashcat
This commit is contained in:
commit
29859a146b
@ -16462,7 +16462,7 @@ int backend_session_update_mp_rl (hashcat_ctx_t *hashcat_ctx, const u32 css_cnt_
|
||||
return 0;
|
||||
}
|
||||
|
||||
void *hook12_thread (void *p)
|
||||
HC_API_CALL void *hook12_thread (void *p)
|
||||
{
|
||||
hook_thread_param_t *hook_thread_param = (hook_thread_param_t *) p;
|
||||
|
||||
@ -16486,7 +16486,7 @@ void *hook12_thread (void *p)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void *hook23_thread (void *p)
|
||||
HC_API_CALL void *hook23_thread (void *p)
|
||||
{
|
||||
hook_thread_param_t *hook_thread_param = (hook_thread_param_t *) p;
|
||||
|
||||
|
@ -2003,7 +2003,7 @@ void brain_server_handle_signal (int signo)
|
||||
}
|
||||
}
|
||||
|
||||
void *brain_server_handle_dumps (void *p)
|
||||
HC_API_CALL void *brain_server_handle_dumps (void *p)
|
||||
{
|
||||
brain_server_dumper_options_t *brain_server_dumper_options = (brain_server_dumper_options_t *) p;
|
||||
|
||||
@ -2035,7 +2035,7 @@ void *brain_server_handle_dumps (void *p)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void *brain_server_handle_client (void *p)
|
||||
HC_API_CALL void *brain_server_handle_client (void *p)
|
||||
{
|
||||
brain_server_client_options_t *brain_server_client_options = (brain_server_client_options_t *) p;
|
||||
|
||||
|
@ -1384,6 +1384,22 @@ int user_options_sanity (hashcat_ctx_t *hashcat_ctx)
|
||||
}
|
||||
}
|
||||
|
||||
#if defined (_WIN)
|
||||
char invalid_characters[] = "/<>:\"\\|?*";
|
||||
#else
|
||||
char invalid_characters[] = "/";
|
||||
#endif
|
||||
|
||||
for (size_t i = 0; strlen (user_options->session) > i; i++)
|
||||
{
|
||||
if (strchr (invalid_characters, user_options->session[i]) != NULL)
|
||||
{
|
||||
event_log_error (hashcat_ctx, "Invalid --session value - must not contain invalid characters.");
|
||||
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
if (user_options->cpu_affinity != NULL)
|
||||
{
|
||||
if (strlen (user_options->cpu_affinity) == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user