| 686 | message.command = SMB2_COM_QUERY_DIRECTORY |
| 687 | |
| 688 | def prepare(self, message): |
| 689 | message.data = struct.pack(self.STRUCTURE_FORMAT, |
| 690 | 33, # Structure size. Must be 33 as mandated by [MS-SMB2] 2.2.33 |
| 691 | self.info_class, # FileInformationClass |
| 692 | self.flags, # Flags |
| 693 | 0, # FileIndex |
| 694 | self.fid, # FileID |
| 695 | SMB2Message.HEADER_SIZE + self.STRUCTURE_SIZE, # FileNameOffset |
| 696 | len(self.filename)*2, |
| 697 | self.output_buf_len) + self.filename.encode('UTF-16LE') |
| 698 | |
| 699 | |
| 700 | class SMB2QueryDirectoryResponse(Structure): |