|
@@ -11,6 +11,9 @@ using Utilities;
|
|
|
|
|
|
namespace SMBLibrary.SMB1
|
|
|
{
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
public class SessionSetupAndXResponse : SMBAndXCommand
|
|
|
{
|
|
|
public const int ParametersLength = 6;
|
|
@@ -20,9 +23,9 @@ namespace SMBLibrary.SMB1
|
|
|
|
|
|
public SessionSetupAction Action;
|
|
|
|
|
|
- public string NativeOS;
|
|
|
- public string NativeLanMan;
|
|
|
- public string PrimaryDomain;
|
|
|
+ public string NativeOS = String.Empty;
|
|
|
+ public string NativeLanMan = String.Empty;
|
|
|
+ public string PrimaryDomain = String.Empty;
|
|
|
|
|
|
public SessionSetupAndXResponse() : base()
|
|
|
{
|
|
@@ -62,7 +65,7 @@ namespace SMBLibrary.SMB1
|
|
|
{
|
|
|
this.SMBData = new byte[NativeOS.Length + NativeLanMan.Length + PrimaryDomain.Length + 3];
|
|
|
}
|
|
|
- SMB1Helper.WriteSMBString(this.SMBData, ref offset, isUnicode, NativeOS);
|
|
|
+ SMB1Helper.WriteSMBString(this.SMBData, ref offset, isUnicode, NativeOS);
|
|
|
SMB1Helper.WriteSMBString(this.SMBData, ref offset, isUnicode, NativeLanMan);
|
|
|
SMB1Helper.WriteSMBString(this.SMBData, ref offset, isUnicode, PrimaryDomain);
|
|
|
|