From 982d1118ab241cbf92eb17165bfeef1896ab771d Mon Sep 17 00:00:00 2001 From: bandrel Date: Thu, 27 Sep 2018 13:10:27 -0400 Subject: [PATCH] Updated to include the ability to use multiple characters in masks --- hate_crack.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/hate_crack.py b/hate_crack.py index 6863f47..f64dd83 100755 --- a/hate_crack.py +++ b/hate_crack.py @@ -518,6 +518,18 @@ def hcatYoloCombination(hcatHashType, hcatHashFile): def hcatMiddleCombinator(hcatHashType, hcatHashFile): global hcatProcess masks = hcatMiddleCombinatorMasks + # Added support for multiple character masks + new_masks = [] + for mask in masks: + tmp = [] + if len(mask) > 1: + for character in mask: + tmp.append(character) + new_masks.append('$' + '$'.join(tmp)) + else: + new_masks.append('$'+mask) + masks = new_masks + try: for x in range(len(masks)): hcatProcess = subprocess.Popen( @@ -542,6 +554,18 @@ def hcatMiddleCombinator(hcatHashType, hcatHashFile): def hcatThoroughCombinator(hcatHashType, hcatHashFile): global hcatProcess masks = hcatThoroughCombinatorMasks + # Added support for multiple character masks + new_masks = [] + for mask in masks: + tmp = [] + if len(mask) > 1: + for character in mask: + tmp.append(character) + new_masks.append('$' + '$'.join(tmp)) + else: + new_masks.append('$'+mask) + masks = new_masks + try: hcatProcess = subprocess.Popen( "{hcatBin} -m {hash_type} {hash_file} --session {session_name} --remove -o {hash_file}.out -a 1 {left} "