From fbbb31cb7db680f7ea1324a3eec3a03966f4475c Mon Sep 17 00:00:00 2001 From: Tal Aloni Date: Fri, 1 Sep 2017 23:14:35 +0300 Subject: [PATCH] Added constructor to NTLMv2_CLIENT_CHALLENGE --- .../NTLM/Structures/NTLMv2ClientChallenge.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/SMBLibrary/Authentication/NTLM/Structures/NTLMv2ClientChallenge.cs b/SMBLibrary/Authentication/NTLM/Structures/NTLMv2ClientChallenge.cs index 0c62d6c..b8d5b4f 100644 --- a/SMBLibrary/Authentication/NTLM/Structures/NTLMv2ClientChallenge.cs +++ b/SMBLibrary/Authentication/NTLM/Structures/NTLMv2ClientChallenge.cs @@ -44,6 +44,15 @@ namespace SMBLibrary.Authentication.NTLM AVPairs.Add(AVPairKey.NbComputerName, UnicodeEncoding.Unicode.GetBytes(computerName)); } + public NTLMv2ClientChallenge(DateTime timeStamp, byte[] clientChallenge, KeyValuePairList targetInfo) + { + CurrentVersion = StructureVersion; + MaximumSupportedVersion = StructureVersion; + TimeStamp = timeStamp; + ClientChallenge = clientChallenge; + AVPairs = targetInfo; + } + public NTLMv2ClientChallenge(byte[] buffer) : this(buffer, 0) { }