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

Class NDRConfStrLenField

scapy/layers/dcerpc.py:2363–2373  ·  view source on GitHub ↗

NDR Conformant StrLenField. This is not a "string" per NDR, but an a conformant byte array (e.g. tower_octet_string). For ease of use, we implicitly convert it in specific cases.

Source from the content-addressed store, hash-verified

2361
2362
2363class NDRConfStrLenField(_NDRConfField, _NDRValueOf, StrLenField):
2364 """
2365 NDR Conformant StrLenField.
2366
2367 This is not a "string" per NDR, but an a conformant byte array
2368 (e.g. tower_octet_string). For ease of use, we implicitly convert
2369 it in specific cases.
2370 """
2371
2372 CONFORMANT_STRING = True
2373 LENGTH_FROM = True
2374
2375
2376class NDRConfStrLenFieldUtf16(_NDRConfField, _NDRValueOf, StrLenFieldUtf16, _NDRUtf16):

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…