fortra / impacket

Impacket is a collection of Python classes for working with network protocols.
https://www.coresecurity.com
Other
13k stars 3.5k forks source link

fix smbv1 unicode name in waitNamedPipe when flags2_unicode is true. #1687

Open Abyss-emmm opened 5 months ago

Abyss-emmm commented 5 months ago

According to MS-CIFS-SMB_COM_TRANSACTION Request,If SMB_FLAGS2_UNICODE is set in the Flags2 field of the SMB Header (section 2.2.3.1) of the request, this field MUST be a null-terminated array of 16-bit Unicode characters which MUST be aligned to start on a 2-byte boundary from the start of the SMB header.Pad should be used as an array of padding bytes to align the following field to a 4-byte boundary. relative to the start of the SMB Header.