1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-22 08:08:10 +00:00

do not allow --stdout and --slow-candidates

This commit is contained in:
Gabriele Gristina 2024-10-26 15:11:45 +02:00
parent 6716447dfc
commit b67638ab36

View File

@ -1052,6 +1052,13 @@ int user_options_sanity (hashcat_ctx_t *hashcat_ctx)
}
}
if (user_options->stdout_flag == true && user_options->slow_candidates == true)
{
event_log_error (hashcat_ctx, "Slow candidates (-S) is not allowed in stdout mode.");
return -1;
}
if ((user_options->show == true) && ((user_options->username == true) || (user_options->dynamic_x == true)))
{
event_log_error (hashcat_ctx, "Mixing --show with --username or --dynamic-x can cause exponential delay in output.");