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

Method decode

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

Source from the content-addressed store, hash-verified

279 return (self.session_flags & 0x0002) > 0 # SMB2_SESSION_FLAG_IS_NULL
280
281 def decode(self, message):
282 assert message.command == SMB2_COM_SESSION_SETUP
283
284 struct_size, self.session_flags, security_blob_offset, security_blob_len \
285 = struct.unpack(self.STRUCTURE_FORMAT, message.raw_data[SMB2Message.HEADER_SIZE:SMB2Message.HEADER_SIZE+self.STRUCTURE_SIZE])
286
287 self.security_blob = message.raw_data[security_blob_offset:security_blob_offset+security_blob_len]
288
289
290class SMB2TreeConnectRequest(Structure):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected