From 10c100ab6d2bfbeb58cbb3130b46d45e06d352d3 Mon Sep 17 00:00:00 2001 From: rybaz <62815219+rybaz@users.noreply.github.com> Date: Fri, 24 Jun 2022 14:31:29 -0400 Subject: [PATCH] Swapped reference equality checks and value equality checks Ran into an issue with the most recent branch where Python 3.8.10 was erroring out because of "is" and "is not" instead of "==" and "!=" on a couple lines. Nothing crazy, but this fixed it for me. --- hate_crack.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hate_crack.py b/hate_crack.py index 49aa6b6..4fde20a 100755 --- a/hate_crack.py +++ b/hate_crack.py @@ -880,7 +880,7 @@ def quick_crack(): while wordlist_choice is None: raw_choice = input("\nEnter path of wordlist or wordlist directory.\n" "Press Enter for default optimized wordlists [{0}]:".format(hcatOptimizedWordlists)) - if raw_choice is '': + if raw_choice == '': wordlist_choice = hcatOptimizedWordlists else: if os.path.exists(raw_choice): @@ -898,7 +898,7 @@ def quick_crack(): raw_choice = input('Enter Comma separated list of rules you would like to run. To run rules chained use the + symbol.\n' 'For example 1+1 will run {0} chained twice and 1,2 would run {0} and then {1} sequentially.\n' 'Choose wisely: '.format(hcatRules[0], hcatRules[1])) - if raw_choice is not '': + if raw_choice != '': rule_choice = raw_choice.split(',') if '99' in rule_choice: