Esempio n. 1
0
 /// <summary>
 /// update the lm challenge response
 /// </summary>
 /// <param name="targetInfo">the challenge packet</param>
 /// <param name="lmChallengeResponse">the lm challenge response</param>
 /// <summary>
 private void UpdateLmChallengeResponse(
     ICollection <AV_PAIR> targetInfo,
     ref byte[] lmChallengeResponse
     )
 {
     // If NTLM v2 authentication is used and the CHALLENGE_MESSAGE TargetInfo field (section 2.2.1.2) has an MsvAvTimestamp present,
     // the client SHOULD NOT send the LmChallengeResponse and SHOULD send Z(24) instead
     if (NlmpUtility.IsNtlmV2(this.client.Config.Version) && targetInfo != null && NlmpUtility.AvPairContains(targetInfo, AV_PAIR_IDs.MsvAvTimestamp))
     {
         lmChallengeResponse = NlmpUtility.Z(24);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// update the lm challenge response
 /// </summary>
 /// <param name="targetInfo">the challenge packet</param>
 /// <param name="lmChallengeResponse">the lm challenge response</param>
 private void UpdateLmChallengeResponse(
     byte[] targetInfo,
     ref byte[] lmChallengeResponse
     )
 {
     // If NTLM v2 authentication is used and the CHALLENGE_MESSAGE contains a TargetInfo
     // field, the client SHOULD set the LmChallengeResponse to null.
     if (NlmpUtility.IsNtlmV2(this.client.Config.Version) && targetInfo != null)
     {
         lmChallengeResponse = null;
     }
 }