Compartir a través de


2.2.4.4.1 Request

 SMB_Parameters
   {
   UCHAR WordCount;
   Words
     {
     SMB_FILE_ATTRIBUTES  FileAttributes;
     UTIME                CreationTime;
     }
   }
 SMB_Data
   {
   USHORT ByteCount;
   Bytes
     {
     UCHAR      BufferFormat;
     SMB_STRING FileName;
     }
   }
            

SMB_Header:

TID (2 bytes): A valid Tree Identifier obtained from a previously successful message exchange.

UID (2 bytes): A valid User Identifier that MUST be the same value as the User Identifier associated with the current SMB Session.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

SMB_Parameters

...

SMB_Data (variable)

...

SMB_Parameters (7 bytes):


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

WordCount

Words

...

WordCount (1 byte): This field MUST be 0x03.

Words (6 bytes):


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

FileAttributes

CreationTime

...

FileAttributes (2 bytes): A 16-bit field of 1-bit flags that represent the file attributes to assign to the file if it is created successfully.

CreationTime (4 bytes): The time that the file was created, represented as the number of seconds since Jan 1, 1970, 00:00:00.0.

SMB_Data (variable):


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

ByteCount

Bytes (variable)

...

ByteCount (2 bytes): This field MUST be greater than or equal to 0x0002.

Bytes (variable):


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

BufferFormat

FileName (variable)

...

BufferFormat (1 byte): This field MUST be 0x04.

FileName (variable): A null-terminated string that represents the fully qualified name of the file relative to the supplied TID to create or truncate on the server.