MSSQL hash fix
This commit is contained in:
parent
95f3cad742
commit
d6d2a74844
@ -167,6 +167,9 @@ class Hash:
|
|||||||
elif hash_len == 140:
|
elif hash_len == 140:
|
||||||
if not self.isSalted:
|
if not self.isSalted:
|
||||||
seld.type.append(HashType.MSSQL)
|
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:
|
if len(self.type) == 0:
|
||||||
print("%s: Unknown hash" % self.hash)
|
print("%s: Unknown hash" % self.hash)
|
||||||
|
Loading…
Reference in New Issue
Block a user