MCPcopy Create free account
hub / github.com/secdev/scapy / SMB2_Query_Directory_Response

Class SMB2_Query_Directory_Response

scapy/layers/smb2.py:3966–3997  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3964
3965
3966class 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
4000bind_top_down(

Callers 1

Calls 5

XLEShortFieldClass · 0.90
LEShortFieldClass · 0.90
LEIntFieldClass · 0.90
_NTLMPayloadFieldClass · 0.90
StrFixedLenFieldClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…