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

Class CustomHeader

scapy/layers/msrpce/msdcom.py:370–390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

368
369
370class CustomHeader(NDRPacket):
371 ALIGNMENT = (4, 8)
372 fields_desc = [
373 NDRIntField("totalSize", 0),
374 NDRIntField("headerSize", 0),
375 NDRIntField("dwReserved", 0),
376 NDRIntEnumField("destCtx", 2, {2: "MSHCTX_DIFFERENTMACHINE"}),
377 NDRIntField("cIfs", None, size_of="pSizes"),
378 NDRPacketField("classInfoClsid", GUID(), GUID),
379 NDRFullEmbPointerField(
380 NDRConfPacketListField(
381 "pclsid", [GUID()], GUID, count_from=lambda pkt: pkt.cIfs
382 ),
383 ),
384 NDRFullEmbPointerField(
385 NDRConfFieldListField(
386 "pSizes", None, NDRIntField("", 0), count_from=lambda pkt: pkt.cIfs
387 ),
388 ),
389 NDRFullEmbPointerField(NDRIntField("pdwReserved", None)),
390 ]
391
392
393class _ActivationPropertiesField(NDRSerializeType1PacketListField):

Calls 7

NDRIntFieldClass · 0.90
NDRIntEnumFieldClass · 0.90
NDRPacketFieldClass · 0.90
GUIDClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…