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

Class NDRData

scapy/contrib/pnio_rpc.py:1469–1489  ·  view source on GitHub ↗

Base NDRData to centralize some fields. It can't be instantiated

Source from the content-addressed store, hash-verified

1467
1468
1469class NDRData(Packet):
1470 """Base NDRData to centralize some fields. It can't be instantiated"""
1471 fields_desc = [
1472 EField(
1473 FieldLenField("args_length", None, fmt="I", length_of="blocks"),
1474 endianness_from=dce_rpc_endianness),
1475 EField(
1476 FieldLenField("max_count", None, fmt="I", length_of="blocks"),
1477 endianness_from=dce_rpc_endianness),
1478 EField(
1479 IntField("offset", 0),
1480 endianness_from=dce_rpc_endianness),
1481 EField(
1482 FieldLenField("actual_count", None, fmt="I", length_of="blocks"),
1483 endianness_from=dce_rpc_endianness),
1484 PacketListField("blocks", [], _guess_block_class,
1485 length_from=lambda p: p.args_length)
1486 ]
1487
1488 def __new__(cls, name, bases, dct):
1489 raise NotImplementedError()
1490
1491
1492class PNIOServiceReqPDU(Packet):

Callers

nothing calls this directly

Calls 4

EFieldClass · 0.90
FieldLenFieldClass · 0.90
IntFieldClass · 0.90
PacketListFieldClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…