some bugfixes

This commit is contained in:
2021-07-17 17:44:21 +02:00
parent efc3b655a8
commit a9ac92e3a7
4 changed files with 11 additions and 2 deletions

View File

@@ -61,6 +61,10 @@ class HashType(enum.Enum):
CRYPT_SHA512 = 1800
CRYPT_APACHE = 1600
# python
PYTHON_PBKDF2_SHA256 = 20300
PYTHON_PBKDF2_SHA512 = 20200
# Windows
LM = 3000
NTLM = 1000
@@ -109,6 +113,10 @@ class Hash:
self.type.append(HashType.WORDPRESS)
elif crypt_type == "S":
self.type.append(HashType.DRUPAL7)
elif crypt_type == "pbkdf2-sha256":
self.type.append(HashType.PYTHON_PBKDF2_SHA256)
elif crypt_type == "pbkdf2-sha512":
self.type.append(HashType.PYTHON_PBKDF2_SHA512)
else:
if ":" in raw_hash:
parts = raw_hash.split(":")