mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-08-04 15:01:28 +02:00
Use 48 as minimum length for NTLMv2's NtChallengeResponse
This commit is contained in:
parent
d9b661f829
commit
0ee31e432b
2 changed files with 2 additions and 2 deletions
|
@ -96,7 +96,7 @@ namespace SMBLibrary.Server
|
|||
return this[index];
|
||||
}
|
||||
|
||||
if (ntlmResponse.Length > 24)
|
||||
if (ntlmResponse.Length >= 48)
|
||||
{
|
||||
byte[] clientNTProof = ByteReader.ReadBytes(ntlmResponse, 0, 16);
|
||||
byte[] clientChallengeStructurePadded = ByteReader.ReadBytes(ntlmResponse, 16, ntlmResponse.Length - 16);
|
||||
|
|
|
@ -98,7 +98,7 @@ namespace SMBLibrary.Server.Win32
|
|||
return true;
|
||||
}
|
||||
|
||||
if (message.NtChallengeResponse.Length > 24)
|
||||
if (message.NtChallengeResponse.Length >= 48)
|
||||
{
|
||||
byte[] clientNTProof = ByteReader.ReadBytes(message.NtChallengeResponse, 0, 16);
|
||||
byte[] clientChallengeStructurePadded = ByteReader.ReadBytes(message.NtChallengeResponse, 16, message.NtChallengeResponse.Length - 16);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue