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

Method initMessage

pager_lib/smb/smb_structs.py:265–274  ·  view source on GitHub ↗
(self, message)

Source from the content-addressed store, hash-verified

263 DEFAULT_ANDX_PARAM_SIZE = 4
264
265 def initMessage(self, message):
266 # SMB_FLAGS2_UNICODE must always be enabled. Without this, almost all the Payload subclasses will need to be
267 # rewritten to check for OEM/Unicode strings which will be tedious. Fortunately, almost all tested CIFS services
268 # support SMB_FLAGS2_UNICODE by default.
269 assert message.payload == self
270 message.flags = SMB_FLAGS_CASE_INSENSITIVE | SMB_FLAGS_CANONICALIZED_PATHS
271 message.flags2 = SMB_FLAGS2_UNICODE | SMB_FLAGS2_NT_STATUS | SMB_FLAGS2_IS_LONG_NAME | SMB_FLAGS2_LONG_NAMES
272
273 if SUPPORT_EXTENDED_SECURITY:
274 message.flags2 |= SMB_FLAGS2_EXTENDED_SECURITY
275
276 def prepare(self, message):
277 raise NotImplementedError

Callers 15

__init__Method · 0.45
initMessageMethod · 0.45
initMessageMethod · 0.45
initMessageMethod · 0.45
initMessageMethod · 0.45
initMessageMethod · 0.45
initMessageMethod · 0.45
initMessageMethod · 0.45
initMessageMethod · 0.45
initMessageMethod · 0.45
initMessageMethod · 0.45
initMessageMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected