| 3964 | |
| 3965 | |
| 3966 | class SMB2_Query_Directory_Response(_SMB2_Payload, _NTLMPayloadPacket): |
| 3967 | name = "SMB2 QUERY DIRECTORY Response" |
| 3968 | Command = 0x000E |
| 3969 | OFFSET = 8 + 64 |
| 3970 | _NTLM_PAYLOAD_FIELD_NAME = "Buffer" |
| 3971 | fields_desc = [ |
| 3972 | XLEShortField("StructureSize", 0x9), |
| 3973 | LEShortField("OutputBufferOffset", None), |
| 3974 | LEIntField("OutputLen", None), |
| 3975 | _NTLMPayloadField( |
| 3976 | "Buffer", |
| 3977 | OFFSET, |
| 3978 | [ |
| 3979 | # TODO |
| 3980 | StrFixedLenField("Output", b"", length_from=lambda pkt: pkt.OutputLen) |
| 3981 | ], |
| 3982 | ), |
| 3983 | ] |
| 3984 | |
| 3985 | def post_build(self, pkt, pay): |
| 3986 | # type: (bytes, bytes) -> bytes |
| 3987 | return ( |
| 3988 | _SMB2_post_build( |
| 3989 | self, |
| 3990 | pkt, |
| 3991 | self.OFFSET, |
| 3992 | { |
| 3993 | "Output": 2, |
| 3994 | }, |
| 3995 | ) |
| 3996 | + pay |
| 3997 | ) |
| 3998 | |
| 3999 | |
| 4000 | bind_top_down( |
no test coverage detected
searching dependent graphs…