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

Method prepare

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

Source from the content-addressed store, hash-verified

1274 message.command = SMB_COM_RENAME
1275
1276 def prepare(self, message):
1277 message.parameters_data = struct.pack('<H', self.search_attributes)
1278 message.data = b'\x04' + self.old_path.encode('UTF-16LE') + b'\x00\x00\x04\x00' + self.new_path.encode('UTF-16LE') + b'\x00\x00'
1279
1280
1281class ComEchoRequest(Payload):

Callers

nothing calls this directly

Calls 1

encodeMethod · 0.45

Tested by

no test coverage detected