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

Method prepare

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

Source from the content-addressed store, hash-verified

293 message.command = SMB_COM_NEGOTIATE
294
295 def prepare(self, message):
296 assert message.payload == self
297 message.parameters_data = b''
298 if SUPPORT_SMB2:
299 message.data = b''.join([b'\x02'+s+b'\x00' for s in DIALECTS + DIALECTS2])
300 else:
301 message.data = b''.join([b'\x02'+s+b'\x00' for s in DIALECTS])
302
303
304class ComNegotiateResponse(Payload):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected