From 12b331170ba8a9d67b5ea56ff82d51e830de4a63 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 12 Oct 2017 15:08:09 +0200 Subject: [PATCH] Minor bug fix --- lib/utils/hash.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/utils/hash.py b/lib/utils/hash.py index ab5dae57a..8fbf70720 100644 --- a/lib/utils/hash.py +++ b/lib/utils/hash.py @@ -849,9 +849,9 @@ def dictionaryAttack(attack_dict): try: if choice == '2': message = "what's the custom dictionary's location?\n" - _ = readInput(message) - if _: - dictPaths = [readInput(message)] + dictPath = readInput(message) + if dictPath: + dictPaths = [dictPath] logger.info("using custom dictionary") elif choice == '3': message = "what's the list file location?\n"