# SPDX-License-Identifier: GPL-2.0-or-later # This file is part of Scapy # See https://scapy.net/ for more information # Copyright (C) Gabriel Potter """ EPT map (EndPoinT mapper) """ import uuid from scapy.config import conf from scapy.fields import ( ByteEnumField, ConditionalField, FieldLenField, IPField, LEShortField, MultipleTypeField, PacketListField, ShortField, StrLenField, UUIDEnumField, ) from scapy.packet import Packet from scapy.layers.dcerpc import ( DCE_RPC_INTERFACES_NAMES_rev, DCE_RPC_INTERFACES_NAMES, DCE_RPC_PROTOCOL_IDENTIFIERS, DCE_RPC_TRANSFER_SYNTAXES, ) from scapy.layers.msrpce.raw.ept import * # noqa: F401, F403 # [C706] Appendix L # "For historical reasons, this cannot be done using the standard # NDR encoding rules for marshalling and unmarshalling. # A special encoding is required." - Appendix L class octet_string_t(Packet): fields_desc = [ FieldLenField("count", None, fmt="