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

Method prepare

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

Source from the content-addressed store, hash-verified

745 message.command = SMB2_COM_QUERY_INFO
746
747 def prepare(self, message):
748 message.data = struct.pack(self.STRUCTURE_FORMAT,
749 41, # Structure size. Must be 41 as mandated by [MS-SMB2] 2.2.37
750 self.info_type, # InfoType
751 self.file_info_class, # FileInfoClass
752 self.output_buf_len, # OutputBufferLength
753 SMB2Message.HEADER_SIZE + self.STRUCTURE_SIZE, # InputBufferOffset
754 0, # Reserved
755 len(self.input_buf), # InputBufferLength
756 self.additional_info, # AdditionalInformation
757 self.flags, # Flags
758 self.fid # FileId
759 ) + self.input_buf
760
761
762class SMB2QueryInfoResponse(Structure):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected