Skip to content

Commit

Permalink
Merge pull request #72 from amadejpapez/kerberos
Browse files Browse the repository at this point in the history
More Kerberos hash types need to be separated into a salt and without a salt
  • Loading branch information
bee-san authored Mar 20, 2021
2 parents aa09931 + e291843 commit 3d8378e
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions name_that_hash/hashes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1618,7 +1618,7 @@ class HashInfo:
],
),
Prototype(
regex=re.compile(r"^\$krb5pa\$17\$[^$]{1,512}\$[^$]{1,512}\$\$[a-f0-9]{104,112}$", re.IGNORECASE),
regex=re.compile(r"^\$krb5pa\$17\$[^$]{1,512}\$[^$]{1,512}\$[^$]{0,512}\$[a-f0-9]{104,112}$", re.IGNORECASE),
modes=[
HashInfo(
name="Kerberos 5, etype 17, Pre-Auth (with salt)",
Expand All @@ -1630,12 +1630,24 @@ class HashInfo:
],
),
Prototype(
regex=re.compile(r"^\$krb5pa\$18\$[^$]{1,512}\$[^$]{1,512}\$\$?[^$]{1,512}?\$?[a-f0-9]{104,112}$", re.IGNORECASE),
regex=re.compile(r"^\$krb5pa\$18\$[^$]{1,512}\$[^$]{1,512}\$[^$]{0,512}\$[a-f0-9]{104,112}$", re.IGNORECASE),
modes=[
HashInfo(
name="Kerberos 5, etype 18, Pre-Auth (with salt)",
hashcat=None,
john="krb5pa-sha1",
extended=False,
description="Used for Windows Active Directory"
)
],
),
Prototype(
regex=re.compile(r"^\$krb5pa\$18\$[^$]{1,512}\$[^$]{1,512}\$[a-f0-9]{104,112}$", re.IGNORECASE),
modes=[
HashInfo(
name="Kerberos 5, etype 18, Pre-Auth",
hashcat=19900,
john="krb5pa-sha1",
john=None,
extended=False,
description="Used for Windows Active Directory"
)
Expand Down

0 comments on commit 3d8378e

Please sign in to comment.