Added constructor to NTLMv2_CLIENT_CHALLENGE

This commit is contained in:
Tal Aloni 2017-09-01 23:14:35 +03:00
parent 3ce1ca6a30
commit fbbb31cb7d

View file

@ -44,6 +44,15 @@ namespace SMBLibrary.Authentication.NTLM
AVPairs.Add(AVPairKey.NbComputerName, UnicodeEncoding.Unicode.GetBytes(computerName));
}
public NTLMv2ClientChallenge(DateTime timeStamp, byte[] clientChallenge, KeyValuePairList<AVPairKey, byte[]> targetInfo)
{
CurrentVersion = StructureVersion;
MaximumSupportedVersion = StructureVersion;
TimeStamp = timeStamp;
ClientChallenge = clientChallenge;
AVPairs = targetInfo;
}
public NTLMv2ClientChallenge(byte[] buffer) : this(buffer, 0)
{
}