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

Class SMB2WriteResponse

pager_lib/smb/smb2_structs.py:478–496  ·  view source on GitHub ↗

Contains information about the SMB2_WRITE response from the server. If the message has no errors, each instance contains the following attributes: - count (integer) References: =========== - [MS-SMB2]: 2.2.22

Source from the content-addressed store, hash-verified

476
477
478class SMB2WriteResponse(Structure):
479 """
480 Contains information about the SMB2_WRITE response from the server.
481
482 If the message has no errors, each instance contains the following attributes:
483 - count (integer)
484
485 References:
486 ===========
487 - [MS-SMB2]: 2.2.22
488 """
489
490 STRUCTURE_FORMAT = "<HHIIHH"
491 STRUCTURE_SIZE = struct.calcsize(STRUCTURE_FORMAT)
492
493 def decode(self, message):
494 assert message.command == SMB2_COM_WRITE
495 if message.status == 0:
496 struct_size, _, self.count, _, _, _ = struct.unpack(self.STRUCTURE_FORMAT, message.raw_data[SMB2Message.HEADER_SIZE:SMB2Message.HEADER_SIZE+self.STRUCTURE_SIZE])
497
498
499

Callers 1

_decodeCommandMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected