(self, message)
| 573 | message.command = SMB2_COM_IOCTL |
| 574 | |
| 575 | def prepare(self, message): |
| 576 | message.data = struct.pack(self.STRUCTURE_FORMAT, |
| 577 | 57, # Structure size. Must be 57 as mandated by [MS-SMB2] 2.2.31 |
| 578 | 0, # Reserved |
| 579 | self.ctlcode, # CtlCode |
| 580 | self.fid, |
| 581 | SMB2Message.HEADER_SIZE + self.STRUCTURE_SIZE, # InputOffset |
| 582 | len(self.in_data), # InputCount |
| 583 | 0, # MaxInputResponse |
| 584 | 0, # OutputOffset |
| 585 | 0, # OutputCount |
| 586 | self.max_out_size, # MaxOutputResponse |
| 587 | self.flags, # Flags |
| 588 | 0 # Reserved |
| 589 | ) + self.in_data |
| 590 | |
| 591 | |
| 592 | class SMB2IoctlResponse(Structure): |
nothing calls this directly
no outgoing calls
no test coverage detected