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

Class RPC_UNICODE_STRING

scapy/layers/msrpce/mspac.py:112–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110
111
112class RPC_UNICODE_STRING(NDRPacket):
113 ALIGNMENT = (4, 8)
114 fields_desc = [
115 NDRShortField("Length", None, size_of="Buffer", adjust=lambda _, x: (x * 2)),
116 NDRShortField(
117 "MaximumLength", None, size_of="Buffer", adjust=lambda _, x: (x * 2)
118 ),
119 NDRFullEmbPointerField(
120 NDRConfVarStrLenFieldUtf16(
121 "Buffer",
122 "",
123 size_is=lambda pkt: (pkt.MaximumLength // 2),
124 length_is=lambda pkt: (pkt.Length // 2),
125 ),
126 ),
127 ]
128
129
130class FILETIME(NDRPacket):

Callers 3

_build_ticketMethod · 0.90
S4U_DELEGATION_INFOClass · 0.70

Calls 3

NDRShortFieldClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…