MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / ComTreeConnectAndxResponse

Class ComTreeConnectAndxResponse

pager_lib/smb/smb_structs.py:577–599  ·  view source on GitHub ↗

Contains information about the SMB_COM_TREE_CONNECT_ANDX response from the server. If the message has no errors, each instance contains the following attributes: - optional_support References: =========== - [MS-CIFS]: 2.2.4.55.2

Source from the content-addressed store, hash-verified

575
576
577class ComTreeConnectAndxResponse(Payload):
578 """
579 Contains information about the SMB_COM_TREE_CONNECT_ANDX response from the server.
580
581 If the message has no errors, each instance contains the following attributes:
582 - optional_support
583
584 References:
585 ===========
586 - [MS-CIFS]: 2.2.4.55.2
587 """
588
589 PAYLOAD_STRUCT_FORMAT = '<BBHH'
590 PAYLOAD_STRUCT_SIZE = struct.calcsize(PAYLOAD_STRUCT_FORMAT)
591
592 def decode(self, message):
593 assert message.command == SMB_COM_TREE_CONNECT_ANDX
594
595 if not message.status.hasError:
596 if len(message.parameters_data) < self.PAYLOAD_STRUCT_SIZE:
597 raise ProtocolError('Not enough data to decode SMB_COM_TREE_CONNECT_ANDX parameters', message.raw_data, message)
598
599 _, _, _, self.optional_support = struct.unpack(self.PAYLOAD_STRUCT_FORMAT, message.parameters_data[:self.PAYLOAD_STRUCT_SIZE])
600
601
602class ComNTCreateAndxRequest(Payload):

Callers 1

_decodePayloadMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected