|
@@ -1,4 +1,4 @@
|
|
|
-
|
|
|
+
|
|
|
*
|
|
|
* You can redistribute this program and/or modify it under the terms of
|
|
|
* the GNU Lesser Public License as published by the Free Software Foundation,
|
|
@@ -18,9 +18,9 @@ namespace SMBLibrary.SMB1
|
|
|
{
|
|
|
public const int ParametersLength = 6;
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
public SessionSetupAction Action;
|
|
|
|
|
|
public string NativeOS;
|
|
@@ -47,6 +47,11 @@ namespace SMBLibrary.SMB1
|
|
|
}
|
|
|
NativeOS = SMB1Helper.ReadSMBString(this.SMBData, ref dataOffset, isUnicode);
|
|
|
NativeLanMan = SMB1Helper.ReadSMBString(this.SMBData, ref dataOffset, isUnicode);
|
|
|
+ if ((this.SMBData.Length - dataOffset) % 2 == 1)
|
|
|
+ {
|
|
|
+
|
|
|
+ this.SMBData = ByteUtils.Concatenate(this.SMBData, new byte[1]);
|
|
|
+ }
|
|
|
PrimaryDomain = SMB1Helper.ReadSMBString(this.SMBData, ref dataOffset, isUnicode);
|
|
|
}
|
|
|
|