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

Method prepare

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

Source from the content-addressed store, hash-verified

1156 message.command = SMB_COM_READ_ANDX
1157
1158 def prepare(self, message):
1159 message.parameters_data = \
1160 self.DEFAULT_ANDX_PARAM_HEADER + \
1161 struct.pack(self.PAYLOAD_STRUCT_FORMAT,
1162 self.fid,
1163 self.offset & 0xFFFFFFFF,
1164 self.max_return_bytes_count,
1165 self.min_return_bytes_count,
1166 self.timeout or (self.max_return_bytes_count >> 32), # Note that in [MS-SMB]: 2.2.4.2.1, this field can also act as MaxCountHigh field
1167 self.remaining, # In [MS-CIFS]: 2.2.4.42.1, this field must be set to 0x0000
1168 self.offset >> 32)
1169
1170 message.data = b''
1171
1172
1173class ComReadAndxResponse(Payload):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected