mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-07-23 01:35:54 +02:00
NTLM: AuthenticateMessage: Immitate Windows write order for easier comparison
This commit is contained in:
parent
717f835490
commit
ad4c5d1fc6
1 changed files with 4 additions and 4 deletions
|
@ -127,16 +127,16 @@ namespace SMBLibrary.Authentication.NTLM
|
|||
offset += MIC.Length;
|
||||
}
|
||||
|
||||
AuthenticationMessageUtils.WriteBufferPointer(buffer, 12, (ushort)LmChallengeResponse.Length, (uint)offset);
|
||||
ByteWriter.WriteBytes(buffer, ref offset, LmChallengeResponse);
|
||||
AuthenticationMessageUtils.WriteBufferPointer(buffer, 20, (ushort)NtChallengeResponse.Length, (uint)offset);
|
||||
ByteWriter.WriteBytes(buffer, ref offset, NtChallengeResponse);
|
||||
AuthenticationMessageUtils.WriteBufferPointer(buffer, 28, (ushort)(DomainName.Length * 2), (uint)offset);
|
||||
ByteWriter.WriteUTF16String(buffer, ref offset, DomainName);
|
||||
AuthenticationMessageUtils.WriteBufferPointer(buffer, 36, (ushort)(UserName.Length * 2), (uint)offset);
|
||||
ByteWriter.WriteUTF16String(buffer, ref offset, UserName);
|
||||
AuthenticationMessageUtils.WriteBufferPointer(buffer, 44, (ushort)(WorkStation.Length * 2), (uint)offset);
|
||||
ByteWriter.WriteUTF16String(buffer, ref offset, WorkStation);
|
||||
AuthenticationMessageUtils.WriteBufferPointer(buffer, 12, (ushort)LmChallengeResponse.Length, (uint)offset);
|
||||
ByteWriter.WriteBytes(buffer, ref offset, LmChallengeResponse);
|
||||
AuthenticationMessageUtils.WriteBufferPointer(buffer, 20, (ushort)NtChallengeResponse.Length, (uint)offset);
|
||||
ByteWriter.WriteBytes(buffer, ref offset, NtChallengeResponse);
|
||||
AuthenticationMessageUtils.WriteBufferPointer(buffer, 52, (ushort)EncryptedRandomSessionKey.Length, (uint)offset);
|
||||
ByteWriter.WriteBytes(buffer, ref offset, EncryptedRandomSessionKey);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue