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

Class SMB2ReadResponse

pager_lib/smb/smb2_structs.py:536–551  ·  view source on GitHub ↗

References: =========== - [MS-SMB2]: 2.2.20

Source from the content-addressed store, hash-verified

534
535
536class SMB2ReadResponse(Structure):
537 """
538 References:
539 ===========
540 - [MS-SMB2]: 2.2.20
541 """
542
543 STRUCTURE_FORMAT = "<HBBIII"
544 STRUCTURE_SIZE = struct.calcsize(STRUCTURE_FORMAT)
545
546 def decode(self, message):
547 assert message.command == SMB2_COM_READ
548
549 if message.status == 0:
550 struct_size, data_offset, _, self.data_length, _, _ = struct.unpack(self.STRUCTURE_FORMAT, message.raw_data[SMB2Message.HEADER_SIZE:SMB2Message.HEADER_SIZE+self.STRUCTURE_SIZE])
551 self.data = message.raw_data[data_offset:data_offset+self.data_length]
552
553
554class SMB2IoctlRequest(Structure):

Callers 1

_decodeCommandMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected