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

Class PUNICODE_STRING

scapy/layers/msrpce/raw/ms_nrpc.py:1465–1480  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1463
1464
1465class PUNICODE_STRING(NDRPacket):
1466 ALIGNMENT = (4, 8)
1467 fields_desc = [
1468 NDRShortField("Length", None, size_of="Buffer", adjust=lambda _, x: (x * 2)),
1469 NDRShortField(
1470 "MaximumLength", None, size_of="Buffer", adjust=lambda _, x: (x * 2)
1471 ),
1472 NDRFullEmbPointerField(
1473 NDRConfVarStrLenFieldUtf16(
1474 "Buffer",
1475 "",
1476 size_is=lambda pkt: (pkt.MaximumLength // 2),
1477 length_is=lambda pkt: (pkt.Length // 2),
1478 )
1479 ),
1480 ]
1481
1482
1483class PNETLOGON_DELTA_TRUSTED_DOMAINS(NDRPacket):

Callers

nothing calls this directly

Calls 3

NDRShortFieldClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…