Added sanity check to disallow --speed-only in combination with -i

This commit is contained in:
jsteube
2016-12-09 15:26:35 +01:00
parent 58f458f489
commit f9ba94954b
2 changed files with 12 additions and 0 deletions

View File

@@ -465,6 +465,13 @@ int user_options_sanity (hashcat_ctx_t *hashcat_ctx)
return -1;
}
if ((user_options->increment == true) && (user_options->speed_only == true))
{
event_log_error (hashcat_ctx, "Increment is not allowed in combination with --speed-only");
return -1;
}
if ((user_options->increment == true) && (user_options->attack_mode == ATTACK_MODE_STRAIGHT))
{
event_log_error (hashcat_ctx, "Increment is not allowed in attack-mode 0");
@@ -1069,6 +1076,10 @@ void user_options_preprocess (hashcat_ctx_t *hashcat_ctx)
else if (user_options->opencl_info == true)
{
}
else if (user_options->speed_only == true)
{
}
else if (user_options->keyspace == true)
{