From 0413806a04ba4f26e5e4f670452c3f05b7a606fd Mon Sep 17 00:00:00 2001 From: philsmd Date: Thu, 18 Aug 2016 12:05:45 +0200 Subject: [PATCH 1/2] skip periodic status updates in stdin+stdout mode to prevent output pollution --- docs/changes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/changes.txt b/docs/changes.txt index bcfe489a5..d43021fa7 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -23,6 +23,7 @@ - Slightly increased NVidias rule-processing performance by using generic instructions instead of byte_perm() - Add support for @ rule (RULE_OP_MANGLE_PURGECHAR) to use on GPU - Add support for --outfile (short -o) to be used together with --stdout +- Skip periodic status output whenever --stdout is used together with stdin mode, but no outfile was specified ## ## Bugs From 58ae741cbd1d0a066057332ea2ada7e285a2fa3c Mon Sep 17 00:00:00 2001 From: philsmd Date: Thu, 18 Aug 2016 12:17:51 +0200 Subject: [PATCH 2/2] the actual changes for #461 :) --- src/hashcat.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/hashcat.c b/src/hashcat.c index 8c53bd49c..43eb1c735 100644 --- a/src/hashcat.c +++ b/src/hashcat.c @@ -7898,7 +7898,10 @@ int main (int argc, char **argv) if (wordlist_mode == WL_MODE_STDIN) { - status = 1; + // enable status (in stdin mode) whenever we do not use --stdout together with an outfile + + if (stdout_flag == 0) status = 1; + else if (outfile != NULL) status = 1; data.status = status; }