mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-07-14 05:15:03 +02:00
NTLM: NEGOTIATE_MESSAGE: Do not include DomainName and WorkstationName if the appropriate flags are not set
This commit is contained in:
parent
b3445530ac
commit
06a30bc92d
1 changed files with 10 additions and 0 deletions
|
@ -46,6 +46,16 @@ namespace SMBLibrary.Authentication.NTLM
|
|||
|
||||
public byte[] GetBytes()
|
||||
{
|
||||
if ((NegotiateFlags & NegotiateFlags.DomainNameSupplied) == 0)
|
||||
{
|
||||
DomainName = String.Empty;
|
||||
}
|
||||
|
||||
if ((NegotiateFlags & NegotiateFlags.WorkstationNameSupplied) == 0)
|
||||
{
|
||||
Workstation = String.Empty;
|
||||
}
|
||||
|
||||
int fixedLength = 32;
|
||||
if ((NegotiateFlags & NegotiateFlags.Version) > 0)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue