From f1f63646905a0dc6edef2c8a889406e25b4289d5 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 22 Aug 2012 16:10:38 +0200 Subject: [PATCH] Changing default readInput value on dictionary-based attack depending on conf.multipleTargets --- lib/utils/hash.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/utils/hash.py b/lib/utils/hash.py index e4ed43c9e..8d898c88a 100644 --- a/lib/utils/hash.py +++ b/lib/utils/hash.py @@ -362,8 +362,8 @@ def attackDumpedTable(): if attack_dict: message = "recognized possible password hashes in column%s " % ("s" if len(col_passwords) > 1 else "") message += "'%s'. Do you want to " % ", ".join(col for col in col_passwords) - message += "crack them via a dictionary-based attack? [y/N/q]" - test = readInput(message, default="N") + message += "crack them via a dictionary-based attack? %s" % ("[y/N/q]" if conf.multipleTargets else "[Y/n/q]") + test = readInput(message, default="N" if conf.multipleTargets else "Y") if test[0] in ("n", "N"): return