(self, message)
| 462 | message.command = SMB2_COM_WRITE |
| 463 | |
| 464 | def prepare(self, message): |
| 465 | message.data = struct.pack(self.STRUCTURE_FORMAT, |
| 466 | 49, # Structure size. Must be 49 as mandated by [MS-SMB2] 2.2.21 |
| 467 | SMB2Message.HEADER_SIZE + self.STRUCTURE_SIZE, # DataOffset |
| 468 | len(self.data), |
| 469 | self.offset, |
| 470 | self.fid, |
| 471 | 0, # Channel. Must be 0 |
| 472 | self.remaining_len, # RemainingBytes |
| 473 | 0, # WriteChannelInfoOffset, |
| 474 | 0, # WriteChannelInfoLength |
| 475 | self.flags) + self.data |
| 476 | |
| 477 | |
| 478 | class SMB2WriteResponse(Structure): |
nothing calls this directly
no outgoing calls
no test coverage detected