소스 검색

Added constructor to NTLMv2_CLIENT_CHALLENGE

Tal Aloni 7 년 전
부모
커밋
fbbb31cb7d
1개의 변경된 파일9개의 추가작업 그리고 0개의 파일을 삭제
  1. 9 0
      SMBLibrary/Authentication/NTLM/Structures/NTLMv2ClientChallenge.cs

+ 9 - 0
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<AVPairKey, byte[]> targetInfo)
+        {
+            CurrentVersion = StructureVersion;
+            MaximumSupportedVersion = StructureVersion;
+            TimeStamp = timeStamp;
+            ClientChallenge = clientChallenge;
+            AVPairs = targetInfo;
+        }
+
         public NTLMv2ClientChallenge(byte[] buffer) : this(buffer, 0)
         {
         }