1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-26 09:58:16 +00:00

Merge pull request #3234 from philsmd/philsmd-hcargc-stdin-timeout

improve --stdout + --stdin-timeout-abort fix
This commit is contained in:
Jens Steube 2022-03-22 20:14:43 +01:00 committed by GitHub
commit ad5e5f246f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1372,7 +1372,11 @@ int user_options_sanity (hashcat_ctx_t *hashcat_ctx)
// --stdin-timeout-abort can only be used in stdin mode // --stdin-timeout-abort can only be used in stdin mode
if (user_options->hc_argc > 1) int hc_argc_expected = 1; // our hash file (note: hc_argc only counts hash files and dicts)
if (user_options->stdout_flag == true) hc_argc_expected = 0; // special case: no hash file
if (user_options->hc_argc != hc_argc_expected)
{ {
event_log_error (hashcat_ctx, "Use of --stdin-timeout-abort is only allowed in stdin mode (pipe)."); event_log_error (hashcat_ctx, "Use of --stdin-timeout-abort is only allowed in stdin mode (pipe).");