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

Method prepare

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

Source from the content-addressed store, hash-verified

243 message.command = SMB2_COM_SESSION_SETUP
244
245 def prepare(self, message):
246 message.data = struct.pack(self.STRUCTURE_FORMAT,
247 25, # Structure size. Must be 25 as mandated by [MS-SMB2] 2.2.5
248 0, # VcNumber
249 0x01, # Security mode
250 0x00, # Capabilities
251 0, # Channel
252 SMB2Message.HEADER_SIZE + self.STRUCTURE_SIZE,
253 len(self.security_blob),
254 0) + self.security_blob
255
256
257class SMB2SessionSetupResponse(Structure):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected