id
int64
0
328k
repository_name
stringlengths
7
58
file_path
stringlengths
9
302
class_name
stringlengths
5
256
human_written_code
stringlengths
16
2.16M
class_skeleton
stringlengths
18
1.49M
⌀
total_program_units
int64
1
1.76k
total_doc_str
int64
0
771
AvgCountLine
float64
0
7.89k
AvgCountLineBlank
float64
0
297
AvgCountLineCode
float64
0
7.89k
AvgCountLineComment
float64
0
7.89k
AvgCyclomatic
float64
0
130
CommentToCodeRatio
float64
0
168
CountClassBase
float64
0
40
CountClassCoupled
float64
0
583
CountClassCoupledModified
float64
0
575
CountClassDerived
float64
0
5.35k
CountDeclInstanceMethod
float64
0
529
CountDeclInstanceVariable
float64
0
296
CountDeclMethod
float64
0
599
CountDeclMethodAll
float64
0
1.12k
CountLine
float64
1
40.4k
CountLineBlank
float64
0
8.16k
CountLineCode
float64
1
25.7k
CountLineCodeDecl
float64
1
8.15k
CountLineCodeExe
float64
0
24.2k
CountLineComment
float64
0
16.5k
CountStmt
float64
1
9.71k
CountStmtDecl
float64
1
8.15k
CountStmtExe
float64
0
9.69k
MaxCyclomatic
float64
0
759
MaxInheritanceTree
float64
0
16
MaxNesting
float64
0
34
SumCyclomatic
float64
0
2.9k
28,100
secdev/scapy
secdev_scapy/scapy/layers/bluetooth4LE.py
scapy.layers.bluetooth4LE.LL_LENGTH_REQ
from scapy.packet import Packet, bind_layers from scapy.fields import BitEnumField, BitField, ByteEnumField, ByteField, Field, FlagsField, LEIntField, LEShortEnumField, LEShortField, MACField, PacketListField, SignedByteField, X3BytesField, XByteField, XIntField, XLEIntField, XLELongField, XLEShortField, XShortField c...
class LL_LENGTH_REQ(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
8
0
8
3
7
0
3
3
2
0
4
0
0
28,101
secdev/scapy
secdev_scapy/scapy/layers/bluetooth4LE.py
scapy.layers.bluetooth4LE.LL_LENGTH_RSP
from scapy.packet import Packet, bind_layers from scapy.fields import BitEnumField, BitField, ByteEnumField, ByteField, Field, FlagsField, LEIntField, LEShortEnumField, LEShortField, MACField, PacketListField, SignedByteField, X3BytesField, XByteField, XIntField, XLEIntField, XLELongField, XLEShortField, XShortField c...
class LL_LENGTH_RSP(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
8
0
8
3
7
0
3
3
2
0
4
0
0
28,102
secdev/scapy
secdev_scapy/scapy/layers/bluetooth4LE.py
scapy.layers.bluetooth4LE.LL_MIN_USED_CHANNELS_IND
from scapy.packet import Packet, bind_layers from scapy.fields import BitEnumField, BitField, ByteEnumField, ByteField, Field, FlagsField, LEIntField, LEShortEnumField, LEShortField, MACField, PacketListField, SignedByteField, X3BytesField, XByteField, XIntField, XLEIntField, XLELongField, XLEShortField, XShortField c...
class LL_MIN_USED_CHANNELS_IND(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
6
0
6
3
5
0
3
3
2
0
4
0
0
28,103
secdev/scapy
secdev_scapy/scapy/layers/bluetooth4LE.py
scapy.layers.bluetooth4LE.LL_PAUSE_ENC_REQ
from scapy.packet import Packet, bind_layers class LL_PAUSE_ENC_REQ(Packet): name = 'LL_PAUSE_ENC_REQ'
class LL_PAUSE_ENC_REQ(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
2
0
2
2
1
0
2
2
1
0
4
0
0
28,104
secdev/scapy
secdev_scapy/scapy/layers/bluetooth4LE.py
scapy.layers.bluetooth4LE.LL_PAUSE_ENC_RSP
from scapy.packet import Packet, bind_layers class LL_PAUSE_ENC_RSP(Packet): name = 'LL_PAUSE_ENC_RSP'
class LL_PAUSE_ENC_RSP(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
2
0
2
2
1
0
2
2
1
0
4
0
0
28,105
secdev/scapy
secdev_scapy/scapy/layers/bluetooth4LE.py
scapy.layers.bluetooth4LE.LL_PERIODIC_SYNC_IND
from scapy.contrib.ethercat import LEBitEnumField, LEBitField from scapy.fields import BitEnumField, BitField, ByteEnumField, ByteField, Field, FlagsField, LEIntField, LEShortEnumField, LEShortField, MACField, PacketListField, SignedByteField, X3BytesField, XByteField, XIntField, XLEIntField, XLELongField, XLEShortFiel...
class LL_PERIODIC_SYNC_IND(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
14
0
14
3
13
0
3
3
2
0
4
0
0
28,106
secdev/scapy
secdev_scapy/scapy/layers/bluetooth4LE.py
scapy.layers.bluetooth4LE.LL_PHY_REQ
from scapy.packet import Packet, bind_layers class LL_PHY_REQ(Packet): name = 'LL_PHY_REQ' fields_desc = [BTLEPhysField('tx_phys', 0), BTLEPhysField('rx_phys', 0)]
class LL_PHY_REQ(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
6
0
6
3
5
0
3
3
2
0
4
0
0
28,107
secdev/scapy
secdev_scapy/scapy/layers/bluetooth4LE.py
scapy.layers.bluetooth4LE.LL_PHY_RSP
from scapy.packet import Packet, bind_layers class LL_PHY_RSP(Packet): name = 'LL_PHY_RSP' fields_desc = [BTLEPhysField('tx_phys', 0), BTLEPhysField('rx_phys', 0)]
class LL_PHY_RSP(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
6
0
6
3
5
0
3
3
2
0
4
0
0
28,108
secdev/scapy
secdev_scapy/scapy/layers/bluetooth4LE.py
scapy.layers.bluetooth4LE.LL_PHY_UPDATE_IND
from scapy.fields import BitEnumField, BitField, ByteEnumField, ByteField, Field, FlagsField, LEIntField, LEShortEnumField, LEShortField, MACField, PacketListField, SignedByteField, X3BytesField, XByteField, XIntField, XLEIntField, XLELongField, XLEShortField, XShortField from scapy.packet import Packet, bind_layers c...
class LL_PHY_UPDATE_IND(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
7
0
7
3
6
0
3
3
2
0
4
0
0
28,109
secdev/scapy
secdev_scapy/scapy/layers/bluetooth4LE.py
scapy.layers.bluetooth4LE.LL_PING_REQ
from scapy.packet import Packet, bind_layers class LL_PING_REQ(Packet): name = 'LL_PING_REQ'
class LL_PING_REQ(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
2
0
2
2
1
0
2
2
1
0
4
0
0
28,110
secdev/scapy
secdev_scapy/scapy/layers/bluetooth4LE.py
scapy.layers.bluetooth4LE.LL_PING_RSP
from scapy.packet import Packet, bind_layers class LL_PING_RSP(Packet): name = 'LL_PING_RSP'
class LL_PING_RSP(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
2
0
2
2
1
0
2
2
1
0
4
0
0
28,111
secdev/scapy
secdev_scapy/scapy/layers/bluetooth4LE.py
scapy.layers.bluetooth4LE.LL_POWER_CHANGE_IND
from scapy.packet import Packet, bind_layers from scapy.contrib.ethercat import LEBitEnumField, LEBitField from scapy.fields import BitEnumField, BitField, ByteEnumField, ByteField, Field, FlagsField, LEIntField, LEShortEnumField, LEShortField, MACField, PacketListField, SignedByteField, X3BytesField, XByteField, XIntF...
class LL_POWER_CHANGE_IND(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
10
0
10
3
9
0
3
3
2
0
4
0
0
28,112
secdev/scapy
secdev_scapy/scapy/layers/bluetooth4LE.py
scapy.layers.bluetooth4LE.LL_POWER_CONTROL_REQ
from scapy.fields import BitEnumField, BitField, ByteEnumField, ByteField, Field, FlagsField, LEIntField, LEShortEnumField, LEShortField, MACField, PacketListField, SignedByteField, X3BytesField, XByteField, XIntField, XLEIntField, XLELongField, XLEShortField, XShortField from scapy.packet import Packet, bind_layers c...
class LL_POWER_CONTROL_REQ(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
7
0
7
3
6
0
3
3
2
0
4
0
0
28,113
secdev/scapy
secdev_scapy/scapy/layers/bluetooth4LE.py
scapy.layers.bluetooth4LE.LL_POWER_CONTROL_RSP
from scapy.fields import BitEnumField, BitField, ByteEnumField, ByteField, Field, FlagsField, LEIntField, LEShortEnumField, LEShortField, MACField, PacketListField, SignedByteField, X3BytesField, XByteField, XIntField, XLEIntField, XLELongField, XLEShortField, XShortField from scapy.packet import Packet, bind_layers fr...
class LL_POWER_CONTROL_RSP(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
10
0
10
3
9
0
3
3
2
0
4
0
0
28,114
secdev/scapy
secdev_scapy/scapy/layers/bluetooth4LE.py
scapy.layers.bluetooth4LE.LL_REJECT_EXT_IND
from scapy.packet import Packet, bind_layers from scapy.fields import BitEnumField, BitField, ByteEnumField, ByteField, Field, FlagsField, LEIntField, LEShortEnumField, LEShortField, MACField, PacketListField, SignedByteField, X3BytesField, XByteField, XIntField, XLEIntField, XLELongField, XLEShortField, XShortField c...
class LL_REJECT_EXT_IND(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
6
0
6
3
5
0
3
3
2
0
4
0
0
28,115
secdev/scapy
secdev_scapy/scapy/layers/bluetooth4LE.py
scapy.layers.bluetooth4LE.LL_REJECT_IND
from scapy.packet import Packet, bind_layers from scapy.fields import BitEnumField, BitField, ByteEnumField, ByteField, Field, FlagsField, LEIntField, LEShortEnumField, LEShortField, MACField, PacketListField, SignedByteField, X3BytesField, XByteField, XIntField, XLEIntField, XLELongField, XLEShortField, XShortField c...
class LL_REJECT_IND(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
5
0
5
3
4
0
3
3
2
0
4
0
0
28,116
secdev/scapy
secdev_scapy/scapy/layers/bluetooth4LE.py
scapy.layers.bluetooth4LE.LL_SLAVE_FEATURE_REQ
from scapy.packet import Packet, bind_layers class LL_SLAVE_FEATURE_REQ(Packet): name = 'LL_SLAVE_FEATURE_REQ' fields_desc = [BTLEFeatureField('feature_set', 0)]
class LL_SLAVE_FEATURE_REQ(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
5
0
5
3
4
0
3
3
2
0
4
0
0
28,117
secdev/scapy
secdev_scapy/scapy/layers/bluetooth4LE.py
scapy.layers.bluetooth4LE.LL_START_ENC_REQ
from scapy.packet import Packet, bind_layers class LL_START_ENC_REQ(Packet): name = 'LL_START_ENC_REQ' fields_desc = []
class LL_START_ENC_REQ(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
3
0
3
3
2
0
3
3
2
0
4
0
0
28,118
secdev/scapy
secdev_scapy/scapy/layers/bluetooth4LE.py
scapy.layers.bluetooth4LE.LL_START_ENC_RSP
from scapy.packet import Packet, bind_layers class LL_START_ENC_RSP(Packet): name = 'LL_START_ENC_RSP'
class LL_START_ENC_RSP(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
2
0
2
2
1
0
2
2
1
0
4
0
0
28,119
secdev/scapy
secdev_scapy/scapy/layers/bluetooth4LE.py
scapy.layers.bluetooth4LE.LL_SUBRATE_IND
from scapy.fields import BitEnumField, BitField, ByteEnumField, ByteField, Field, FlagsField, LEIntField, LEShortEnumField, LEShortField, MACField, PacketListField, SignedByteField, X3BytesField, XByteField, XIntField, XLEIntField, XLELongField, XLEShortField, XShortField from scapy.packet import Packet, bind_layers c...
class LL_SUBRATE_IND(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
9
0
9
3
8
0
3
3
2
0
4
0
0
28,120
secdev/scapy
secdev_scapy/scapy/layers/bluetooth4LE.py
scapy.layers.bluetooth4LE.LL_SUBRATE_REQ
from scapy.packet import Packet, bind_layers from scapy.fields import BitEnumField, BitField, ByteEnumField, ByteField, Field, FlagsField, LEIntField, LEShortEnumField, LEShortField, MACField, PacketListField, SignedByteField, X3BytesField, XByteField, XIntField, XLEIntField, XLELongField, XLEShortField, XShortField c...
class LL_SUBRATE_REQ(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
9
0
9
3
8
0
3
3
2
0
4
0
0
28,121
secdev/scapy
secdev_scapy/scapy/layers/bluetooth4LE.py
scapy.layers.bluetooth4LE.LL_TERMINATE_IND
from scapy.packet import Packet, bind_layers from scapy.fields import BitEnumField, BitField, ByteEnumField, ByteField, Field, FlagsField, LEIntField, LEShortEnumField, LEShortField, MACField, PacketListField, SignedByteField, X3BytesField, XByteField, XIntField, XLEIntField, XLELongField, XLEShortField, XShortField c...
class LL_TERMINATE_IND(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
5
0
5
3
4
0
3
3
2
0
4
0
0
28,122
secdev/scapy
secdev_scapy/scapy/layers/bluetooth4LE.py
scapy.layers.bluetooth4LE.LL_UNKNOWN_RSP
from scapy.fields import BitEnumField, BitField, ByteEnumField, ByteField, Field, FlagsField, LEIntField, LEShortEnumField, LEShortField, MACField, PacketListField, SignedByteField, X3BytesField, XByteField, XIntField, XLEIntField, XLELongField, XLEShortField, XShortField from scapy.packet import Packet, bind_layers c...
class LL_UNKNOWN_RSP(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
5
0
5
3
4
0
3
3
2
0
4
0
0
28,123
secdev/scapy
secdev_scapy/scapy/layers/bluetooth4LE.py
scapy.layers.bluetooth4LE.LL_VERSION_IND
from scapy.fields import BitEnumField, BitField, ByteEnumField, ByteField, Field, FlagsField, LEIntField, LEShortEnumField, LEShortField, MACField, PacketListField, SignedByteField, X3BytesField, XByteField, XIntField, XLEIntField, XLELongField, XLEShortField, XShortField from scapy.packet import Packet, bind_layers c...
class LL_VERSION_IND(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
7
0
7
3
6
0
3
3
2
0
4
0
0
28,124
secdev/scapy
secdev_scapy/scapy/layers/can.py
scapy.layers.can.BEFloatSignalField
class BEFloatSignalField(SignalField): def __init__(self, name, default, start, scaling=1, unit='', offset=0, ndigits=3): SignalField.__init__(self, name, default, start, 32, scaling, unit, offset, ndigits, '>f')
class BEFloatSignalField(SignalField): def __init__(self, name, default, start, scaling=1, unit='', offset=0, ndigits=3): pass
2
0
5
0
4
1
1
0.2
1
0
0
0
1
0
1
51
6
0
5
3
2
1
3
2
1
1
6
0
1
28,125
secdev/scapy
secdev_scapy/scapy/layers/can.py
scapy.layers.can.BESignedSignalField
class BESignedSignalField(SignalField): def __init__(self, name, default, start, size, scaling=1, unit='', offset=0, ndigits=3): SignalField.__init__(self, name, default, start, size, scaling, unit, offset, ndigits, '>b')
class BESignedSignalField(SignalField): def __init__(self, name, default, start, size, scaling=1, unit='', offset=0, ndigits=3): pass
2
0
5
0
4
1
1
0.2
1
0
0
0
1
0
1
51
6
0
5
3
2
1
3
2
1
1
6
0
1
28,126
secdev/scapy
secdev_scapy/scapy/layers/can.py
scapy.layers.can.BEUnsignedSignalField
class BEUnsignedSignalField(SignalField): def __init__(self, name, default, start, size, scaling=1, unit='', offset=0, ndigits=3): SignalField.__init__(self, name, default, start, size, scaling, unit, offset, ndigits, '>B')
class BEUnsignedSignalField(SignalField): def __init__(self, name, default, start, size, scaling=1, unit='', offset=0, ndigits=3): pass
2
0
5
0
4
1
1
0.2
1
0
0
0
1
0
1
51
6
0
5
3
2
1
3
2
1
1
6
0
1
28,127
secdev/scapy
secdev_scapy/scapy/layers/can.py
scapy.layers.can.CAN
from scapy.fields import FieldLenField, FlagsField, StrLenField, ThreeBytesField, XBitField, ScalingField, ConditionalField, LenField, ShortField from scapy.packet import Packet, bind_layers import struct from scapy.config import conf class CAN(Packet): """A implementation of CAN messages. Dissection of CAN m...
class CAN(Packet): '''A implementation of CAN messages. Dissection of CAN messages from Wireshark captures and Linux PF_CAN sockets are supported from protocol specification. See https://wiki.wireshark.org/CANopen for further information on the Wireshark dissector. Linux PF_CAN and Wireshark use di...
9
4
9
1
6
4
2
1.06
1
2
1
5
4
1
6
125
105
16
47
19
34
50
29
13
22
4
4
2
12
28,128
secdev/scapy
secdev_scapy/scapy/layers/can.py
scapy.layers.can.CANFD
from scapy.compat import chb, hex_bytes from scapy.fields import FieldLenField, FlagsField, StrLenField, ThreeBytesField, XBitField, ScalingField, ConditionalField, LenField, ShortField class CANFD(CAN): """ This class is used for distinction of CAN FD packets. """ fields_desc = [FlagsField('flags', 0,...
class CANFD(CAN): ''' This class is used for distinction of CAN FD packets. ''' def post_build(self, pkt, pay): pass
2
1
19
5
13
1
4
0.15
1
3
0
1
1
0
1
126
36
6
26
7
24
4
12
7
10
4
5
1
4
28,129
secdev/scapy
secdev_scapy/scapy/layers/can.py
scapy.layers.can.CandumpReader
from scapy.plist import PacketList import os from scapy.compat import chb, hex_bytes import gzip class CandumpReader: """A stateful candump reader. Each packet is returned as a CAN packet. Creates a CandumpReader object :param filename: filename of a candump logfile, compressed or un...
class CandumpReader: '''A stateful candump reader. Each packet is returned as a CAN packet. Creates a CandumpReader object :param filename: filename of a candump logfile, compressed or uncompressed, or a already opened file object. :param interface: Name of a interface, if candump ...
18
10
12
1
7
4
2
0.61
0
8
3
0
12
3
14
14
202
33
109
37
91
66
97
34
82
9
0
3
33
28,130
secdev/scapy
secdev_scapy/scapy/layers/can.py
scapy.layers.can.LEFloatSignalField
class LEFloatSignalField(SignalField): def __init__(self, name, default, start, scaling=1, unit='', offset=0, ndigits=3): SignalField.__init__(self, name, default, start, 32, scaling, unit, offset, ndigits, '<f')
class LEFloatSignalField(SignalField): def __init__(self, name, default, start, scaling=1, unit='', offset=0, ndigits=3): pass
2
0
5
0
4
1
1
0.2
1
0
0
0
1
0
1
51
6
0
5
3
2
1
3
2
1
1
6
0
1
28,131
secdev/scapy
secdev_scapy/scapy/layers/can.py
scapy.layers.can.LESignedSignalField
class LESignedSignalField(SignalField): def __init__(self, name, default, start, size, scaling=1, unit='', offset=0, ndigits=3): SignalField.__init__(self, name, default, start, size, scaling, unit, offset, ndigits, '<b')
class LESignedSignalField(SignalField): def __init__(self, name, default, start, size, scaling=1, unit='', offset=0, ndigits=3): pass
2
0
5
0
4
1
1
0.2
1
0
0
0
1
0
1
51
6
0
5
3
2
1
3
2
1
1
6
0
1
28,132
secdev/scapy
secdev_scapy/scapy/layers/can.py
scapy.layers.can.LEUnsignedSignalField
class LEUnsignedSignalField(SignalField): def __init__(self, name, default, start, size, scaling=1, unit='', offset=0, ndigits=3): SignalField.__init__(self, name, default, start, size, scaling, unit, offset, ndigits, '<B')
class LEUnsignedSignalField(SignalField): def __init__(self, name, default, start, size, scaling=1, unit='', offset=0, ndigits=3): pass
2
0
5
0
4
1
1
0.2
1
0
0
0
1
0
1
51
6
0
5
3
2
1
3
2
1
1
6
0
1
28,133
secdev/scapy
secdev_scapy/scapy/layers/can.py
scapy.layers.can.SignalField
from typing import Tuple, Optional, Type, List, Union, Callable, IO, Any, cast from scapy.volatile import RandFloat, RandBinFloat from scapy.fields import FieldLenField, FlagsField, StrLenField, ThreeBytesField, XBitField, ScalingField, ConditionalField, LenField, ShortField import struct from scapy.error import Scapy_...
class SignalField(ScalingField): '''SignalField is a base class for signal data, usually transmitted from CAN messages in automotive applications. Most vehicle manufacturers describe their vehicle internal signals by so called data base CAN (DBC) files. All necessary functions to easily create Scapy di...
17
1
11
1
9
1
3
0.19
1
9
4
6
8
2
12
50
172
32
120
41
102
23
96
36
83
7
5
1
30
28,134
secdev/scapy
secdev_scapy/scapy/layers/can.py
scapy.layers.can.SignalHeader
from scapy.fields import FieldLenField, FlagsField, StrLenField, ThreeBytesField, XBitField, ScalingField, ConditionalField, LenField, ShortField class SignalHeader(CAN): """Special implementation of a CAN Packet to allow dynamic binding. This class can be provided to CANSockets as basecls. Example: ...
class SignalHeader(CAN): '''Special implementation of a CAN Packet to allow dynamic binding. This class can be provided to CANSockets as basecls. Example: >>> class floatSignals(SignalPacket): >>> fields_desc = [ >>> LEFloatSignalField("floatSignal2", default=0, start=32...
4
1
5
0
4
3
1
1
1
0
0
0
1
0
2
127
43
5
21
9
13
21
6
4
3
1
5
0
2
28,135
secdev/scapy
secdev_scapy/scapy/layers/can.py
scapy.layers.can.SignalPacket
from scapy.fields import FieldLenField, FlagsField, StrLenField, ThreeBytesField, XBitField, ScalingField, ConditionalField, LenField, ShortField from scapy.error import Scapy_Exception from scapy.packet import Packet, bind_layers class SignalPacket(Packet): """Special implementation of Packet. This class enf...
class SignalPacket(Packet): '''Special implementation of Packet. This class enforces the correct wirelen of a CAN message for signal transmitting in automotive applications. Furthermore, the dissection order of SignalFields in fields_desc is deduced by the start index of a field. ''' def p...
3
2
11
1
7
4
2
1
1
3
3
0
2
1
2
121
31
4
14
4
11
14
10
4
7
2
4
1
4
28,136
secdev/scapy
secdev_scapy/scapy/layers/clns.py
scapy.layers.clns._GenericClnsPdu
from scapy.packet import Packet, bind_top_down, bind_bottom_up from scapy.config import conf from scapy.fields import ByteEnumField, PacketField class _GenericClnsPdu(Packet): name = 'Generic CLNS PDU' fields_desc = [ByteEnumField('nlpid', 0, network_layer_protocol_ids), PacketField('rawdata', None, conf.raw_l...
class _GenericClnsPdu(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
6
0
6
3
5
0
3
3
2
0
4
0
0
28,137
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.ComInterface
class ComInterface: if_version = 0 def __init__(self, name, uuid, opnums): self.name = name self.uuid = uuid self.opnums = opnums def __repr__(self): return '<COM Interface %s>' % (self.name,)
class ComInterface: def __init__(self, name, uuid, opnums): pass def __repr__(self): pass
3
0
3
0
3
0
1
0
0
0
0
0
2
3
2
2
8
1
7
6
4
0
7
6
4
1
0
0
2
28,138
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.CommonAuthVerifier
from scapy.layers.kerberos import KRB_InnerToken, Kerberos from scapy.layers.gssapi import GSSAPI_BLOB, GSSAPI_BLOB_SIGNATURE, GSS_S_COMPLETE, GSS_S_FLAGS, GSS_C_FLAGS, SSP from scapy.layers.ntlm import NTLM_Header, NTLMSSP_MESSAGE_SIGNATURE from scapy.fields import _FieldContainer, BitEnumField, BitField, ByteEnumFiel...
class CommonAuthVerifier(Packet): def is_protected(self): pass def is_ssp(self): pass def default_payload_class(self, pkt): pass
4
0
5
0
5
0
2
0.09
1
0
0
0
3
0
3
122
147
3
132
6
128
12
17
6
13
3
4
1
7
28,139
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.DCERPC_Transport
from enum import IntEnum class DCERPC_Transport(IntEnum): """ Protocols identifiers currently supported by Scapy """ NCACN_IP_TCP = 7 NCACN_NP = 15
class DCERPC_Transport(IntEnum): ''' Protocols identifiers currently supported by Scapy ''' pass
1
1
0
0
0
0
0
0
1
0
0
0
0
0
0
55
3
0
3
3
2
0
3
3
2
0
3
0
0
28,140
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.DceRpc
from scapy.packet import Packet, Raw, bind_bottom_up, bind_layers, bind_top_down, NoPayload class DceRpc(Packet): """DCE/RPC packet""" @classmethod def dispatch_hook(cls, _pkt=None, *args, **kargs): if _pkt and len(_pkt) >= 1: ver = ord(_pkt[0:1]) if ver == 4: ...
class DceRpc(Packet): '''DCE/RPC packet''' @classmethod def dispatch_hook(cls, _pkt=None, *args, **kargs): pass @classmethod def tcp_reassemble(cls, data, metadata, session): pass
5
1
8
0
8
0
4
0.1
1
2
2
2
0
0
1
120
12
1
10
4
7
1
8
3
6
4
4
2
4
28,141
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.DceRpc4
from scapy.fields import _FieldContainer, BitEnumField, BitField, ByteEnumField, ByteField, ConditionalField, EnumField, Field, FieldLenField, FieldListField, FlagsField, IntField, LEIntEnumField, LEIntField, LELongField, LEShortEnumField, LEShortField, LenField, MultipleTypeField, PacketField, PacketLenField, PacketLi...
class DceRpc4(DceRpc): ''' DCE/RPC v4 'connection-less' packet ''' pass
1
1
0
0
0
0
0
0.1
1
0
0
0
0
0
0
120
33
1
29
3
28
3
3
3
2
0
5
0
0
28,142
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.DceRpc4Payload
from scapy.error import log_runtime from scapy.packet import Packet, Raw, bind_bottom_up, bind_layers, bind_top_down, NoPayload class DceRpc4Payload(Packet): """Dummy class which use the dispatch_hook to find the payload class""" _payload_class = [] @classmethod def dispatch_hook(cls, _pkt, _underlaye...
class DceRpc4Payload(Packet): '''Dummy class which use the dispatch_hook to find the payload class''' @classmethod def dispatch_hook(cls, _pkt, _underlayer=None, *args, **kargs): '''dispatch_hook to choose among different registered payloads''' pass @classmethod def register_possibl...
5
3
6
0
4
2
2
0.33
1
1
1
0
0
0
2
121
19
3
12
7
7
4
10
5
7
3
4
2
4
28,143
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.DceRpc5
import struct from scapy.config import conf from scapy.fields import _FieldContainer, BitEnumField, BitField, ByteEnumField, ByteField, ConditionalField, EnumField, Field, FieldLenField, FieldListField, FlagsField, IntField, LEIntEnumField, LEIntField, LELongField, LEShortEnumField, LEShortField, LenField, MultipleType...
class DceRpc5(DceRpc): ''' DCE/RPC v5 'connection-oriented' packet ''' def do_dissect(self, s): pass def extract_padding(self, s): pass def post_build(self, pkt, pay): pass def answers(self, pkt): pass @classmethod def tcp_reassemble(cls, data, _,...
7
1
11
0
10
2
3
0.18
1
2
1
0
4
0
5
125
133
6
108
20
101
19
40
18
34
7
5
3
14
28,144
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.DceRpc5AbstractSyntax
from scapy.fields import _FieldContainer, BitEnumField, BitField, ByteEnumField, ByteField, ConditionalField, EnumField, Field, FieldLenField, FieldListField, FlagsField, IntField, LEIntEnumField, LEIntField, LELongField, LEShortEnumField, LEShortField, LenField, MultipleTypeField, PacketField, PacketLenField, PacketLi...
class DceRpc5AbstractSyntax(EPacket): pass
1
0
0
0
0
0
0
0.07
1
0
0
0
0
0
0
122
16
0
15
3
14
1
3
3
2
0
5
0
0
28,145
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.DceRpc5AlterContext
class DceRpc5AlterContext(_DceRpcPayload): name = 'DCE/RPC v5 - AlterContext' fields_desc = DceRpc5Bind.fields_desc
class DceRpc5AlterContext(_DceRpcPayload): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
120
3
0
3
3
2
0
3
3
2
0
5
0
0
28,146
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.DceRpc5AlterContextResp
class DceRpc5AlterContextResp(_DceRpcPayload): name = 'DCE/RPC v5 - AlterContextResp' fields_desc = DceRpc5BindAck.fields_desc
class DceRpc5AlterContextResp(_DceRpcPayload): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
120
3
0
3
3
2
0
3
3
2
0
5
0
0
28,147
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.DceRpc5Auth3
from scapy.packet import Packet, Raw, bind_bottom_up, bind_layers, bind_top_down, NoPayload from scapy.fields import _FieldContainer, BitEnumField, BitField, ByteEnumField, ByteField, ConditionalField, EnumField, Field, FieldLenField, FieldListField, FlagsField, IntField, LEIntEnumField, LEIntField, LELongField, LEShor...
class DceRpc5Auth3(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
3
0
3
3
2
0
3
3
2
0
4
0
0
28,148
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.DceRpc5Bind
from scapy.fields import _FieldContainer, BitEnumField, BitField, ByteEnumField, ByteField, ConditionalField, EnumField, Field, FieldLenField, FieldListField, FlagsField, IntField, LEIntEnumField, LEIntField, LELongField, LEShortEnumField, LEShortField, LenField, MultipleTypeField, PacketField, PacketLenField, PacketLi...
class DceRpc5Bind(_DceRpcPayload): pass
1
0
0
0
0
0
0
0.06
1
0
0
0
0
0
0
120
19
0
18
3
17
1
3
3
2
0
5
0
0
28,149
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.DceRpc5BindAck
from scapy.contrib.rtps.common_types import EField, EPacket, EPacketField, EPacketListField from scapy.fields import _FieldContainer, BitEnumField, BitField, ByteEnumField, ByteField, ConditionalField, EnumField, Field, FieldLenField, FieldListField, FlagsField, IntField, LEIntEnumField, LEIntField, LELongField, LEShor...
class DceRpc5BindAck(_DceRpcPayload): pass
1
0
0
0
0
0
0
0.05
1
0
0
0
0
0
0
120
21
0
20
3
19
1
3
3
2
0
5
0
0
28,150
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.DceRpc5BindNak
from uuid import UUID from scapy.contrib.rtps.common_types import EField, EPacket, EPacketField, EPacketListField from scapy.fields import _FieldContainer, BitEnumField, BitField, ByteEnumField, ByteField, ConditionalField, EnumField, Field, FieldLenField, FieldListField, FlagsField, IntField, LEIntEnumField, LEIntFiel...
class DceRpc5BindNak(_DceRpcPayload): pass
1
0
0
0
0
0
0
0.06
1
0
0
0
0
0
0
120
38
0
36
3
35
2
3
3
2
0
5
0
0
28,151
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.DceRpc5Context
from scapy.fields import _FieldContainer, BitEnumField, BitField, ByteEnumField, ByteField, ConditionalField, EnumField, Field, FieldLenField, FieldListField, FlagsField, IntField, LEIntEnumField, LEIntField, LELongField, LEShortEnumField, LEShortField, LenField, MultipleTypeField, PacketField, PacketLenField, PacketLi...
class DceRpc5Context(EPacket): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
122
15
0
15
3
14
0
3
3
2
0
5
0
0
28,152
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.DceRpc5Fault
from scapy.fields import _FieldContainer, BitEnumField, BitField, ByteEnumField, ByteField, ConditionalField, EnumField, Field, FieldLenField, FieldListField, FlagsField, IntField, LEIntEnumField, LEIntField, LELongField, LEShortEnumField, LEShortField, LenField, MultipleTypeField, PacketField, PacketLenField, PacketLi...
class DceRpc5Fault(_DceRpcPayload): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
120
10
0
10
3
9
0
3
3
2
0
5
0
0
28,153
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.DceRpc5PortAny
from scapy.contrib.rtps.common_types import EField, EPacket, EPacketField, EPacketListField from scapy.fields import _FieldContainer, BitEnumField, BitField, ByteEnumField, ByteField, ConditionalField, EnumField, Field, FieldLenField, FieldListField, FlagsField, IntField, LEIntEnumField, LEIntField, LELongField, LEShor...
class DceRpc5PortAny(EPacket): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
122
6
0
6
3
5
0
3
3
2
0
5
0
0
28,154
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.DceRpc5Request
from scapy.fields import _FieldContainer, BitEnumField, BitField, ByteEnumField, ByteField, ConditionalField, EnumField, Field, FieldLenField, FieldListField, FlagsField, IntField, LEIntEnumField, LEIntField, LELongField, LEShortEnumField, LEShortField, LenField, MultipleTypeField, PacketField, PacketLenField, PacketLi...
class DceRpc5Request(_DceRpcPayload): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
120
14
0
14
3
13
0
3
3
2
0
5
0
0
28,155
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.DceRpc5Response
from scapy.fields import _FieldContainer, BitEnumField, BitField, ByteEnumField, ByteField, ConditionalField, EnumField, Field, FieldLenField, FieldListField, FlagsField, IntField, LEIntEnumField, LEIntField, LELongField, LEShortEnumField, LEShortField, LenField, MultipleTypeField, PacketField, PacketLenField, PacketLi...
class DceRpc5Response(_DceRpcPayload): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
120
8
0
8
3
7
0
3
3
2
0
5
0
0
28,156
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.DceRpc5Result
from scapy.fields import _FieldContainer, BitEnumField, BitField, ByteEnumField, ByteField, ConditionalField, EnumField, Field, FieldLenField, FieldListField, FlagsField, IntField, LEIntEnumField, LEIntField, LELongField, LEShortEnumField, LEShortField, LenField, MultipleTypeField, PacketField, PacketLenField, PacketLi...
class DceRpc5Result(EPacket): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
122
17
0
17
3
16
0
3
3
2
0
5
0
0
28,157
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.DceRpc5TransferSyntax
from scapy.contrib.rtps.common_types import EField, EPacket, EPacketField, EPacketListField from scapy.fields import _FieldContainer, BitEnumField, BitField, ByteEnumField, ByteField, ConditionalField, EnumField, Field, FieldLenField, FieldListField, FlagsField, IntField, LEIntEnumField, LEIntField, LELongField, LEShor...
class DceRpc5TransferSyntax(EPacket): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
122
12
0
12
3
11
0
3
3
2
0
5
0
0
28,158
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.DceRpc5Version
from scapy.fields import _FieldContainer, BitEnumField, BitField, ByteEnumField, ByteField, ConditionalField, EnumField, Field, FieldLenField, FieldListField, FlagsField, IntField, LEIntEnumField, LEIntField, LELongField, LEShortEnumField, LEShortField, LenField, MultipleTypeField, PacketField, PacketLenField, PacketLi...
class DceRpc5Version(EPacket): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
122
6
0
6
3
5
0
3
3
2
0
5
0
0
28,159
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.DceRpcInterface
class DceRpcInterface: def __init__(self, name, uuid, version_tuple, if_version, opnums): self.name = name self.uuid = uuid self.major_version, self.minor_version = version_tuple self.if_version = if_version self.opnums = opnums def __repr__(self): return '<DCE/...
class DceRpcInterface: def __init__(self, name, uuid, version_tuple, if_version, opnums): pass def __repr__(self): pass
3
0
6
0
6
0
1
0
0
0
0
0
2
6
2
2
14
1
13
8
10
0
9
8
6
1
0
0
2
28,160
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.DceRpcSecVT
from scapy.fields import _FieldContainer, BitEnumField, BitField, ByteEnumField, ByteField, ConditionalField, EnumField, Field, FieldLenField, FieldListField, FlagsField, IntField, LEIntEnumField, LEIntField, LELongField, LEShortEnumField, LEShortField, LenField, MultipleTypeField, PacketField, PacketLenField, PacketLi...
class DceRpcSecVT(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
6
0
6
3
5
0
3
3
2
0
4
0
0
28,161
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.DceRpcSecVTBitmask
from scapy.fields import _FieldContainer, BitEnumField, BitField, ByteEnumField, ByteField, ConditionalField, EnumField, Field, FieldLenField, FieldListField, FlagsField, IntField, LEIntEnumField, LEIntField, LELongField, LEShortEnumField, LEShortField, LenField, MultipleTypeField, PacketField, PacketLenField, PacketLi...
class DceRpcSecVTBitmask(Packet): def default_payload_class(self, pkt): pass
2
0
2
0
2
0
1
0
1
0
0
0
1
0
1
120
8
1
7
4
5
0
5
4
3
1
4
0
1
28,162
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.DceRpcSecVTCommand
from scapy.packet import Packet, Raw, bind_bottom_up, bind_layers, bind_top_down, NoPayload from scapy.fields import _FieldContainer, BitEnumField, BitField, ByteEnumField, ByteField, ConditionalField, EnumField, Field, FieldLenField, FieldListField, FlagsField, IntField, LEIntEnumField, LEIntField, LELongField, LEShor...
class DceRpcSecVTCommand(Packet): pass
1
0
8
0
8
0
4
0
1
3
3
0
1
0
1
120
27
1
26
4
24
0
9
4
7
4
4
1
4
28,163
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.DceRpcSecVTHeader2
from scapy.packet import Packet, Raw, bind_bottom_up, bind_layers, bind_top_down, NoPayload from scapy.fields import _FieldContainer, BitEnumField, BitField, ByteEnumField, ByteField, ConditionalField, EnumField, Field, FieldLenField, FieldListField, FlagsField, IntField, LEIntEnumField, LEIntField, LELongField, LEShor...
class DceRpcSecVTHeader2(Packet): def default_payload_class(self, pkt): pass
2
0
2
0
2
0
1
0
1
0
0
0
1
0
1
120
14
1
13
4
11
0
5
4
3
1
4
0
1
28,164
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.DceRpcSecVTPcontext
from scapy.config import conf from scapy.fields import _FieldContainer, BitEnumField, BitField, ByteEnumField, ByteField, ConditionalField, EnumField, Field, FieldLenField, FieldListField, FlagsField, IntField, LEIntEnumField, LEIntField, LELongField, LEShortEnumField, LEShortField, LenField, MultipleTypeField, PacketF...
class DceRpcSecVTPcontext(Packet): def default_payload_class(self, pkt): pass
2
0
2
0
2
0
1
0
1
0
0
0
1
0
1
120
24
1
23
4
21
0
5
4
3
1
4
0
1
28,165
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.DceRpcSession
from scapy.error import log_runtime import collections from scapy.sessions import DefaultSession from scapy.layers.gssapi import GSSAPI_BLOB, GSSAPI_BLOB_SIGNATURE, GSS_S_COMPLETE, GSS_S_FLAGS, GSS_C_FLAGS, SSP from scapy.config import conf from scapy.packet import Packet, Raw, bind_bottom_up, bind_layers, bind_top_dow...
class DceRpcSession(DefaultSession): ''' A DCE/RPC session within a TCP socket. ''' def __init__(self, *args, **kwargs): pass def _up_pkt(self, pkt): ''' Common function to handle the DCE/RPC session: what interfaces are bind, opnums, etc. ''' pass ...
8
5
53
0
41
12
8
0.35
1
19
14
0
7
12
7
10
401
14
291
50
283
102
167
50
159
23
2
4
57
28,166
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.DceRpcSocket
from scapy.supersocket import StreamSocket class DceRpcSocket(StreamSocket): """ A Wrapper around StreamSocket that uses a DceRpcSession """ def __init__(self, *args, **kwargs): self.transport = kwargs.pop('transport', None) self.session = DceRpcSession(ssp=kwargs.pop('ssp', None), aut...
class DceRpcSocket(StreamSocket): ''' A Wrapper around StreamSocket that uses a DceRpcSession ''' def __init__(self, *args, **kwargs): pass def send(self, x, **kwargs): pass def recv(self, x=None): pass
4
1
5
0
5
0
2
0.19
1
2
1
0
3
1
3
39
22
3
16
7
12
3
11
7
7
2
6
1
5
28,167
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.NDRAlign
from scapy.fields import _FieldContainer, BitEnumField, BitField, ByteEnumField, ByteField, ConditionalField, EnumField, Field, FieldLenField, FieldListField, FlagsField, IntField, LEIntEnumField, LEIntField, LELongField, LEShortEnumField, LEShortField, LenField, MultipleTypeField, PacketField, PacketLenField, PacketLi...
class NDRAlign(_NDRAlign, ReversePadField): ''' ReversePadField modified to fit NDR. - If no align size is specified, use the one from the inner field - Size is calculated from the beginning of the NDR stream ''' def __init__(self, fld, align, padwith=None): pass
2
1
2
0
2
0
1
1.67
2
1
0
3
1
0
1
11
10
2
3
2
1
5
3
2
1
1
4
0
1
28,168
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.NDRByteField
from scapy.fields import _FieldContainer, BitEnumField, BitField, ByteEnumField, ByteField, ConditionalField, EnumField, Field, FieldLenField, FieldListField, FlagsField, IntField, LEIntEnumField, LEIntField, LELongField, LEShortEnumField, LEShortField, LenField, MultipleTypeField, PacketField, PacketLenField, PacketLi...
class NDRByteField(_NDRLenField, ByteField): pass
1
0
0
0
0
0
0
0
2
0
0
0
0
0
0
36
2
0
2
1
1
0
2
1
1
0
5
0
0
28,169
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.NDRConfFieldListField
class NDRConfFieldListField(_NDRConfField, NDRFieldListField): """ NDR Conformant FieldListField """ COUNT_FROM = True
class NDRConfFieldListField(_NDRConfField, NDRFieldListField): ''' NDR Conformant FieldListField ''' pass
1
1
0
0
0
0
0
1.5
2
0
0
0
0
0
0
58
6
1
2
2
1
3
2
2
1
0
6
0
0
28,170
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.NDRConfPacketListField
class NDRConfPacketListField(_NDRConfField, _NDRPacketListField): """ NDR Conformant PacketListField """ COUNT_FROM = True
class NDRConfPacketListField(_NDRConfField, _NDRPacketListField): ''' NDR Conformant PacketListField ''' pass
1
1
0
0
0
0
0
1.5
2
0
0
0
0
0
0
72
6
1
2
2
1
3
2
2
1
0
8
0
0
28,171
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.NDRConfStrLenField
from scapy.fields import _FieldContainer, BitEnumField, BitField, ByteEnumField, ByteField, ConditionalField, EnumField, Field, FieldLenField, FieldListField, FlagsField, IntField, LEIntEnumField, LEIntField, LELongField, LEShortEnumField, LEShortField, LenField, MultipleTypeField, PacketField, PacketLenField, PacketLi...
class NDRConfStrLenField(_NDRConfField, _NDRValueOf, StrLenField): ''' 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. ''' pass
1
1
0
0
0
0
0
1.67
3
0
0
0
0
0
0
54
10
2
3
3
2
5
3
3
2
0
7
0
0
28,172
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.NDRConfStrLenFieldUtf16
from scapy.fields import _FieldContainer, BitEnumField, BitField, ByteEnumField, ByteField, ConditionalField, EnumField, Field, FieldLenField, FieldListField, FlagsField, IntField, LEIntEnumField, LEIntField, LELongField, LEShortEnumField, LEShortField, LenField, MultipleTypeField, PacketField, PacketLenField, PacketLi...
class NDRConfStrLenFieldUtf16(_NDRConfField, _NDRValueOf, StrLenFieldUtf16, _NDRUtf16): ''' NDR Conformant StrLenFieldUtf16. See NDRConfStrLenField for comment. ''' pass
1
1
0
0
0
0
0
1
4
0
0
0
0
0
0
60
10
2
4
4
3
4
4
4
3
0
8
0
0
28,173
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.NDRConfVarFieldListField
class NDRConfVarFieldListField(_NDRConfField, _NDRVarField, NDRFieldListField): """ NDR Conformant Varying FieldListField """ COUNT_FROM = True
class NDRConfVarFieldListField(_NDRConfField, _NDRVarField, NDRFieldListField): ''' NDR Conformant Varying FieldListField ''' pass
1
1
0
0
0
0
0
1.5
3
0
0
0
0
0
0
67
6
1
2
2
1
3
2
2
1
0
6
0
0
28,174
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.NDRConfVarPacketListField
class NDRConfVarPacketListField(_NDRConfField, _NDRVarField, _NDRPacketListField): """ NDR Conformant Varying PacketListField """ COUNT_FROM = True
class NDRConfVarPacketListField(_NDRConfField, _NDRVarField, _NDRPacketListField): ''' NDR Conformant Varying PacketListField ''' pass
1
1
0
0
0
0
0
1.5
3
0
0
0
0
0
0
81
6
1
2
2
1
3
2
2
1
0
8
0
0
28,175
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.NDRConfVarStrLenField
from scapy.fields import _FieldContainer, BitEnumField, BitField, ByteEnumField, ByteField, ConditionalField, EnumField, Field, FieldLenField, FieldListField, FlagsField, IntField, LEIntEnumField, LEIntField, LELongField, LEShortEnumField, LEShortField, LenField, MultipleTypeField, PacketField, PacketLenField, PacketLi...
class NDRConfVarStrLenField(_NDRConfField, _NDRVarField, _NDRValueOf, StrLenField): ''' NDR Conformant Varying StrLenField ''' pass
1
1
0
0
0
0
0
1.5
4
0
0
0
0
0
0
63
6
1
2
2
1
3
2
2
1
0
7
0
0
28,176
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.NDRConfVarStrLenFieldUtf16
from scapy.fields import _FieldContainer, BitEnumField, BitField, ByteEnumField, ByteField, ConditionalField, EnumField, Field, FieldLenField, FieldListField, FlagsField, IntField, LEIntEnumField, LEIntField, LELongField, LEShortEnumField, LEShortField, LenField, MultipleTypeField, PacketField, PacketLenField, PacketLi...
class NDRConfVarStrLenFieldUtf16(_NDRConfField, _NDRVarField, _NDRValueOf, StrLenFieldUtf16, _NDRUtf16): ''' NDR Conformant Varying StrLenFieldUtf16 ''' pass
1
1
0
0
0
0
0
0.6
5
0
0
0
0
0
0
69
9
1
5
5
2
3
3
3
2
0
8
0
0
28,177
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.NDRConfVarStrNullField
from scapy.fields import _FieldContainer, BitEnumField, BitField, ByteEnumField, ByteField, ConditionalField, EnumField, Field, FieldLenField, FieldListField, FlagsField, IntField, LEIntEnumField, LEIntField, LELongField, LEShortEnumField, LEShortField, LenField, MultipleTypeField, PacketField, PacketLenField, PacketLi...
class NDRConfVarStrNullField(_NDRConfField, _NDRVarField, _NDRValueOf, StrNullField): ''' NDR Conformant Varying StrNullField ''' pass
1
1
0
0
0
0
0
1.5
4
0
0
0
0
0
0
64
6
1
2
2
1
3
2
2
1
0
7
0
0
28,178
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.NDRConfVarStrNullFieldUtf16
from scapy.fields import _FieldContainer, BitEnumField, BitField, ByteEnumField, ByteField, ConditionalField, EnumField, Field, FieldLenField, FieldListField, FlagsField, IntField, LEIntEnumField, LEIntField, LELongField, LEShortEnumField, LEShortField, LenField, MultipleTypeField, PacketField, PacketLenField, PacketLi...
class NDRConfVarStrNullFieldUtf16(_NDRConfField, _NDRVarField, _NDRValueOf, StrNullFieldUtf16, _NDRUtf16): ''' NDR Conformant Varying StrNullFieldUtf16 ''' pass
1
1
0
0
0
0
0
0.6
5
0
0
0
0
0
0
70
9
1
5
5
2
3
3
3
2
0
8
0
0
28,179
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.NDRConformantArray
from scapy.packet import Packet, Raw, bind_bottom_up, bind_layers, bind_top_down, NoPayload from scapy.config import conf from scapy.fields import _FieldContainer, BitEnumField, BitField, ByteEnumField, ByteField, ConditionalField, EnumField, Field, FieldLenField, FieldListField, FlagsField, IntField, LEIntEnumField, L...
class NDRConformantArray(_NDRPacket): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
129
27
0
27
2
26
0
2
2
1
0
5
0
0
28,180
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.NDRConformantString
from scapy.fields import _FieldContainer, BitEnumField, BitField, ByteEnumField, ByteField, ConditionalField, EnumField, Field, FieldLenField, FieldListField, FlagsField, IntField, LEIntEnumField, LEIntField, LELongField, LEShortEnumField, LEShortField, LenField, MultipleTypeField, PacketField, PacketLenField, PacketLi...
class NDRConformantString(_NDRPacket): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
129
8
0
8
2
7
0
2
2
1
0
5
0
0
28,181
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.NDRConstructedType
import collections class NDRConstructedType(object): def __init__(self, fields): self.handles_deferred = False self.ndr_fields = fields self.rec_check_deferral() def rec_check_deferral(self): for f in self.ndr_fields: if isinstance(f, NDRFullPointerField) and f.EMB...
class NDRConstructedType(object): def __init__(self, fields): pass def rec_check_deferral(self): pass def getfield(self, pkt, s): pass def read_deferred_pointers(self, pkt, s): pass def addfield(self, pkt, s, val): pass def add_deferred_pointers(sel...
7
0
11
0
9
2
3
0.25
1
4
3
4
6
2
6
6
71
5
53
16
46
13
53
16
46
5
1
3
18
28,182
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.NDRContextHandle
from scapy.config import conf from scapy.fields import _FieldContainer, BitEnumField, BitField, ByteEnumField, ByteField, ConditionalField, EnumField, Field, FieldLenField, FieldListField, FlagsField, IntField, LEIntEnumField, LEIntField, LELongField, LEShortEnumField, LEShortField, LenField, MultipleTypeField, PacketF...
class NDRContextHandle(NDRPacket): def guess_payload_class(self, payload): pass
2
0
2
0
2
0
1
0
1
0
0
0
1
0
1
131
9
1
8
4
6
0
5
4
3
1
6
0
1
28,183
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.NDRFieldListField
from scapy.fields import _FieldContainer, BitEnumField, BitField, ByteEnumField, ByteField, ConditionalField, EnumField, Field, FieldLenField, FieldListField, FlagsField, IntField, LEIntEnumField, LEIntField, LELongField, LEShortEnumField, LEShortField, LenField, MultipleTypeField, PacketField, PacketLenField, PacketLi...
class NDRFieldListField(NDRConstructedType, FieldListField): ''' A FieldListField for NDR ''' def __init__(self, *args, **kwargs): pass def i2len(self, pkt, x): pass def valueof(self, pkt, x): pass
4
1
4
0
4
0
2
0.29
2
0
0
2
3
0
3
48
21
4
14
5
10
4
13
5
9
3
5
1
5
28,184
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.NDRFullPointerField
from functools import partial from scapy.fields import _FieldContainer, BitEnumField, BitField, ByteEnumField, ByteField, ConditionalField, EnumField, Field, FieldLenField, FieldListField, FlagsField, IntField, LEIntEnumField, LEIntField, LELongField, LEShortEnumField, LEShortField, LenField, MultipleTypeField, PacketF...
class NDRFullPointerField(_FieldContainer): ''' A NDR Full/Unique pointer field encapsulation. :param EMBEDDED: This pointer is embedded. This means that it's representation will not appear after the pointer (pointer deferral applies). See [C706] 14.3.12.3 - Algori...
10
1
7
0
7
0
2
0.16
1
5
3
1
9
3
9
10
83
11
62
20
52
10
48
20
38
4
2
1
17
28,185
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.NDRIEEEDoubleField
class NDRIEEEDoubleField(_NDRField): FMT = 'd' ALIGN = (8, 8)
class NDRIEEEDoubleField(_NDRField): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
37
3
0
3
3
2
0
3
3
2
0
6
0
0
28,186
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.NDRIEEEFloatField
class NDRIEEEFloatField(_NDRField): FMT = 'f' ALIGN = (4, 4)
class NDRIEEEFloatField(_NDRField): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
37
3
0
3
3
2
0
3
3
2
0
6
0
0
28,187
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.NDRInt3264EnumField
class NDRInt3264EnumField(NDRAlign): def __init__(self, *args, **kwargs): super(NDRInt3264EnumField, self).__init__(_NDREnumField(*args, **kwargs), align=(2, 4))
class NDRInt3264EnumField(NDRAlign): def __init__(self, *args, **kwargs): pass
2
0
4
0
4
0
1
0
1
2
1
0
1
0
1
12
5
0
5
2
3
0
3
2
1
1
5
0
1
28,188
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.NDRInt3264Field
from scapy.fields import _FieldContainer, BitEnumField, BitField, ByteEnumField, ByteField, ConditionalField, EnumField, Field, FieldLenField, FieldListField, FlagsField, IntField, LEIntEnumField, LEIntField, LELongField, LEShortEnumField, LEShortField, LenField, MultipleTypeField, PacketField, PacketLenField, PacketLi...
class NDRInt3264Field(_NDRLenField): def getfield(self, pkt, s): pass def addfield(self, pkt, s, val): pass
3
0
4
0
4
0
1
0
1
1
1
1
2
0
2
37
12
2
10
6
7
0
8
6
5
1
5
0
2
28,189
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.NDRIntEnumField
from scapy.fields import _FieldContainer, BitEnumField, BitField, ByteEnumField, ByteField, ConditionalField, EnumField, Field, FieldLenField, FieldListField, FlagsField, IntField, LEIntEnumField, LEIntField, LELongField, LEShortEnumField, LEShortField, LenField, MultipleTypeField, PacketField, PacketLenField, PacketLi...
class NDRIntEnumField(_NDRValueOf, NDRAlign): def __init__(self, *args, **kwargs): pass
2
0
4
0
4
0
1
0.2
2
2
1
0
1
0
1
13
6
0
5
2
3
1
3
2
1
1
5
0
1
28,190
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.NDRIntField
class NDRIntField(_NDRField): FMT = 'I' ALIGN = (4, 4)
class NDRIntField(_NDRField): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
37
3
0
3
3
2
0
3
3
2
0
6
0
0
28,191
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.NDRLongField
class NDRLongField(_NDRField): FMT = 'Q' ALIGN = (8, 8)
class NDRLongField(_NDRField): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
37
3
0
3
3
2
0
3
3
2
0
6
0
0
28,192
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.NDRPacket
class NDRPacket(_NDRPacket, metaclass=_NDRPacketMetaclass): """ A NDR Packet. Handles pointer size & endianness """ __slots__ = ['_align'] ALIGNMENT = (1, 1) DEPORTED_CONFORMANTS = []
class NDRPacket(_NDRPacket, metaclass=_NDRPacketMetaclass): ''' A NDR Packet. Handles pointer size & endianness ''' pass
1
1
0
0
0
0
0
1.5
2
0
0
100
0
0
0
130
12
2
4
4
3
6
4
4
3
0
5
0
0
28,193
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.NDRPacketField
class NDRPacketField(NDRConstructedType, NDRAlign): def __init__(self, name, default, pkt_cls, **kwargs): self.DEPORTED_CONFORMANTS = pkt_cls.DEPORTED_CONFORMANTS self.fld = _NDRPacketField(name, default, pkt_cls=pkt_cls, **kwargs) NDRAlign.__init__(self, _NDRPacketPadField(self.fld, align=...
class NDRPacketField(NDRConstructedType, NDRAlign): def __init__(self, name, default, pkt_cls, **kwargs): pass def getfield(self, pkt, x): pass def addfield(self, pkt, s, x): pass
4
0
14
0
12
2
3
0.16
2
4
2
0
3
2
3
20
46
2
38
15
34
6
32
15
28
5
5
3
10
28,194
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.NDRPointer
from scapy.config import conf from scapy.fields import _FieldContainer, BitEnumField, BitField, ByteEnumField, ByteField, ConditionalField, EnumField, Field, FieldLenField, FieldListField, FlagsField, IntField, LEIntEnumField, LEIntField, LELongField, LEShortEnumField, LEShortField, LenField, MultipleTypeField, PacketF...
class NDRPointer(_NDRPacket): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
129
8
0
8
2
7
0
2
2
1
0
5
0
0
28,195
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.NDRRefEmbPointerField
class NDRRefEmbPointerField(NDRFullPointerField): """ A NDR Embedded Reference pointer. Same as NDRFullPointerField with EMBEDDED = True and EMBEDDED_REF = True. """ EMBEDDED = True EMBEDDED_REF = True
class NDRRefEmbPointerField(NDRFullPointerField): ''' A NDR Embedded Reference pointer. Same as NDRFullPointerField with EMBEDDED = True and EMBEDDED_REF = True. ''' pass
1
1
0
0
0
0
0
1.5
1
0
0
0
0
0
0
10
6
1
2
2
1
3
2
2
1
0
3
0
0
28,196
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.NDRSerialization1Header
from scapy.fields import _FieldContainer, BitEnumField, BitField, ByteEnumField, ByteField, ConditionalField, EnumField, Field, FieldLenField, FieldListField, FlagsField, IntField, LEIntEnumField, LEIntField, LELongField, LEShortEnumField, LEShortField, LenField, MultipleTypeField, PacketField, PacketLenField, PacketLi...
class NDRSerialization1Header(Packet): def _ndrlayer(self): pass def getfield_and_val(self, attr): pass def valueof(self, name): pass
4
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
7
0
7
2
6
0
2
2
1
0
4
0
0
28,197
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.NDRSerialization1PrivateHeader
from scapy.contrib.rtps.common_types import EField, EPacket, EPacketField, EPacketListField from scapy.packet import Packet, Raw, bind_bottom_up, bind_layers, bind_top_down, NoPayload from scapy.fields import _FieldContainer, BitEnumField, BitField, ByteEnumField, ByteField, ConditionalField, EnumField, Field, FieldLen...
class NDRSerialization1PrivateHeader(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
7
0
7
2
6
0
2
2
1
0
4
0
0
28,198
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.NDRSerializeType1PacketField
from scapy.fields import _FieldContainer, BitEnumField, BitField, ByteEnumField, ByteField, ConditionalField, EnumField, Field, FieldLenField, FieldListField, FlagsField, IntField, LEIntEnumField, LEIntField, LELongField, LEShortEnumField, LEShortField, LenField, MultipleTypeField, PacketField, PacketLenField, PacketLi...
class NDRSerializeType1PacketField(_NDRSerializeType1, PacketField): pass
1
0
0
0
0
0
0
0
2
0
0
0
0
0
0
50
2
0
2
2
1
0
2
2
1
0
8
0
0
28,199
secdev/scapy
secdev_scapy/scapy/layers/dcerpc.py
scapy.layers.dcerpc.NDRSerializeType1PacketLenField
from scapy.fields import _FieldContainer, BitEnumField, BitField, ByteEnumField, ByteField, ConditionalField, EnumField, Field, FieldLenField, FieldListField, FlagsField, IntField, LEIntEnumField, LEIntField, LELongField, LEShortEnumField, LEShortField, LenField, MultipleTypeField, PacketField, PacketLenField, PacketLi...
class NDRSerializeType1PacketLenField(_NDRSerializeType1, PacketLenField): pass
1
0
0
0
0
0
0
0
2
0
0
1
0
0
0
51
2
0
2
2
1
0
2
2
1
0
8
0
0