Forráskód Böngészése

Client: NTLMAuthenticationHelper: Corrected sessionKey computation

Tal Aloni 7 éve
szülő
commit
4b89264940
1 módosított fájl, 1 hozzáadás és 1 törlés
  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);
             }