References: =========== - [MS-SMB2]: 2.2.28
| 828 | |
| 829 | |
| 830 | class SMB2EchoRequest(Structure): |
| 831 | """ |
| 832 | References: |
| 833 | =========== |
| 834 | - [MS-SMB2]: 2.2.28 |
| 835 | """ |
| 836 | |
| 837 | STRUCTURE_FORMAT = '<HH' |
| 838 | STRUCTURE_SIZE = struct.calcsize(STRUCTURE_FORMAT) |
| 839 | |
| 840 | def initMessage(self, message): |
| 841 | Structure.initMessage(self, message) |
| 842 | message.command = SMB2_COM_ECHO |
| 843 | |
| 844 | def prepare(self, message): |
| 845 | message.data = struct.pack(self.STRUCTURE_FORMAT, |
| 846 | 4, # StructureSize. Must be 4 as mandated by [MS-SMB2] 2.2.29 |
| 847 | 0) # Reserved |
| 848 | |
| 849 | class SMB2EchoResponse(Structure): |
| 850 | """ |