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

Method decode

pager_lib/smb/smb2_structs.py:716–721  ·  view source on GitHub ↗
(self, message)

Source from the content-addressed store, hash-verified

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
724class SMB2QueryInfoRequest(Structure):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected