mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-07-24 18:08:16 +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;
|
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);
|
AuthenticationMessageUtils.WriteBufferPointer(buffer, 28, (ushort)(DomainName.Length * 2), (uint)offset);
|
||||||
ByteWriter.WriteUTF16String(buffer, ref offset, DomainName);
|
ByteWriter.WriteUTF16String(buffer, ref offset, DomainName);
|
||||||
AuthenticationMessageUtils.WriteBufferPointer(buffer, 36, (ushort)(UserName.Length * 2), (uint)offset);
|
AuthenticationMessageUtils.WriteBufferPointer(buffer, 36, (ushort)(UserName.Length * 2), (uint)offset);
|
||||||
ByteWriter.WriteUTF16String(buffer, ref offset, UserName);
|
ByteWriter.WriteUTF16String(buffer, ref offset, UserName);
|
||||||
AuthenticationMessageUtils.WriteBufferPointer(buffer, 44, (ushort)(WorkStation.Length * 2), (uint)offset);
|
AuthenticationMessageUtils.WriteBufferPointer(buffer, 44, (ushort)(WorkStation.Length * 2), (uint)offset);
|
||||||
ByteWriter.WriteUTF16String(buffer, ref offset, WorkStation);
|
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);
|
AuthenticationMessageUtils.WriteBufferPointer(buffer, 52, (ushort)EncryptedRandomSessionKey.Length, (uint)offset);
|
||||||
ByteWriter.WriteBytes(buffer, ref offset, EncryptedRandomSessionKey);
|
ByteWriter.WriteBytes(buffer, ref offset, EncryptedRandomSessionKey);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue