From d6d2a74844c2287c4911fa773c51fcb5b6c7443c Mon Sep 17 00:00:00 2001 From: Roman Hergenreder Date: Sat, 7 Nov 2020 12:58:24 +0100 Subject: [PATCH] MSSQL hash fix --- crack_hash.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crack_hash.py b/crack_hash.py index 706256a..298723e 100755 --- a/crack_hash.py +++ b/crack_hash.py @@ -167,6 +167,9 @@ class Hash: elif hash_len == 140: if not self.isSalted: seld.type.append(HashType.MSSQL) + self.hash = "0x" + raw_hash # TODO: MSSQL requires 0x prefix.. + elif raw_hash.startswith("0x") and HEX_PATTERN.match(raw_hash[2:]) and len(raw_hash) == 140+2: + seld.type.append(HashType.MSSQL) if len(self.type) == 0: print("%s: Unknown hash" % self.hash)