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

Method reset

pager_lib/smb/smb2_structs.py:43–67  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

41 return b.getvalue()
42
43 def reset(self):
44 self.raw_data = b''
45 self.command = 0
46 self.status = 0
47 self.flags = 0
48
49 self.next_command_offset = 0
50 self.mid = 0
51 self.session_id = 0
52 self.signature = b'\0'*16
53 self.payload = None
54 self.data = b''
55
56 # For async SMB2 message
57 self.async_id = 0
58
59 # For sync SMB2 message
60 self.pid = 0
61 self.tid = 0
62
63 # Not used in this class. Maintained for compatibility with SMBMessage class
64 self.flags2 = 0
65 self.uid = 0
66 self.security = 0
67 self.parameters_data = b''
68
69 def encode(self):
70 """

Callers 2

__init__Method · 0.95
decodeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected