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

Method prepare

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

Source from the content-addressed store, hash-verified

686 message.command = SMB2_COM_QUERY_DIRECTORY
687
688 def prepare(self, message):
689 message.data = struct.pack(self.STRUCTURE_FORMAT,
690 33, # Structure size. Must be 33 as mandated by [MS-SMB2] 2.2.33
691 self.info_class, # FileInformationClass
692 self.flags, # Flags
693 0, # FileIndex
694 self.fid, # FileID
695 SMB2Message.HEADER_SIZE + self.STRUCTURE_SIZE, # FileNameOffset
696 len(self.filename)*2,
697 self.output_buf_len) + self.filename.encode('UTF-16LE')
698
699
700class SMB2QueryDirectoryResponse(Structure):

Callers

nothing calls this directly

Calls 1

encodeMethod · 0.45

Tested by

no test coverage detected