From 821ff606b9c4f7fe6815f804189960448d097699 Mon Sep 17 00:00:00 2001 From: "larry.spohn" Date: Wed, 8 Oct 2025 05:56:41 -0400 Subject: [PATCH] Fixes for LM hash cracking routine. Also, hashcat-utils defaults to {util}.bin --- hate_crack.py | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/hate_crack.py b/hate_crack.py index bcb9918..2301229 100755 --- a/hate_crack.py +++ b/hate_crack.py @@ -109,14 +109,9 @@ except KeyError as e: hcatGoodMeasureBaseList = default_config[e.args[0]] -if sys.platform == 'darwin': - hcatExpanderBin = "expander.app" - hcatCombinatorBin = "combinator.app" - hcatPrinceBin = "pp64.app" -else: - hcatExpanderBin = "expander.bin" - hcatCombinatorBin = "combinator.bin" - hcatPrinceBin = "pp64.bin" +hcatExpanderBin = "expander.bin" +hcatCombinatorBin = "combinator.bin" +hcatPrinceBin = "pp64.bin" def verify_wordlist_dir(directory, wordlist): if os.path.isfile(wordlist): @@ -830,7 +825,7 @@ def hcatLMtoNT(): hash_file=hcatHashFile), shell=True).wait() converted = convert_hex("{hash_file}.working".format(hash_file=hcatHashFile)) with open("{hash_file}.working".format(hash_file=hcatHashFile),mode='w') as working: - working.writelines(converted) + working.writelines('\n'.join(converted)) hcatProcess = subprocess.Popen( "{hate_path}/hashcat-utils/bin/{combine_bin} {hash_file}.working {hash_file}.working | sort -u > {hash_file}.combined".format( combine_bin=hcatCombinatorBin,