check if user password expired for as-reproasting

main
mpgn 2023-02-12 15:58:07 -05:00
parent db5a36f4b5
commit ce1293b12c
1 changed files with 2 additions and 0 deletions

View File

@ -195,6 +195,8 @@ class KerberosAttacks:
seq_set_iter(reqBody, 'etype', supportedCiphers)
message = encoder.encode(asReq)
r = sendReceive(message, domain, self.kdcHost)
elif e.getErrorCode() == constants.ErrorCodes.KDC_ERR_KEY_EXPIRED.value:
return "Password of user " + userName + " expired but user doesn't require pre-auth"
else:
logging.debug(e)
return False