Contains information about the SMB2_COM_QUERY_INFO 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.38
| 760 | |
| 761 | |
| 762 | class SMB2QueryInfoResponse(Structure): |
| 763 | """ |
| 764 | Contains information about the SMB2_COM_QUERY_INFO response from the server. |
| 765 | |
| 766 | If the message has no errors, each instance contains the following attributes: |
| 767 | - data_length (integer) |
| 768 | - data (string) |
| 769 | |
| 770 | References: |
| 771 | =========== |
| 772 | - [MS-SMB2]: 2.2.38 |
| 773 | """ |
| 774 | |
| 775 | STRUCTURE_FORMAT = "<HHI" |
| 776 | STRUCTURE_SIZE = struct.calcsize(STRUCTURE_FORMAT) |
| 777 | |
| 778 | def decode(self, message): |
| 779 | assert message.command == SMB2_COM_QUERY_INFO |
| 780 | |
| 781 | if message.status == 0: |
| 782 | struct_size, buf_offset, self.data_length = struct.unpack(self.STRUCTURE_FORMAT, message.raw_data[SMB2Message.HEADER_SIZE:SMB2Message.HEADER_SIZE+self.STRUCTURE_SIZE]) |
| 783 | self.data = message.raw_data[buf_offset:buf_offset+self.data_length] |
| 784 | |
| 785 | |
| 786 | class SMB2SetInfoRequest(Structure): |