소스 검색

Client: NTLMAuthenticationHelper: Corrected sessionKey computation

Tal Aloni 7 년 전
부모
커밋
4b89264940
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      SMBLibrary/Client/Helpers/NTLMAuthenticationHelper.cs

+ 1 - 1
SMBLibrary/Client/Helpers/NTLMAuthenticationHelper.cs

@@ -180,7 +180,7 @@ namespace SMBLibrary.Client
             // https://msdn.microsoft.com/en-us/library/cc236676.aspx
             if ((challengeMessage.NegotiateFlags & NegotiateFlags.KeyExchange) > 0)
             {
-                sessionKey = new byte[8];
+                sessionKey = new byte[16];
                 new Random().NextBytes(sessionKey);
                 authenticateMessage.EncryptedRandomSessionKey = RC4.Encrypt(keyExchangeKey, sessionKey);
             }