Contains information about the SMB2_COM_QUERY_DIRECTORY response from the server. If the message has no errors, each instance contains the following attributes: - data_length (integer) - data (string) References: =========== - [MS-SMB2]: 2.2.34
| 698 | |
| 699 | |
| 700 | class SMB2QueryDirectoryResponse(Structure): |
| 701 | """ |
| 702 | Contains information about the SMB2_COM_QUERY_DIRECTORY response from the server. |
| 703 | |
| 704 | If the message has no errors, each instance contains the following attributes: |
| 705 | - data_length (integer) |
| 706 | - data (string) |
| 707 | |
| 708 | References: |
| 709 | =========== |
| 710 | - [MS-SMB2]: 2.2.34 |
| 711 | """ |
| 712 | |
| 713 | STRUCTURE_FORMAT = "<HHI" |
| 714 | STRUCTURE_SIZE = struct.calcsize(STRUCTURE_FORMAT) |
| 715 | |
| 716 | def decode(self, message): |
| 717 | assert message.command == SMB2_COM_QUERY_DIRECTORY |
| 718 | |
| 719 | if message.status == 0: |
| 720 | struct_size, offset, self.data_length = struct.unpack(self.STRUCTURE_FORMAT, message.raw_data[SMB2Message.HEADER_SIZE:SMB2Message.HEADER_SIZE+self.STRUCTURE_SIZE]) |
| 721 | self.data = message.raw_data[offset:offset+self.data_length] |
| 722 | |
| 723 | |
| 724 | class SMB2QueryInfoRequest(Structure): |