MSSQL hash fix

This commit is contained in:
Roman Hergenreder 2020-11-07 12:58:24 +01:00
parent 95f3cad742
commit d6d2a74844

@ -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)