Browse Source

NEGOTIATE_MESSAGE: Bugfix: Workstation overwrote DomainName

Tal Aloni 7 years ago
parent
commit
7d51951d3a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      SMBLibrary/Authentication/NTLM/Structures/NegotiateMessage.cs

+ 1 - 1
SMBLibrary/Authentication/NTLM/Structures/NegotiateMessage.cs

@@ -75,7 +75,7 @@ namespace SMBLibrary.Authentication.NTLM
             int offset = fixedLength;
             AuthenticationMessageUtils.WriteBufferPointer(buffer, 16, (ushort)(DomainName.Length * 2), (uint)offset);
             ByteWriter.WriteUTF16String(buffer, ref offset, DomainName);
-            AuthenticationMessageUtils.WriteBufferPointer(buffer, 16, (ushort)(Workstation.Length * 2), (uint)offset);
+            AuthenticationMessageUtils.WriteBufferPointer(buffer, 24, (ushort)(Workstation.Length * 2), (uint)offset);
             ByteWriter.WriteUTF16String(buffer, ref offset, Workstation);
 
             return buffer;