From d0b8ad25f1759fb30c94c86260800d30a2a0efbb Mon Sep 17 00:00:00 2001 From: Tal Aloni Date: Mon, 24 Jul 2017 17:11:07 +0300 Subject: [PATCH] SMB1/SMB2 Headers: Marked Protocol ID bytes as private --- SMBLibrary/SMB1/SMB1Header.cs | 2 +- SMBLibrary/SMB2/SMB2Header.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SMBLibrary/SMB1/SMB1Header.cs b/SMBLibrary/SMB1/SMB1Header.cs index beec558..c1148c4 100644 --- a/SMBLibrary/SMB1/SMB1Header.cs +++ b/SMBLibrary/SMB1/SMB1Header.cs @@ -16,7 +16,7 @@ namespace SMBLibrary.SMB1 public const int Length = 32; public static readonly byte[] ProtocolSignature = new byte[] { 0xFF, 0x53, 0x4D, 0x42 }; - public byte[] Protocol; // byte[4], 0xFF followed by "SMB" + private byte[] Protocol; // byte[4], 0xFF followed by "SMB" public CommandName Command; public NTStatus Status; public HeaderFlags Flags; diff --git a/SMBLibrary/SMB2/SMB2Header.cs b/SMBLibrary/SMB2/SMB2Header.cs index 9561348..207d3a6 100644 --- a/SMBLibrary/SMB2/SMB2Header.cs +++ b/SMBLibrary/SMB2/SMB2Header.cs @@ -16,7 +16,7 @@ namespace SMBLibrary.SMB2 public static readonly byte[] ProtocolSignature = new byte[] { 0xFE, 0x53, 0x4D, 0x42 }; - public byte[] ProtocolId; // 4 bytes, 0xFE followed by "SMB" + private byte[] ProtocolId; // 4 bytes, 0xFE followed by "SMB" private ushort StructureSize; public ushort CreditCharge; public NTStatus Status;