From ed8315ba211cae36c97393cd406e1111a52b82bb Mon Sep 17 00:00:00 2001 From: philsmd Date: Thu, 18 Aug 2016 13:48:59 +0200 Subject: [PATCH] add sanity check to disallow --show and --outfile-autohex-disable --- docs/changes.txt | 1 + src/hashcat.c | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/docs/changes.txt b/docs/changes.txt index d43021fa7..0ce00597a 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -24,6 +24,7 @@ - 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 +- Show error message if --show is used together with --outfile-autohex-disable (this is currently not supported) ## ## Bugs diff --git a/src/hashcat.c b/src/hashcat.c index 43eb1c735..fc0cdb332 100644 --- a/src/hashcat.c +++ b/src/hashcat.c @@ -7226,6 +7226,16 @@ int main (int argc, char **argv) } } + if (show == 1) + { + if (outfile_autohex == 0) + { + log_error ("ERROR: Mixing outfile-autohex-disable parameter not allowed with show parameter"); + + return -1; + } + } + uint attack_kern = ATTACK_KERN_NONE; switch (attack_mode)