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

Class ComNegotiateRequest

pager_lib/smb/smb_structs.py:283–301  ·  view source on GitHub ↗

References: =========== - [MS-CIFS]: 2.2.4.52.1 - [MS-SMB]: 2.2.4.5.1

Source from the content-addressed store, hash-verified

281
282
283class ComNegotiateRequest(Payload):
284 """
285 References:
286 ===========
287 - [MS-CIFS]: 2.2.4.52.1
288 - [MS-SMB]: 2.2.4.5.1
289 """
290
291 def initMessage(self, message):
292 Payload.initMessage(self, message)
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 1

onNMBSessionOKMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected