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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
25,600 | secdev/scapy | secdev_scapy/scapy/contrib/diameter.py | scapy.contrib.diameter.DRCode | class DRCode(I3BytesEnumField):
def __init__(self, name, default, enum):
"""enum is a dict of tuples, so conversion is required before calling the actual init method. # noqa: E501
Note: the conversion is done only once."""
enumDict = {}
for k, v in enum.items():
enum... | class DRCode(I3BytesEnumField):
def __init__(self, name, default, enum):
'''enum is a dict of tuples, so conversion is required before calling the actual init method. # noqa: E501
Note: the conversion is done only once.'''
pass
def i2repr(self, pkt, x):
pass | 3 | 1 | 7 | 0 | 6 | 1 | 2 | 0.17 | 1 | 1 | 0 | 0 | 2 | 0 | 2 | 49 | 15 | 1 | 12 | 7 | 9 | 2 | 12 | 7 | 9 | 2 | 8 | 1 | 4 |
25,601 | secdev/scapy | secdev_scapy/scapy/contrib/diameter.py | scapy.contrib.diameter.DRFlags | from scapy.fields import ConditionalField, EnumField, Field, FieldLenField, FlagsField, IEEEDoubleField, IEEEFloatField, IntEnumField, IntField, LongField, PacketListField, SignedIntField, StrLenField, X3BytesField, XByteField, XIntField
class DRFlags(FlagsField):
def i2repr(self, pkt, x):
if x is None:
... |
class DRFlags(FlagsField):
def i2repr(self, pkt, x):
pass | 2 | 0 | 18 | 0 | 18 | 2 | 5 | 0.11 | 1 | 3 | 0 | 0 | 1 | 0 | 1 | 44 | 19 | 0 | 19 | 9 | 17 | 2 | 18 | 9 | 16 | 5 | 6 | 1 | 5 |
25,602 | secdev/scapy | secdev_scapy/scapy/contrib/diameter.py | scapy.contrib.diameter.DiamG | from scapy.fields import ConditionalField, EnumField, Field, FieldLenField, FlagsField, IEEEDoubleField, IEEEFloatField, IntEnumField, IntField, LongField, PacketListField, SignedIntField, StrLenField, X3BytesField, XByteField, XIntField
from scapy.packet import Packet, bind_layers
class DiamG(Packet):
""" Gener... |
class DiamG(Packet):
''' Generic class defining all the Diameter fields'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.26 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 29 | 0 | 23 | 3 | 22 | 6 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
25,603 | secdev/scapy | secdev_scapy/scapy/contrib/diameter.py | scapy.contrib.diameter.Enumerated | from scapy.fields import ConditionalField, EnumField, Field, FieldLenField, FlagsField, IEEEDoubleField, IEEEFloatField, IntEnumField, IntField, LongField, PacketListField, SignedIntField, StrLenField, X3BytesField, XByteField, XIntField
class Enumerated(IntEnumField):
def i2repr(self, pkt, x):
if x in se... |
class Enumerated(IntEnumField):
def i2repr(self, pkt, x):
pass | 2 | 0 | 5 | 0 | 5 | 0 | 2 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 42 | 6 | 0 | 6 | 2 | 4 | 0 | 5 | 2 | 3 | 2 | 7 | 1 | 2 |
25,604 | secdev/scapy | secdev_scapy/scapy/contrib/diameter.py | scapy.contrib.diameter.Float32 | from scapy.fields import ConditionalField, EnumField, Field, FieldLenField, FlagsField, IEEEDoubleField, IEEEFloatField, IntEnumField, IntField, LongField, PacketListField, SignedIntField, StrLenField, X3BytesField, XByteField, XIntField
class Float32(IEEEFloatField):
pass |
class Float32(IEEEFloatField):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 33 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 5 | 0 | 0 |
25,605 | secdev/scapy | secdev_scapy/scapy/contrib/diameter.py | scapy.contrib.diameter.Float64 | from scapy.fields import ConditionalField, EnumField, Field, FieldLenField, FlagsField, IEEEDoubleField, IEEEFloatField, IntEnumField, IntField, LongField, PacketListField, SignedIntField, StrLenField, X3BytesField, XByteField, XIntField
class Float64(IEEEDoubleField):
pass |
class Float64(IEEEDoubleField):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 33 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 5 | 0 | 0 |
25,606 | secdev/scapy | secdev_scapy/scapy/contrib/diameter.py | scapy.contrib.diameter.Grouped | from scapy.fields import ConditionalField, EnumField, Field, FieldLenField, FlagsField, IEEEDoubleField, IEEEFloatField, IntEnumField, IntField, LongField, PacketListField, SignedIntField, StrLenField, X3BytesField, XByteField, XIntField
class Grouped(StrLenField):
"""This class is just for declarative purpose bec... |
class Grouped(StrLenField):
'''This class is just for declarative purpose because it is used in the AVP definitions dict.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 43 | 3 | 0 | 2 | 1 | 1 | 1 | 2 | 1 | 1 | 0 | 7 | 0 | 0 |
25,607 | secdev/scapy | secdev_scapy/scapy/contrib/diameter.py | scapy.contrib.diameter.I3BytesEnumField | from scapy.fields import ConditionalField, EnumField, Field, FieldLenField, FlagsField, IEEEDoubleField, IEEEFloatField, IntEnumField, IntField, LongField, PacketListField, SignedIntField, StrLenField, X3BytesField, XByteField, XIntField
class I3BytesEnumField(X3BytesField, EnumField):
""" 3 bytes enum field """
... |
class I3BytesEnumField(X3BytesField, EnumField):
''' 3 bytes enum field '''
def __init__(self, name, default, enum):
pass | 2 | 1 | 2 | 0 | 2 | 0 | 1 | 0.33 | 2 | 0 | 0 | 1 | 1 | 0 | 1 | 47 | 5 | 1 | 3 | 2 | 1 | 1 | 3 | 2 | 1 | 1 | 7 | 0 | 1 |
25,608 | secdev/scapy | secdev_scapy/scapy/contrib/diameter.py | scapy.contrib.diameter.I3FieldLenField | from scapy.fields import ConditionalField, EnumField, Field, FieldLenField, FlagsField, IEEEDoubleField, IEEEFloatField, IntEnumField, IntField, LongField, PacketListField, SignedIntField, StrLenField, X3BytesField, XByteField, XIntField
class I3FieldLenField(X3BytesField, FieldLenField):
__slots__ = ['length_of',... |
class I3FieldLenField(X3BytesField, FieldLenField):
def __init__(self, name, default, length_of=None, count_of=None, adjust=lambda pkt, x: x):
pass
def i2m(self, pkt, x):
pass | 3 | 0 | 7 | 0 | 7 | 0 | 1 | 0 | 2 | 0 | 0 | 0 | 2 | 3 | 2 | 42 | 18 | 2 | 16 | 14 | 6 | 0 | 9 | 7 | 6 | 1 | 7 | 0 | 2 |
25,609 | secdev/scapy | secdev_scapy/scapy/contrib/diameter.py | scapy.contrib.diameter.IPFilterRule | from scapy.fields import ConditionalField, EnumField, Field, FieldLenField, FlagsField, IEEEDoubleField, IEEEFloatField, IntEnumField, IntField, LongField, PacketListField, SignedIntField, StrLenField, X3BytesField, XByteField, XIntField
class IPFilterRule(StrLenField):
pass |
class IPFilterRule(StrLenField):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 43 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 7 | 0 | 0 |
25,610 | secdev/scapy | secdev_scapy/scapy/contrib/diameter.py | scapy.contrib.diameter.ISDN | from scapy.fields import ConditionalField, EnumField, Field, FieldLenField, FlagsField, IEEEDoubleField, IEEEFloatField, IntEnumField, IntField, LongField, PacketListField, SignedIntField, StrLenField, X3BytesField, XByteField, XIntField
from scapy.compat import chb, orb, raw, bytes_hex, plain_str
class ISDN(StrLenFie... |
class ISDN(StrLenField):
def i2repr(self, pkt, x):
pass
def any2i(self, pkt, x):
pass | 3 | 0 | 12 | 0 | 12 | 2 | 4 | 0.12 | 1 | 0 | 0 | 0 | 2 | 0 | 2 | 45 | 26 | 1 | 25 | 12 | 22 | 3 | 24 | 12 | 21 | 5 | 7 | 3 | 8 |
25,611 | secdev/scapy | secdev_scapy/scapy/contrib/diameter.py | scapy.contrib.diameter.Integer32 | from scapy.fields import ConditionalField, EnumField, Field, FieldLenField, FlagsField, IEEEDoubleField, IEEEFloatField, IntEnumField, IntField, LongField, PacketListField, SignedIntField, StrLenField, X3BytesField, XByteField, XIntField
class Integer32(SignedIntField):
pass |
class Integer32(SignedIntField):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 33 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 5 | 0 | 0 |
25,612 | secdev/scapy | secdev_scapy/scapy/contrib/diameter.py | scapy.contrib.diameter.Integer64 | from scapy.fields import ConditionalField, EnumField, Field, FieldLenField, FlagsField, IEEEDoubleField, IEEEFloatField, IntEnumField, IntField, LongField, PacketListField, SignedIntField, StrLenField, X3BytesField, XByteField, XIntField
class Integer64(Field):
def __init__(self, name, default):
Field.__i... |
class Integer64(Field):
def __init__(self, name, default):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 33 | 3 | 0 | 3 | 2 | 1 | 0 | 3 | 2 | 1 | 1 | 4 | 0 | 1 |
25,613 | secdev/scapy | secdev_scapy/scapy/contrib/diameter.py | scapy.contrib.diameter.OctetString | from scapy.fields import ConditionalField, EnumField, Field, FieldLenField, FlagsField, IEEEDoubleField, IEEEFloatField, IntEnumField, IntField, LongField, PacketListField, SignedIntField, StrLenField, X3BytesField, XByteField, XIntField
from scapy.compat import chb, orb, raw, bytes_hex, plain_str
class OctetString(St... |
class OctetString(StrLenField):
def i2repr(self, pkt, x):
pass | 2 | 0 | 5 | 0 | 5 | 0 | 2 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 44 | 6 | 0 | 6 | 2 | 4 | 0 | 6 | 2 | 4 | 2 | 7 | 1 | 2 |
25,614 | secdev/scapy | secdev_scapy/scapy/contrib/diameter.py | scapy.contrib.diameter.QoSFilterRule | from scapy.fields import ConditionalField, EnumField, Field, FieldLenField, FlagsField, IEEEDoubleField, IEEEFloatField, IntEnumField, IntField, LongField, PacketListField, SignedIntField, StrLenField, X3BytesField, XByteField, XIntField
class QoSFilterRule(StrLenField):
pass |
class QoSFilterRule(StrLenField):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 43 | 2 | 0 | 2 | 1 | 1 | 1 | 2 | 1 | 1 | 0 | 7 | 0 | 0 |
25,615 | secdev/scapy | secdev_scapy/scapy/contrib/diameter.py | scapy.contrib.diameter.Time | from time import ctime
from scapy.fields import ConditionalField, EnumField, Field, FieldLenField, FlagsField, IEEEDoubleField, IEEEFloatField, IntEnumField, IntField, LongField, PacketListField, SignedIntField, StrLenField, X3BytesField, XByteField, XIntField
class Time(IntField):
def i2repr(self, pkt, x):
... |
class Time(IntField):
def i2repr(self, pkt, x):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 34 | 3 | 0 | 3 | 2 | 1 | 0 | 3 | 2 | 1 | 1 | 5 | 0 | 1 |
25,616 | secdev/scapy | secdev_scapy/scapy/contrib/diameter.py | scapy.contrib.diameter.Unsigned32 | from scapy.fields import ConditionalField, EnumField, Field, FieldLenField, FlagsField, IEEEDoubleField, IEEEFloatField, IntEnumField, IntField, LongField, PacketListField, SignedIntField, StrLenField, X3BytesField, XByteField, XIntField
class Unsigned32(IntField):
pass |
class Unsigned32(IntField):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 33 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 5 | 0 | 0 |
25,617 | secdev/scapy | secdev_scapy/scapy/contrib/diameter.py | scapy.contrib.diameter.Unsigned64 | from scapy.fields import ConditionalField, EnumField, Field, FieldLenField, FlagsField, IEEEDoubleField, IEEEFloatField, IntEnumField, IntField, LongField, PacketListField, SignedIntField, StrLenField, X3BytesField, XByteField, XIntField
class Unsigned64(LongField):
pass |
class Unsigned64(LongField):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 33 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 5 | 0 | 0 |
25,618 | secdev/scapy | secdev_scapy/scapy/contrib/dtp.py | scapy.contrib.dtp.DTP | from scapy.packet import Packet, bind_layers
from scapy.fields import ByteField, FieldLenField, MACField, PacketListField, ShortField, StrLenField, XShortField
class DTP(Packet):
name = 'DTP'
fields_desc = [ByteField('ver', 1), PacketListField('tlvlist', [], DtpGenericTlv)] |
class DTP(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 4 | 0 | 4 | 3 | 3 | 0 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
25,619 | secdev/scapy | secdev_scapy/scapy/contrib/dtp.py | scapy.contrib.dtp.DTPDomain | from scapy.fields import ByteField, FieldLenField, MACField, PacketListField, ShortField, StrLenField, XShortField
class DTPDomain(DtpGenericTlv):
name = 'DTP Domain'
fields_desc = [ShortField('type', 1), FieldLenField('length', None, 'domain', adjust=lambda pkt, x: x + 4), StrLenField('domain', b'\x00', lengt... |
class DTPDomain(DtpGenericTlv):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.33 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 121 | 6 | 0 | 6 | 3 | 5 | 2 | 3 | 3 | 2 | 0 | 5 | 0 | 0 |
25,620 | secdev/scapy | secdev_scapy/scapy/contrib/dtp.py | scapy.contrib.dtp.DTPNeighbor | from scapy.fields import ByteField, FieldLenField, MACField, PacketListField, ShortField, StrLenField, XShortField
class DTPNeighbor(DtpGenericTlv):
name = 'DTP Neighbor'
fields_desc = [ShortField('type', 4), ShortField('len', 10), MACField('neighbor', None)] |
class DTPNeighbor(DtpGenericTlv):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 121 | 7 | 0 | 6 | 3 | 5 | 1 | 3 | 3 | 2 | 0 | 5 | 0 | 0 |
25,621 | secdev/scapy | secdev_scapy/scapy/contrib/dtp.py | scapy.contrib.dtp.DTPStatus | from scapy.fields import ByteField, FieldLenField, MACField, PacketListField, ShortField, StrLenField, XShortField
class DTPStatus(DtpGenericTlv):
name = 'DTP Status'
fields_desc = [ShortField('type', 2), FieldLenField('length', None, 'status', adjust=lambda pkt, x: x + 4), StrLenField('status', b'\x03', lengt... |
class DTPStatus(DtpGenericTlv):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.33 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 121 | 6 | 0 | 6 | 3 | 5 | 2 | 3 | 3 | 2 | 0 | 5 | 0 | 0 |
25,622 | secdev/scapy | secdev_scapy/scapy/contrib/dtp.py | scapy.contrib.dtp.DTPType | from scapy.fields import ByteField, FieldLenField, MACField, PacketListField, ShortField, StrLenField, XShortField
class DTPType(DtpGenericTlv):
name = 'DTP Type'
fields_desc = [ShortField('type', 3), FieldLenField('length', None, 'dtptype', adjust=lambda pkt, x: x + 4), StrLenField('dtptype', b'\xa5', length_... |
class DTPType(DtpGenericTlv):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.33 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 121 | 6 | 0 | 6 | 3 | 5 | 2 | 3 | 3 | 2 | 0 | 5 | 0 | 0 |
25,623 | secdev/scapy | secdev_scapy/scapy/contrib/dtp.py | scapy.contrib.dtp.DtpGenericTlv | from scapy.fields import ByteField, FieldLenField, MACField, PacketListField, ShortField, StrLenField, XShortField
import struct
from scapy.packet import Packet, bind_layers
from scapy.config import conf
class DtpGenericTlv(Packet):
name = 'DTP Generic TLV'
fields_desc = [XShortField('type', 1), FieldLenField(... |
class DtpGenericTlv(Packet):
@classmethod
def dispatch_hook(cls, _pkt=None, *args, **kargs):
pass
def guess_payload_class(self, p):
pass | 4 | 0 | 4 | 0 | 4 | 0 | 2 | 0.14 | 1 | 0 | 0 | 4 | 1 | 0 | 2 | 121 | 16 | 2 | 14 | 7 | 10 | 2 | 10 | 6 | 7 | 2 | 4 | 1 | 3 |
25,624 | secdev/scapy | secdev_scapy/scapy/contrib/eddystone.py | scapy.contrib.eddystone.EddystoneURLField | from scapy.fields import IntField, SignedByteField, StrField, BitField, StrFixedLenField, ShortField, FixedPointField, ByteEnumField
from scapy.compat import orb
class EddystoneURLField(StrField):
def i2m(self, pkt, x):
if x is None:
return b''
o = bytearray()
p = 0
whi... |
class EddystoneURLField(StrField):
def i2m(self, pkt, x):
pass
def m2i(self, pkt, x):
pass
def any2i(self, pkt, x):
pass | 4 | 0 | 13 | 1 | 12 | 1 | 4 | 0.08 | 1 | 3 | 0 | 0 | 3 | 0 | 3 | 43 | 43 | 5 | 36 | 12 | 32 | 3 | 34 | 12 | 30 | 5 | 6 | 4 | 11 |
25,625 | secdev/scapy | secdev_scapy/scapy/contrib/eddystone.py | scapy.contrib.eddystone.Eddystone_EID | from scapy.packet import bind_layers, Packet
from scapy.fields import IntField, SignedByteField, StrField, BitField, StrFixedLenField, ShortField, FixedPointField, ByteEnumField
class Eddystone_EID(Packet):
"""
An Eddystone type for transmitting encrypted, ephemeral identifiers.
This implementation does n... |
class Eddystone_EID(Packet):
'''
An Eddystone type for transmitting encrypted, ephemeral identifiers.
This implementation does not support decrypting this data.
https://github.com/google/eddystone/tree/master/eddystone-eid
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.83 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 13 | 2 | 6 | 3 | 5 | 5 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
25,626 | secdev/scapy | secdev_scapy/scapy/contrib/eddystone.py | scapy.contrib.eddystone.Eddystone_Frame | from scapy.fields import IntField, SignedByteField, StrField, BitField, StrFixedLenField, ShortField, FixedPointField, ByteEnumField
from scapy.layers.bluetooth import EIR_Hdr, EIR_ServiceData16BitUUID, EIR_CompleteList16BitServiceUUIDs, LowEnergyBeaconHelper
from scapy.packet import bind_layers, Packet
class Eddyston... |
class Eddystone_Frame(Packet, LowEnergyBeaconHelper):
'''
The base Eddystone frame on which all Eddystone messages are built.
https://github.com/google/eddystone/blob/master/protocol-specification.md
'''
def build_eir(self):
'''Builds a list of EIR messages to wrap this frame.'''
p... | 2 | 2 | 8 | 1 | 6 | 1 | 1 | 0.42 | 2 | 3 | 3 | 0 | 1 | 0 | 1 | 123 | 20 | 3 | 12 | 4 | 10 | 5 | 5 | 4 | 3 | 1 | 4 | 0 | 1 |
25,627 | secdev/scapy | secdev_scapy/scapy/contrib/eddystone.py | scapy.contrib.eddystone.Eddystone_TLM | from scapy.fields import IntField, SignedByteField, StrField, BitField, StrFixedLenField, ShortField, FixedPointField, ByteEnumField
from scapy.packet import bind_layers, Packet
class Eddystone_TLM(Packet):
"""
An Eddystone type for transmitting beacon telemetry information.
https://github.com/google/eddy... |
class Eddystone_TLM(Packet):
'''
An Eddystone type for transmitting beacon telemetry information.
https://github.com/google/eddystone/tree/master/eddystone-tlm
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 13 | 1 | 8 | 3 | 7 | 4 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
25,628 | secdev/scapy | secdev_scapy/scapy/contrib/eddystone.py | scapy.contrib.eddystone.Eddystone_TLM_Encrypted | from scapy.fields import IntField, SignedByteField, StrField, BitField, StrFixedLenField, ShortField, FixedPointField, ByteEnumField
from scapy.packet import bind_layers, Packet
class Eddystone_TLM_Encrypted(Packet):
"""
A subtype of Eddystone-TLM for transmitting telemetry in encrypted form.
This impleme... |
class Eddystone_TLM_Encrypted(Packet):
'''
A subtype of Eddystone-TLM for transmitting telemetry in encrypted form.
This implementation does not support decrypting this data.
https://github.com/google/eddystone/blob/master/eddystone-tlm/tlm-encrypted.md
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.71 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 14 | 2 | 7 | 3 | 6 | 5 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
25,629 | secdev/scapy | secdev_scapy/scapy/contrib/eddystone.py | scapy.contrib.eddystone.Eddystone_TLM_Unencrypted | from scapy.fields import IntField, SignedByteField, StrField, BitField, StrFixedLenField, ShortField, FixedPointField, ByteEnumField
from scapy.packet import bind_layers, Packet
class Eddystone_TLM_Unencrypted(Packet):
"""
A subtype of Eddystone-TLM for transmitting telemetry in unencrypted form.
https://... |
class Eddystone_TLM_Unencrypted(Packet):
'''
A subtype of Eddystone-TLM for transmitting telemetry in unencrypted form.
https://github.com/google/eddystone/blob/master/eddystone-tlm/tlm-plain.md
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 13 | 1 | 8 | 3 | 7 | 4 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
25,630 | secdev/scapy | secdev_scapy/scapy/contrib/eddystone.py | scapy.contrib.eddystone.Eddystone_UID | from scapy.fields import IntField, SignedByteField, StrField, BitField, StrFixedLenField, ShortField, FixedPointField, ByteEnumField
from scapy.packet import bind_layers, Packet
class Eddystone_UID(Packet):
"""
An Eddystone type for transmitting a unique identifier.
https://github.com/google/eddystone/tre... |
class Eddystone_UID(Packet):
'''
An Eddystone type for transmitting a unique identifier.
https://github.com/google/eddystone/tree/master/eddystone-uid
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 13 | 1 | 8 | 3 | 7 | 4 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
25,631 | secdev/scapy | secdev_scapy/scapy/contrib/eddystone.py | scapy.contrib.eddystone.Eddystone_URL | from scapy.fields import IntField, SignedByteField, StrField, BitField, StrFixedLenField, ShortField, FixedPointField, ByteEnumField
from scapy.packet import bind_layers, Packet
class Eddystone_URL(Packet):
"""
An Eddystone type for transmitting a URL (to a web page).
https://github.com/google/eddystone/t... |
class Eddystone_URL(Packet):
'''
An Eddystone type for transmitting a URL (to a web page).
https://github.com/google/eddystone/tree/master/eddystone-url
'''
def to_url(self):
pass
@staticmethod
def from_url(url):
'''Creates an Eddystone_Frame with a Eddystone_URL for a give... | 4 | 2 | 9 | 1 | 8 | 1 | 2 | 0.22 | 1 | 2 | 1 | 0 | 1 | 0 | 2 | 121 | 32 | 4 | 23 | 8 | 19 | 5 | 16 | 7 | 13 | 3 | 4 | 2 | 4 |
25,632 | secdev/scapy | secdev_scapy/scapy/contrib/eigrp.py | scapy.contrib.eigrp.EIGRP | from scapy.packet import Packet
from scapy.fields import StrField, IPField, XShortField, FieldLenField, StrLenField, IntField, ByteEnumField, ByteField, ConditionalField, FlagsField, IP6Field, PacketListField, ShortEnumField, ShortField, StrFixedLenField, ThreeBytesField
from scapy.layers.inet import IP, checksum, bind... |
class EIGRP(Packet):
def post_build(self, p, pay):
pass
def mysummary(self):
pass | 3 | 0 | 7 | 1 | 7 | 0 | 3 | 0 | 1 | 0 | 0 | 0 | 2 | 0 | 2 | 121 | 27 | 3 | 24 | 7 | 21 | 0 | 16 | 7 | 13 | 3 | 4 | 1 | 5 |
25,633 | secdev/scapy | secdev_scapy/scapy/contrib/eigrp.py | scapy.contrib.eigrp.EIGRPAuthData | from scapy.compat import chb
from scapy.volatile import RandShort, RandString
from scapy.fields import StrField, IPField, XShortField, FieldLenField, StrLenField, IntField, ByteEnumField, ByteField, ConditionalField, FlagsField, IP6Field, PacketListField, ShortEnumField, ShortField, StrFixedLenField, ThreeBytesField
c... |
class EIGRPAuthData(EIGRPGeneric):
def post_build(self, p, pay):
pass | 2 | 0 | 8 | 2 | 6 | 1 | 2 | 0.19 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 121 | 19 | 3 | 16 | 5 | 14 | 3 | 9 | 5 | 7 | 2 | 5 | 1 | 2 |
25,634 | secdev/scapy | secdev_scapy/scapy/contrib/eigrp.py | scapy.contrib.eigrp.EIGRPExtRoute | from scapy.fields import StrField, IPField, XShortField, FieldLenField, StrLenField, IntField, ByteEnumField, ByteField, ConditionalField, FlagsField, IP6Field, PacketListField, ShortEnumField, ShortField, StrFixedLenField, ThreeBytesField
class EIGRPExtRoute(EIGRPGeneric):
name = 'EIGRP External Route'
fields... |
class EIGRPExtRoute(EIGRPGeneric):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 120 | 22 | 0 | 22 | 3 | 21 | 3 | 3 | 3 | 2 | 0 | 5 | 0 | 0 |
25,635 | secdev/scapy | secdev_scapy/scapy/contrib/eigrp.py | scapy.contrib.eigrp.EIGRPGeneric | from scapy.fields import StrField, IPField, XShortField, FieldLenField, StrLenField, IntField, ByteEnumField, ByteField, ConditionalField, FlagsField, IP6Field, PacketListField, ShortEnumField, ShortField, StrFixedLenField, ThreeBytesField
from scapy.packet import Packet
from scapy.config import conf
class EIGRPGeneri... |
class EIGRPGeneric(Packet):
def guess_payload_class(self, p):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0.29 | 1 | 0 | 0 | 10 | 1 | 0 | 1 | 120 | 8 | 1 | 7 | 4 | 5 | 2 | 5 | 4 | 3 | 1 | 4 | 0 | 1 |
25,636 | secdev/scapy | secdev_scapy/scapy/contrib/eigrp.py | scapy.contrib.eigrp.EIGRPIntRoute | from scapy.fields import StrField, IPField, XShortField, FieldLenField, StrLenField, IntField, ByteEnumField, ByteField, ConditionalField, FlagsField, IP6Field, PacketListField, ShortEnumField, ShortField, StrFixedLenField, ThreeBytesField
class EIGRPIntRoute(EIGRPGeneric):
name = 'EIGRP Internal Route'
fields... |
class EIGRPIntRoute(EIGRPGeneric):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 120 | 15 | 0 | 15 | 3 | 14 | 2 | 3 | 3 | 2 | 0 | 5 | 0 | 0 |
25,637 | secdev/scapy | secdev_scapy/scapy/contrib/eigrp.py | scapy.contrib.eigrp.EIGRPNms | from scapy.fields import StrField, IPField, XShortField, FieldLenField, StrLenField, IntField, ByteEnumField, ByteField, ConditionalField, FlagsField, IP6Field, PacketListField, ShortEnumField, ShortField, StrFixedLenField, ThreeBytesField
class EIGRPNms(EIGRPGeneric):
name = 'EIGRP Next Multicast Sequence'
fi... |
class EIGRPNms(EIGRPGeneric):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 120 | 6 | 0 | 6 | 3 | 5 | 0 | 3 | 3 | 2 | 0 | 5 | 0 | 0 |
25,638 | secdev/scapy | secdev_scapy/scapy/contrib/eigrp.py | scapy.contrib.eigrp.EIGRPParam | from scapy.fields import StrField, IPField, XShortField, FieldLenField, StrLenField, IntField, ByteEnumField, ByteField, ConditionalField, FlagsField, IP6Field, PacketListField, ShortEnumField, ShortField, StrFixedLenField, ThreeBytesField
class EIGRPParam(EIGRPGeneric):
name = 'EIGRP Parameters'
fields_desc =... |
class EIGRPParam(EIGRPGeneric):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.42 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 120 | 17 | 0 | 12 | 3 | 11 | 5 | 3 | 3 | 2 | 0 | 5 | 0 | 0 |
25,639 | secdev/scapy | secdev_scapy/scapy/contrib/eigrp.py | scapy.contrib.eigrp.EIGRPSeq | from scapy.fields import StrField, IPField, XShortField, FieldLenField, StrLenField, IntField, ByteEnumField, ByteField, ConditionalField, FlagsField, IP6Field, PacketListField, ShortEnumField, ShortField, StrFixedLenField, ThreeBytesField
from scapy.compat import chb
class EIGRPSeq(EIGRPGeneric):
name = 'EIGRP Se... |
class EIGRPSeq(EIGRPGeneric):
def post_build(self, p, pay):
pass | 2 | 0 | 9 | 2 | 7 | 0 | 2 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 121 | 20 | 3 | 17 | 6 | 15 | 0 | 10 | 6 | 8 | 2 | 5 | 1 | 2 |
25,640 | secdev/scapy | secdev_scapy/scapy/contrib/eigrp.py | scapy.contrib.eigrp.EIGRPStub | from scapy.fields import StrField, IPField, XShortField, FieldLenField, StrLenField, IntField, ByteEnumField, ByteField, ConditionalField, FlagsField, IP6Field, PacketListField, ShortEnumField, ShortField, StrFixedLenField, ThreeBytesField
class EIGRPStub(EIGRPGeneric):
name = 'EIGRP Stub Router'
fields_desc =... |
class EIGRPStub(EIGRPGeneric):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 120 | 5 | 0 | 5 | 3 | 4 | 0 | 3 | 3 | 2 | 0 | 5 | 0 | 0 |
25,641 | secdev/scapy | secdev_scapy/scapy/contrib/eigrp.py | scapy.contrib.eigrp.EIGRPSwVer | from scapy.fields import StrField, IPField, XShortField, FieldLenField, StrLenField, IntField, ByteEnumField, ByteField, ConditionalField, FlagsField, IP6Field, PacketListField, ShortEnumField, ShortField, StrFixedLenField, ThreeBytesField
class EIGRPSwVer(EIGRPGeneric):
name = 'EIGRP Software Version'
fields_... |
class EIGRPSwVer(EIGRPGeneric):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 120 | 7 | 0 | 7 | 3 | 6 | 0 | 3 | 3 | 2 | 0 | 5 | 0 | 0 |
25,642 | secdev/scapy | secdev_scapy/scapy/contrib/eigrp.py | scapy.contrib.eigrp.EIGRPv6ExtRoute | from scapy.fields import StrField, IPField, XShortField, FieldLenField, StrLenField, IntField, ByteEnumField, ByteField, ConditionalField, FlagsField, IP6Field, PacketListField, ShortEnumField, ShortField, StrFixedLenField, ThreeBytesField
class EIGRPv6ExtRoute(EIGRPGeneric):
name = 'EIGRP for IPv6 External Route'... |
class EIGRPv6ExtRoute(EIGRPGeneric):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 120 | 22 | 0 | 22 | 3 | 21 | 3 | 3 | 3 | 2 | 0 | 5 | 0 | 0 |
25,643 | secdev/scapy | secdev_scapy/scapy/contrib/eigrp.py | scapy.contrib.eigrp.EIGRPv6IntRoute | from scapy.fields import StrField, IPField, XShortField, FieldLenField, StrLenField, IntField, ByteEnumField, ByteField, ConditionalField, FlagsField, IP6Field, PacketListField, ShortEnumField, ShortField, StrFixedLenField, ThreeBytesField
class EIGRPv6IntRoute(EIGRPGeneric):
name = 'EIGRP for IPv6 Internal Route'... |
class EIGRPv6IntRoute(EIGRPGeneric):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 120 | 15 | 0 | 15 | 3 | 14 | 2 | 3 | 3 | 2 | 0 | 5 | 0 | 0 |
25,644 | secdev/scapy | secdev_scapy/scapy/contrib/eigrp.py | scapy.contrib.eigrp.EigrpIP6Field | import socket
from scapy.error import warning, Scapy_Exception
from scapy.pton_ntop import inet_ntop, inet_pton
from scapy.fields import StrField, IPField, XShortField, FieldLenField, StrLenField, IntField, ByteEnumField, ByteField, ConditionalField, FlagsField, IP6Field, PacketListField, ShortEnumField, ShortField, St... |
class EigrpIP6Field(StrField, IP6Field):
'''
This is a special field type for handling ip addresses of destination networks in internal and
external route updates.
'''
def __init__(self, name, default, length=None, length_from=None):
pass
def any2i(self, pkt, x):
pass
def... | 11 | 1 | 5 | 1 | 4 | 0 | 1 | 0.12 | 2 | 0 | 0 | 0 | 10 | 1 | 10 | 58 | 63 | 17 | 42 | 19 | 31 | 5 | 41 | 19 | 30 | 2 | 6 | 1 | 13 |
25,645 | secdev/scapy | secdev_scapy/scapy/contrib/eigrp.py | scapy.contrib.eigrp.EigrpIPField | from scapy.fields import StrField, IPField, XShortField, FieldLenField, StrLenField, IntField, ByteEnumField, ByteField, ConditionalField, FlagsField, IP6Field, PacketListField, ShortEnumField, ShortField, StrFixedLenField, ThreeBytesField
from scapy.utils import inet_aton, inet_ntoa
class EigrpIPField(StrField, IPFie... |
class EigrpIPField(StrField, IPField):
'''
This is a special field type for handling ip addresses of destination networks in internal and
external route updates.
EIGRP removes zeros from the host portion of the ip address if the netmask is 8, 16 or 24 bits.
'''
def __init__(self, name, default... | 9 | 1 | 6 | 1 | 6 | 0 | 2 | 0.1 | 2 | 0 | 0 | 0 | 8 | 1 | 8 | 57 | 68 | 14 | 49 | 15 | 40 | 5 | 41 | 15 | 32 | 4 | 6 | 1 | 18 |
25,646 | secdev/scapy | secdev_scapy/scapy/contrib/eigrp.py | scapy.contrib.eigrp.ShortVersionField | from scapy.fields import StrField, IPField, XShortField, FieldLenField, StrLenField, IntField, ByteEnumField, ByteField, ConditionalField, FlagsField, IP6Field, PacketListField, ShortEnumField, ShortField, StrFixedLenField, ThreeBytesField
from scapy.error import warning, Scapy_Exception
from scapy.volatile import Rand... |
class ShortVersionField(ShortField):
def i2repr(self, pkt, x):
pass
def h2i(self, pkt, x):
'''The field accepts string values like v12.1, v1.1 or integer values.
String values have to start with a "v" followed by a
floating point number. Valid numbers are between 0 and 2... | 4 | 1 | 11 | 1 | 8 | 2 | 3 | 0.19 | 1 | 5 | 2 | 0 | 3 | 0 | 3 | 36 | 37 | 6 | 26 | 8 | 22 | 5 | 23 | 8 | 19 | 5 | 5 | 2 | 8 |
25,647 | secdev/scapy | secdev_scapy/scapy/contrib/enipTCP.py | scapy.contrib.enipTCP.ENIPListIdentity | from scapy.fields import LEShortField, LEShortEnumField, LEIntEnumField, LEIntField, LELongField, FieldLenField, PacketListField, ByteField, StrLenField, StrFixedLenField, XLEIntField, XLEStrLenField, LEFieldLenField, ShortField, IPField, LongField, XLEShortField
from scapy.packet import Packet, bind_layers
class ENIP... |
class ENIPListIdentity(Packet):
'''List identity request and response'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.17 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 7 | 0 | 6 | 3 | 5 | 1 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
25,648 | secdev/scapy | secdev_scapy/scapy/contrib/enipTCP.py | scapy.contrib.enipTCP.ENIPListIdentityItem | from scapy.packet import Packet, bind_layers
from scapy.fields import LEShortField, LEShortEnumField, LEIntEnumField, LEIntField, LELongField, FieldLenField, PacketListField, ByteField, StrLenField, StrFixedLenField, XLEIntField, XLEStrLenField, LEFieldLenField, ShortField, IPField, LongField, XLEShortField
class ENIP... |
class ENIPListIdentityItem(Packet):
'''List Identity Item Fields'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.18 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 25 | 0 | 22 | 3 | 21 | 4 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
25,649 | secdev/scapy | secdev_scapy/scapy/contrib/enipTCP.py | scapy.contrib.enipTCP.ENIPListInterfaces | from scapy.fields import LEShortField, LEShortEnumField, LEIntEnumField, LEIntField, LELongField, FieldLenField, PacketListField, ByteField, StrLenField, StrFixedLenField, XLEIntField, XLEStrLenField, LEFieldLenField, ShortField, IPField, LongField, XLEShortField
from scapy.packet import Packet, bind_layers
class ENIP... |
class ENIPListInterfaces(Packet):
'''List Interfaces Command Field'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.17 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 7 | 0 | 6 | 3 | 5 | 1 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
25,650 | secdev/scapy | secdev_scapy/scapy/contrib/enipTCP.py | scapy.contrib.enipTCP.ENIPListInterfacesItem | from scapy.packet import Packet, bind_layers
from scapy.fields import LEShortField, LEShortEnumField, LEIntEnumField, LEIntField, LELongField, FieldLenField, PacketListField, ByteField, StrLenField, StrFixedLenField, XLEIntField, XLEStrLenField, LEFieldLenField, ShortField, IPField, LongField, XLEShortField
class ENIP... |
class ENIPListInterfacesItem(Packet):
'''List Interfaces Item Fields'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.29 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 9 | 0 | 7 | 3 | 6 | 2 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
25,651 | secdev/scapy | secdev_scapy/scapy/contrib/enipTCP.py | scapy.contrib.enipTCP.ENIPListServices | from scapy.fields import LEShortField, LEShortEnumField, LEIntEnumField, LEIntField, LELongField, FieldLenField, PacketListField, ByteField, StrLenField, StrFixedLenField, XLEIntField, XLEStrLenField, LEFieldLenField, ShortField, IPField, LongField, XLEShortField
from scapy.packet import Packet, bind_layers
class ENIP... |
class ENIPListServices(Packet):
'''List Services Command Field'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.17 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 7 | 0 | 6 | 3 | 5 | 1 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
25,652 | secdev/scapy | secdev_scapy/scapy/contrib/enipTCP.py | scapy.contrib.enipTCP.ENIPListServicesItem | from scapy.packet import Packet, bind_layers
from scapy.fields import LEShortField, LEShortEnumField, LEIntEnumField, LEIntField, LELongField, FieldLenField, PacketListField, ByteField, StrLenField, StrFixedLenField, XLEIntField, XLEStrLenField, LEFieldLenField, ShortField, IPField, LongField, XLEShortField
class ENIP... |
class ENIPListServicesItem(Packet):
'''List Services Item Field'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.22 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 10 | 0 | 9 | 3 | 8 | 2 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
25,653 | secdev/scapy | secdev_scapy/scapy/contrib/enipTCP.py | scapy.contrib.enipTCP.ENIPRegisterSession | from scapy.packet import Packet, bind_layers
from scapy.fields import LEShortField, LEShortEnumField, LEIntEnumField, LEIntField, LELongField, FieldLenField, PacketListField, ByteField, StrLenField, StrFixedLenField, XLEIntField, XLEStrLenField, LEFieldLenField, ShortField, IPField, LongField, XLEShortField
class ENIP... |
class ENIPRegisterSession(Packet):
'''Register Session Command Field'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.17 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 7 | 0 | 6 | 3 | 5 | 1 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
25,654 | secdev/scapy | secdev_scapy/scapy/contrib/enipTCP.py | scapy.contrib.enipTCP.ENIPSendRRData | from scapy.packet import Packet, bind_layers
from scapy.fields import LEShortField, LEShortEnumField, LEIntEnumField, LEIntField, LELongField, FieldLenField, PacketListField, ByteField, StrLenField, StrFixedLenField, XLEIntField, XLEStrLenField, LEFieldLenField, ShortField, IPField, LongField, XLEShortField
class ENIP... |
class ENIPSendRRData(Packet):
'''Send RR Data Command Field'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 10 | 0 | 8 | 3 | 7 | 2 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
25,655 | secdev/scapy | secdev_scapy/scapy/contrib/enipTCP.py | scapy.contrib.enipTCP.ENIPSendUnitData | from scapy.packet import Packet, bind_layers
from scapy.fields import LEShortField, LEShortEnumField, LEIntEnumField, LEIntField, LELongField, FieldLenField, PacketListField, ByteField, StrLenField, StrFixedLenField, XLEIntField, XLEStrLenField, LEFieldLenField, ShortField, IPField, LongField, XLEShortField
class ENIP... |
class ENIPSendUnitData(Packet):
'''Send Unit Data Command Field'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.13 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 9 | 0 | 8 | 3 | 7 | 1 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
25,656 | secdev/scapy | secdev_scapy/scapy/contrib/enipTCP.py | scapy.contrib.enipTCP.ENIPTCP | import struct
from scapy.fields import LEShortField, LEShortEnumField, LEIntEnumField, LEIntField, LELongField, FieldLenField, PacketListField, ByteField, StrLenField, StrFixedLenField, XLEIntField, XLEStrLenField, LEFieldLenField, ShortField, IPField, LongField, XLEShortField
from scapy.packet import Packet, bind_laye... |
class ENIPTCP(Packet):
'''Ethernet/IP packet over TCP'''
def post_build(self, pkt, pay):
pass | 2 | 1 | 4 | 0 | 4 | 0 | 2 | 0.07 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 120 | 16 | 1 | 14 | 4 | 12 | 1 | 7 | 4 | 5 | 2 | 4 | 1 | 2 |
25,657 | secdev/scapy | secdev_scapy/scapy/contrib/enipTCP.py | scapy.contrib.enipTCP.ENIPUnknownCommand | from scapy.packet import Packet, bind_layers
class ENIPUnknownCommand(Packet):
"""Unknown Command reply"""
name = 'ENIPUnknownCommand'
pass |
class ENIPUnknownCommand(Packet):
'''Unknown Command reply'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.33 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 4 | 0 | 3 | 2 | 2 | 1 | 3 | 2 | 2 | 0 | 4 | 0 | 0 |
25,658 | secdev/scapy | secdev_scapy/scapy/contrib/enipTCP.py | scapy.contrib.enipTCP.ENIPUnregisterSession | from scapy.packet import Packet, bind_layers
class ENIPUnregisterSession(Packet):
"""Unregister Session Command Field"""
name = 'ENIPUnregisterSession'
pass |
class ENIPUnregisterSession(Packet):
'''Unregister Session Command Field'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.33 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 4 | 0 | 3 | 2 | 2 | 1 | 3 | 2 | 2 | 0 | 4 | 0 | 0 |
25,659 | secdev/scapy | secdev_scapy/scapy/contrib/enipTCP.py | scapy.contrib.enipTCP.ItemData | from scapy.fields import LEShortField, LEShortEnumField, LEIntEnumField, LEIntField, LELongField, FieldLenField, PacketListField, ByteField, StrLenField, StrFixedLenField, XLEIntField, XLEStrLenField, LEFieldLenField, ShortField, IPField, LongField, XLEShortField
from scapy.packet import Packet, bind_layers
class Item... |
class ItemData(Packet):
'''Common Packet Format'''
def extract_padding(self, s):
pass | 2 | 1 | 2 | 0 | 2 | 0 | 1 | 0.11 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 120 | 11 | 1 | 9 | 4 | 7 | 1 | 5 | 4 | 3 | 1 | 4 | 0 | 1 |
25,660 | secdev/scapy | secdev_scapy/scapy/contrib/erspan.py | scapy.contrib.erspan.ERSPAN | from scapy.packet import Packet, bind_layers
class ERSPAN(Packet):
"""
A generic ERSPAN packet
"""
name = 'ERSPAN'
fields_desc = []
@classmethod
def dispatch_hook(cls, _pkt=None, *args, **kargs):
if _pkt:
ver = _pkt[0] >> 4
if ver == 1:
retur... |
class ERSPAN(Packet):
'''
A generic ERSPAN packet
'''
@classmethod
def dispatch_hook(cls, _pkt=None, *args, **kargs):
pass | 3 | 1 | 12 | 0 | 12 | 0 | 5 | 0.19 | 1 | 3 | 3 | 3 | 0 | 0 | 1 | 120 | 20 | 1 | 16 | 6 | 13 | 3 | 13 | 5 | 11 | 5 | 4 | 2 | 5 |
25,661 | secdev/scapy | secdev_scapy/scapy/contrib/erspan.py | scapy.contrib.erspan.ERSPAN_I | class ERSPAN_I(ERSPAN):
name = 'ERSPAN I'
match_subclass = True
fields_desc = [] | class ERSPAN_I(ERSPAN):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 120 | 4 | 0 | 4 | 4 | 3 | 0 | 4 | 4 | 3 | 0 | 5 | 0 | 0 |
25,662 | secdev/scapy | secdev_scapy/scapy/contrib/erspan.py | scapy.contrib.erspan.ERSPAN_II | from scapy.fields import BitField, BitEnumField, XIntField, XShortField
class ERSPAN_II(ERSPAN):
name = 'ERSPAN II'
match_subclass = True
fields_desc = [BitField('ver', 1, 4), BitField('vlan', 0, 12), BitField('cos', 0, 3), BitField('en', 0, 2), BitField('t', 0, 1), BitField('session_id', 0, 10), BitField(... |
class ERSPAN_II(ERSPAN):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 120 | 12 | 0 | 12 | 4 | 11 | 0 | 4 | 4 | 3 | 0 | 5 | 0 | 0 |
25,663 | secdev/scapy | secdev_scapy/scapy/contrib/erspan.py | scapy.contrib.erspan.ERSPAN_III | from scapy.fields import BitField, BitEnumField, XIntField, XShortField
class ERSPAN_III(ERSPAN):
name = 'ERSPAN III'
match_subclass = True
fields_desc = [BitField('ver', 2, 4), BitField('vlan', 0, 12), BitField('cos', 0, 3), BitField('bso', 0, 2), BitField('t', 0, 1), BitField('session_id', 0, 10), XIntFi... |
class ERSPAN_III(ERSPAN):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 120 | 20 | 0 | 20 | 4 | 19 | 0 | 4 | 4 | 3 | 0 | 5 | 0 | 0 |
25,664 | secdev/scapy | secdev_scapy/scapy/contrib/erspan.py | scapy.contrib.erspan.ERSPAN_PlatformSpecific | from scapy.packet import Packet, bind_layers
from scapy.fields import BitField, BitEnumField, XIntField, XShortField
class ERSPAN_PlatformSpecific(Packet):
name = 'PlatformSpecific'
fields_desc = [BitField('platf_id', 0, 6), BitField('info1', 0, 26), XIntField('info2', 0)] |
class ERSPAN_PlatformSpecific(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 |
25,665 | secdev/scapy | secdev_scapy/scapy/contrib/esmc.py | scapy.contrib.esmc.EQLTLV | from scapy.fields import BitField, ByteField, XByteField, ShortField, XStrFixedLenField
class EQLTLV(ESMC):
name = 'EQLTLV'
fields_desc = [ByteField('type', 2), ShortField('length', 20), XByteField('enhancedSsmCode', 255), XStrFixedLenField('clockIdentity', b'\x00' * 8, 8), ByteField('flag', 0), ByteField('cas... |
class EQLTLV(ESMC):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 120 | 12 | 0 | 12 | 3 | 11 | 0 | 3 | 3 | 2 | 0 | 5 | 0 | 0 |
25,666 | secdev/scapy | secdev_scapy/scapy/contrib/esmc.py | scapy.contrib.esmc.ESMC | from scapy.fields import BitField, ByteField, XByteField, ShortField, XStrFixedLenField
from scapy.packet import Packet, bind_layers
from scapy.compat import orb
class ESMC(Packet):
name = 'ESMC'
fields_desc = [XStrFixedLenField('ituOui', b'\x00\x19\xa7', 3), ShortField('ituSubtype', 1), BitField('version', 1,... |
class ESMC(Packet):
def guess_payload_class(self, payload):
pass | 2 | 0 | 6 | 0 | 6 | 0 | 3 | 0 | 1 | 2 | 2 | 2 | 1 | 0 | 1 | 120 | 17 | 1 | 16 | 4 | 14 | 0 | 9 | 4 | 7 | 3 | 4 | 1 | 3 |
25,667 | secdev/scapy | secdev_scapy/scapy/contrib/esmc.py | scapy.contrib.esmc.QLTLV | from scapy.fields import BitField, ByteField, XByteField, ShortField, XStrFixedLenField
class QLTLV(ESMC):
name = 'QLTLV'
fields_desc = [ByteField('type', 1), ShortField('length', 4), XByteField('ssmCode', 15)] |
class QLTLV(ESMC):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 120 | 7 | 0 | 7 | 3 | 6 | 0 | 3 | 3 | 2 | 0 | 5 | 0 | 0 |
25,668 | secdev/scapy | secdev_scapy/scapy/contrib/ethercat.py | scapy.contrib.ethercat.EtherCat | from scapy.compat import raw
from scapy.packet import bind_layers, Packet, Padding
from scapy.layers.l2 import Ether, Dot1Q
from scapy.error import log_runtime, Scapy_Exception
class EtherCat(Packet):
"""
Common EtherCat header layer
"""
ETHER_HEADER_LEN = 14
ETHER_FSC_LEN = 4
ETHER_FRAME_MIN_L... |
class EtherCat(Packet):
'''
Common EtherCat header layer
'''
def post_build(self, pkt, pay):
'''
need to set the length of the whole PDU manually
to avoid any bit fiddling use a dummy class to build the layer content
also add padding if frame is < 64 bytes
Note:... | 4 | 3 | 34 | 7 | 20 | 8 | 4 | 0.27 | 1 | 7 | 4 | 0 | 2 | 1 | 2 | 121 | 107 | 18 | 71 | 19 | 67 | 19 | 35 | 19 | 31 | 5 | 4 | 1 | 7 |
25,669 | secdev/scapy | secdev_scapy/scapy/contrib/ethercat.py | scapy.contrib.ethercat.EtherCatAPRD | from scapy.fields import BitField, ByteField, LEShortField, FieldListField, LEIntField, FieldLenField, _EnumField, EnumField
class EtherCatAPRD(EtherCatType12DLPDU):
"""
APRD - Auto Increment Physical Read
(IEC 61158-5-12, sec. 5.4.1.2 tab. 14 / p. 32)
"""
fields_desc = [ByteField('_cmd', 1)] + Eth... |
class EtherCatAPRD(EtherCatType12DLPDU):
'''
APRD - Auto Increment Physical Read
(IEC 61158-5-12, sec. 5.4.1.2 tab. 14 / p. 32)
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1.33 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 121 | 8 | 1 | 3 | 2 | 2 | 4 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
25,670 | secdev/scapy | secdev_scapy/scapy/contrib/ethercat.py | scapy.contrib.ethercat.EtherCatAPRW | from scapy.fields import BitField, ByteField, LEShortField, FieldListField, LEIntField, FieldLenField, _EnumField, EnumField
class EtherCatAPRW(EtherCatType12DLPDU):
"""
APRW - Auto Increment Physical Read Write
(IEC 61158-5-12, sec. 5.4.3.1 tab. 22 / p. 41)
"""
fields_desc = [ByteField('_cmd', 3)]... |
class EtherCatAPRW(EtherCatType12DLPDU):
'''
APRW - Auto Increment Physical Read Write
(IEC 61158-5-12, sec. 5.4.3.1 tab. 22 / p. 41)
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1.33 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 121 | 8 | 1 | 3 | 2 | 2 | 4 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
25,671 | secdev/scapy | secdev_scapy/scapy/contrib/ethercat.py | scapy.contrib.ethercat.EtherCatAPWR | from scapy.fields import BitField, ByteField, LEShortField, FieldListField, LEIntField, FieldLenField, _EnumField, EnumField
class EtherCatAPWR(EtherCatType12DLPDU):
"""
APWR - Auto Increment Physical Write
(IEC 61158-5-12, sec. 5.4.2.2 tab. 18 / p. 37)
"""
fields_desc = [ByteField('_cmd', 2)] + Et... |
class EtherCatAPWR(EtherCatType12DLPDU):
'''
APWR - Auto Increment Physical Write
(IEC 61158-5-12, sec. 5.4.2.2 tab. 18 / p. 37)
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1.33 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 121 | 8 | 1 | 3 | 2 | 2 | 4 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
25,672 | secdev/scapy | secdev_scapy/scapy/contrib/ethercat.py | scapy.contrib.ethercat.EtherCatARMW | from scapy.fields import BitField, ByteField, LEShortField, FieldListField, LEIntField, FieldLenField, _EnumField, EnumField
class EtherCatARMW(EtherCatType12DLPDU):
"""
ARMW - Auto increment physical read multiple write
(IEC 61158-5-12, sec. 5.4.3.5 tab. 26 / p. 46)
"""
fields_desc = [ByteField('_... |
class EtherCatARMW(EtherCatType12DLPDU):
'''
ARMW - Auto increment physical read multiple write
(IEC 61158-5-12, sec. 5.4.3.5 tab. 26 / p. 46)
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1.33 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 121 | 8 | 1 | 3 | 2 | 2 | 4 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
25,673 | secdev/scapy | secdev_scapy/scapy/contrib/ethercat.py | scapy.contrib.ethercat.EtherCatBRD | from scapy.fields import BitField, ByteField, LEShortField, FieldListField, LEIntField, FieldLenField, _EnumField, EnumField
class EtherCatBRD(EtherCatType12DLPDU):
"""
BRD - Broadcast read
(IEC 61158-5-12, sec. 5.4.1.4 tab. 16 / p. 34)
"""
fields_desc = [ByteField('_cmd', 7)] + EtherCatType12DLPDU... |
class EtherCatBRD(EtherCatType12DLPDU):
'''
BRD - Broadcast read
(IEC 61158-5-12, sec. 5.4.1.4 tab. 16 / p. 34)
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1.33 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 121 | 8 | 1 | 3 | 2 | 2 | 4 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
25,674 | secdev/scapy | secdev_scapy/scapy/contrib/ethercat.py | scapy.contrib.ethercat.EtherCatBRW | from scapy.fields import BitField, ByteField, LEShortField, FieldListField, LEIntField, FieldLenField, _EnumField, EnumField
class EtherCatBRW(EtherCatType12DLPDU):
"""
BRW - Broadcast read write
(IEC 61158-5-12, sec. 5.4.3.3 tab. 24 / p. 39)
"""
fields_desc = [ByteField('_cmd', 9)] + EtherCatType1... |
class EtherCatBRW(EtherCatType12DLPDU):
'''
BRW - Broadcast read write
(IEC 61158-5-12, sec. 5.4.3.3 tab. 24 / p. 39)
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1.33 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 121 | 8 | 1 | 3 | 2 | 2 | 4 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
25,675 | secdev/scapy | secdev_scapy/scapy/contrib/ethercat.py | scapy.contrib.ethercat.EtherCatBWR | from scapy.fields import BitField, ByteField, LEShortField, FieldListField, LEIntField, FieldLenField, _EnumField, EnumField
class EtherCatBWR(EtherCatType12DLPDU):
"""
BWR - Broadcast read (IEC 61158-5-12, sec. 5.4.2.4 tab. 20 / p. 39)
"""
fields_desc = [ByteField('_cmd', 8)] + EtherCatType12DLPDU.BRO... |
class EtherCatBWR(EtherCatType12DLPDU):
'''
BWR - Broadcast read (IEC 61158-5-12, sec. 5.4.2.4 tab. 20 / p. 39)
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 121 | 7 | 1 | 3 | 2 | 2 | 3 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
25,676 | secdev/scapy | secdev_scapy/scapy/contrib/ethercat.py | scapy.contrib.ethercat.EtherCatFPRD | from scapy.fields import BitField, ByteField, LEShortField, FieldListField, LEIntField, FieldLenField, _EnumField, EnumField
class EtherCatFPRD(EtherCatType12DLPDU):
"""
FPRD - Configured address physical read
(IEC 61158-5-12, sec. 5.4.1.3 tab. 15 / p. 33)
"""
fields_desc = [ByteField('_cmd', 4)] +... |
class EtherCatFPRD(EtherCatType12DLPDU):
'''
FPRD - Configured address physical read
(IEC 61158-5-12, sec. 5.4.1.3 tab. 15 / p. 33)
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1.33 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 121 | 8 | 1 | 3 | 2 | 2 | 4 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
25,677 | secdev/scapy | secdev_scapy/scapy/contrib/ethercat.py | scapy.contrib.ethercat.EtherCatFPRW | from scapy.fields import BitField, ByteField, LEShortField, FieldListField, LEIntField, FieldLenField, _EnumField, EnumField
class EtherCatFPRW(EtherCatType12DLPDU):
"""
FPRW - Configured address physical read write
(IEC 61158-5-12, sec. 5.4.3.2 tab. 23 / p. 43)
"""
fields_desc = [ByteField('_cmd',... |
class EtherCatFPRW(EtherCatType12DLPDU):
'''
FPRW - Configured address physical read write
(IEC 61158-5-12, sec. 5.4.3.2 tab. 23 / p. 43)
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1.33 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 121 | 8 | 1 | 3 | 2 | 2 | 4 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
25,678 | secdev/scapy | secdev_scapy/scapy/contrib/ethercat.py | scapy.contrib.ethercat.EtherCatFPWR | from scapy.fields import BitField, ByteField, LEShortField, FieldListField, LEIntField, FieldLenField, _EnumField, EnumField
class EtherCatFPWR(EtherCatType12DLPDU):
"""
FPWR - Configured address physical write
(IEC 61158-5-12, sec. 5.4.2.3 tab. 19 / p. 38)
"""
fields_desc = [ByteField('_cmd', 5)] ... |
class EtherCatFPWR(EtherCatType12DLPDU):
'''
FPWR - Configured address physical write
(IEC 61158-5-12, sec. 5.4.2.3 tab. 19 / p. 38)
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1.33 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 121 | 8 | 1 | 3 | 2 | 2 | 4 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
25,679 | secdev/scapy | secdev_scapy/scapy/contrib/ethercat.py | scapy.contrib.ethercat.EtherCatFRMW | from scapy.fields import BitField, ByteField, LEShortField, FieldListField, LEIntField, FieldLenField, _EnumField, EnumField
class EtherCatFRMW(EtherCatType12DLPDU):
"""
FRMW - Configured address physical read multiple write
(IEC 61158-5-12, sec. 5.4.3.6 tab. 27 / p. 47)
"""
fields_desc = [ByteFiel... |
class EtherCatFRMW(EtherCatType12DLPDU):
'''
FRMW - Configured address physical read multiple write
(IEC 61158-5-12, sec. 5.4.3.6 tab. 27 / p. 47)
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1.33 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 121 | 8 | 1 | 3 | 2 | 2 | 4 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
25,680 | secdev/scapy | secdev_scapy/scapy/contrib/ethercat.py | scapy.contrib.ethercat.EtherCatLRD | from scapy.fields import BitField, ByteField, LEShortField, FieldListField, LEIntField, FieldLenField, _EnumField, EnumField
class EtherCatLRD(EtherCatType12DLPDU):
"""
LRD - Logical read
(IEC 61158-5-12, sec. 5.4.1.5 tab. 17 / p. 36)
"""
fields_desc = [ByteField('_cmd', 10)] + EtherCatType12DLPDU.... |
class EtherCatLRD(EtherCatType12DLPDU):
'''
LRD - Logical read
(IEC 61158-5-12, sec. 5.4.1.5 tab. 17 / p. 36)
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1.33 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 121 | 8 | 1 | 3 | 2 | 2 | 4 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
25,681 | secdev/scapy | secdev_scapy/scapy/contrib/ethercat.py | scapy.contrib.ethercat.EtherCatLRW | from scapy.fields import BitField, ByteField, LEShortField, FieldListField, LEIntField, FieldLenField, _EnumField, EnumField
class EtherCatLRW(EtherCatType12DLPDU):
"""
LRW - Logical read write
(IEC 61158-5-12, sec. 5.4.3.4 tab. 25 / p. 45)
"""
fields_desc = [ByteField('_cmd', 12)] + EtherCatType12... |
class EtherCatLRW(EtherCatType12DLPDU):
'''
LRW - Logical read write
(IEC 61158-5-12, sec. 5.4.3.4 tab. 25 / p. 45)
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1.33 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 121 | 8 | 1 | 3 | 2 | 2 | 4 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
25,682 | secdev/scapy | secdev_scapy/scapy/contrib/ethercat.py | scapy.contrib.ethercat.EtherCatLWR | from scapy.fields import BitField, ByteField, LEShortField, FieldListField, LEIntField, FieldLenField, _EnumField, EnumField
class EtherCatLWR(EtherCatType12DLPDU):
"""
LWR - Logical write
(IEC 61158-5-12, sec. 5.4.2.5 tab. 21 / p. 40)
"""
fields_desc = [ByteField('_cmd', 11)] + EtherCatType12DLPDU... |
class EtherCatLWR(EtherCatType12DLPDU):
'''
LWR - Logical write
(IEC 61158-5-12, sec. 5.4.2.5 tab. 21 / p. 40)
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1.33 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 121 | 8 | 1 | 3 | 2 | 2 | 4 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
25,683 | secdev/scapy | secdev_scapy/scapy/contrib/ethercat.py | scapy.contrib.ethercat.EtherCatType12DLPDU | from scapy.error import log_runtime, Scapy_Exception
from scapy.packet import bind_layers, Packet, Padding
from scapy.fields import BitField, ByteField, LEShortField, FieldListField, LEIntField, FieldLenField, _EnumField, EnumField
class EtherCatType12DLPDU(Packet):
"""
Type12 message base class
"""
d... |
class EtherCatType12DLPDU(Packet):
'''
Type12 message base class
'''
def post_build(self, pkt, pay):
'''
set next attr automatically if not set explicitly by user
:param pkt: raw string containing the current layer
:param pay: raw string containing the payload
... | 3 | 2 | 20 | 4 | 13 | 3 | 4 | 0.19 | 1 | 4 | 1 | 14 | 2 | 0 | 2 | 121 | 75 | 12 | 53 | 10 | 50 | 10 | 24 | 10 | 21 | 6 | 4 | 2 | 8 |
25,684 | secdev/scapy | secdev_scapy/scapy/contrib/ethercat.py | scapy.contrib.ethercat.LEBitEnumField | from scapy.fields import BitField, ByteField, LEShortField, FieldListField, LEIntField, FieldLenField, _EnumField, EnumField
class LEBitEnumField(LEBitField, _EnumField):
__slots__ = EnumField.__slots__
def __init__(self, name, default, size, enum):
_EnumField.__init__(self, name, default, enum)
... |
class LEBitEnumField(LEBitField, _EnumField):
def __init__(self, name, default, size, enum):
pass | 2 | 0 | 4 | 0 | 4 | 0 | 1 | 0 | 2 | 0 | 0 | 0 | 1 | 2 | 1 | 49 | 7 | 1 | 6 | 5 | 4 | 0 | 6 | 5 | 4 | 1 | 7 | 0 | 1 |
25,685 | secdev/scapy | secdev_scapy/scapy/contrib/ethercat.py | scapy.contrib.ethercat.LEBitField | import struct
from scapy.fields import BitField, ByteField, LEShortField, FieldListField, LEIntField, FieldLenField, _EnumField, EnumField
class LEBitField(BitField):
"""
a little endian version of the BitField
"""
def _check_field_type(self, pkt, index):
"""
check if the field address... |
class LEBitField(BitField):
'''
a little endian version of the BitField
'''
def _check_field_type(self, pkt, index):
'''
check if the field addressed by given index relative to this field
shares type of this field so we can catch a mix of LEBitField
and BitField/other t... | 4 | 4 | 57 | 11 | 32 | 15 | 6 | 0.48 | 1 | 4 | 1 | 2 | 3 | 0 | 3 | 40 | 179 | 37 | 97 | 22 | 93 | 47 | 84 | 22 | 80 | 8 | 6 | 4 | 18 |
25,686 | secdev/scapy | secdev_scapy/scapy/contrib/ethercat.py | scapy.contrib.ethercat.LEBitFieldLenField | from scapy.fields import BitField, ByteField, LEShortField, FieldListField, LEIntField, FieldLenField, _EnumField, EnumField
class LEBitFieldLenField(LEBitField):
__slots__ = ['length_of', 'count_of', 'adjust']
def __init__(self, name, default, size, length_of=None, count_of=None, adjust=lambda pkt, x: x):
... |
class LEBitFieldLenField(LEBitField):
def __init__(self, name, default, size, length_of=None, count_of=None, adjust=lambda pkt, x: x):
pass
def i2m(self, pkt, x):
pass | 3 | 0 | 4 | 0 | 4 | 1 | 1 | 0.11 | 1 | 1 | 1 | 0 | 2 | 3 | 2 | 42 | 11 | 2 | 9 | 7 | 6 | 1 | 9 | 7 | 6 | 1 | 7 | 0 | 2 |
25,687 | secdev/scapy | secdev_scapy/scapy/contrib/ethercat.py | scapy.contrib.ethercat.LEBitFieldSequenceException | from scapy.error import log_runtime, Scapy_Exception
class LEBitFieldSequenceException(Scapy_Exception):
"""
thrown by EtherCat structure tests
"""
pass |
class LEBitFieldSequenceException(Scapy_Exception):
'''
thrown by EtherCat structure tests
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 5 | 0 | 2 | 1 | 1 | 3 | 2 | 1 | 1 | 0 | 4 | 0 | 0 |
25,688 | secdev/scapy | secdev_scapy/scapy/contrib/etherip.py | scapy.contrib.etherip.EtherIP | from scapy.packet import Packet, bind_layers
from scapy.fields import BitField
class EtherIP(Packet):
name = 'EtherIP / RFC 3378'
fields_desc = [BitField('version', 3, 4), BitField('reserved', 0, 12)] |
class EtherIP(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 4 | 0 | 4 | 3 | 3 | 0 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
25,689 | secdev/scapy | secdev_scapy/scapy/contrib/exposure_notification.py | scapy.contrib.exposure_notification.Exposure_Notification_Frame | from scapy.fields import StrFixedLenField
from scapy.packet import bind_layers, Packet
from scapy.layers.bluetooth import EIR_Hdr, EIR_ServiceData16BitUUID, EIR_CompleteList16BitServiceUUIDs, LowEnergyBeaconHelper
class Exposure_Notification_Frame(Packet, LowEnergyBeaconHelper):
"""Apple/Google BLE Exposure Notifi... |
class Exposure_Notification_Frame(Packet, LowEnergyBeaconHelper):
'''Apple/Google BLE Exposure Notification broadcast frame.'''
def build_eir(self):
'''Builds a list of EIR messages to wrap this frame.'''
pass | 2 | 2 | 8 | 1 | 6 | 1 | 1 | 0.33 | 2 | 3 | 3 | 0 | 1 | 0 | 1 | 123 | 19 | 3 | 12 | 4 | 10 | 4 | 5 | 4 | 3 | 1 | 4 | 0 | 1 |
25,690 | secdev/scapy | secdev_scapy/scapy/contrib/geneve.py | scapy.contrib.geneve.GENEVE | from scapy.fields import BitField, XByteField, XShortEnumField, X3BytesField, StrLenField, PacketListField
import struct
from scapy.layers.l2 import Ether, ETHER_TYPES
from scapy.packet import Packet, bind_layers
class GENEVE(Packet):
name = 'GENEVE'
fields_desc = [BitField('version', 0, 2), BitField('optionle... |
class GENEVE(Packet):
def post_build(self, p, pay):
pass
def answers(self, other):
pass
def mysummary(self):
pass | 4 | 0 | 5 | 0 | 5 | 0 | 2 | 0 | 1 | 0 | 0 | 0 | 3 | 0 | 3 | 122 | 31 | 3 | 28 | 7 | 24 | 0 | 16 | 7 | 12 | 3 | 4 | 2 | 6 |
25,691 | secdev/scapy | secdev_scapy/scapy/contrib/geneve.py | scapy.contrib.geneve.GeneveOptions | import struct
from scapy.fields import BitField, XByteField, XShortEnumField, X3BytesField, StrLenField, PacketListField
from scapy.packet import Packet, bind_layers
class GeneveOptions(Packet):
name = 'Geneve Options'
fields_desc = [XShortEnumField('classid', 0, CLASS_IDS), XByteField('type', 0), BitField('re... |
class GeneveOptions(Packet):
def extract_padding(self, s):
pass
def post_build(self, p, pay):
pass | 3 | 0 | 4 | 0 | 4 | 0 | 2 | 0 | 1 | 0 | 0 | 0 | 2 | 0 | 2 | 121 | 16 | 2 | 14 | 6 | 11 | 0 | 10 | 6 | 7 | 2 | 4 | 1 | 3 |
25,692 | secdev/scapy | secdev_scapy/scapy/contrib/gtp.py | scapy.contrib.gtp.APNStrLenField | from scapy.compat import chb, orb, bytes_encode
from scapy.error import warning
from scapy.fields import BitEnumField, BitField, ByteEnumField, ByteField, ConditionalField, FieldLenField, FieldListField, FlagsField, IPField, IntField, PacketListField, ShortField, StrFixedLenField, StrLenField, X3BytesField, XBitField, ... |
class APNStrLenField(StrLenField):
def m2i(self, pkt, s):
pass
def i2m(self, pkt, s):
pass | 3 | 0 | 9 | 0 | 9 | 1 | 3 | 0.11 | 1 | 1 | 0 | 0 | 2 | 0 | 2 | 45 | 21 | 1 | 19 | 6 | 16 | 2 | 19 | 6 | 16 | 4 | 7 | 2 | 6 |
25,693 | secdev/scapy | secdev_scapy/scapy/contrib/gtp.py | scapy.contrib.gtp.FQDNField | from scapy.layers.dns import DNSStrField
from scapy.compat import chb, orb, bytes_encode
class FQDNField(DNSStrField):
"""
DNSStrField without ending null.
See ETSI TS 129.244 18.07.00 - 8.66, NOTE 1
"""
def h2i(self, pkt, x):
return bytes_encode(x)
def i2m(self, pkt, x):
ret... |
class FQDNField(DNSStrField):
'''
DNSStrField without ending null.
See ETSI TS 129.244 18.07.00 - 8.66, NOTE 1
'''
def h2i(self, pkt, x):
pass
def i2m(self, pkt, x):
pass
def getfield(self, pkt, s):
pass | 4 | 1 | 2 | 0 | 2 | 0 | 1 | 0.5 | 1 | 1 | 0 | 0 | 3 | 0 | 3 | 52 | 16 | 4 | 8 | 5 | 4 | 4 | 8 | 5 | 4 | 1 | 8 | 0 | 3 |
25,694 | secdev/scapy | secdev_scapy/scapy/contrib/gtp.py | scapy.contrib.gtp.GTPCreatePDPContextRequest | from scapy.volatile import RandInt, RandIP, RandNum, RandString
from scapy.packet import bind_layers, bind_bottom_up, bind_top_down, Packet, Raw
from scapy.fields import BitEnumField, BitField, ByteEnumField, ByteField, ConditionalField, FieldLenField, FieldListField, FlagsField, IPField, IntField, PacketListField, Sho... |
class GTPCreatePDPContextRequest(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.67 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 7 | 0 | 6 | 3 | 5 | 4 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
25,695 | secdev/scapy | secdev_scapy/scapy/contrib/gtp.py | scapy.contrib.gtp.GTPCreatePDPContextResponse | from scapy.packet import bind_layers, bind_bottom_up, bind_top_down, Packet, Raw
from scapy.fields import BitEnumField, BitField, ByteEnumField, ByteField, ConditionalField, FieldLenField, FieldListField, FlagsField, IPField, IntField, PacketListField, ShortField, StrFixedLenField, StrLenField, X3BytesField, XBitField,... |
class GTPCreatePDPContextResponse(Packet):
def answers(self, other):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0.2 | 1 | 1 | 1 | 0 | 1 | 0 | 1 | 120 | 7 | 1 | 5 | 4 | 3 | 1 | 5 | 4 | 3 | 1 | 4 | 0 | 1 |
25,696 | secdev/scapy | secdev_scapy/scapy/contrib/gtp.py | scapy.contrib.gtp.GTPDeletePDPContextRequest | from scapy.fields import BitEnumField, BitField, ByteEnumField, ByteField, ConditionalField, FieldLenField, FieldListField, FlagsField, IPField, IntField, PacketListField, ShortField, StrFixedLenField, StrLenField, X3BytesField, XBitField, XByteField, XIntField
from scapy.packet import bind_layers, bind_bottom_up, bind... |
class GTPDeletePDPContextRequest(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.33 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 4 | 0 | 3 | 3 | 2 | 1 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
25,697 | secdev/scapy | secdev_scapy/scapy/contrib/gtp.py | scapy.contrib.gtp.GTPDeletePDPContextResponse | from scapy.fields import BitEnumField, BitField, ByteEnumField, ByteField, ConditionalField, FieldLenField, FieldListField, FlagsField, IPField, IntField, PacketListField, ShortField, StrFixedLenField, StrLenField, X3BytesField, XBitField, XByteField, XIntField
from scapy.packet import bind_layers, bind_bottom_up, bind... |
class GTPDeletePDPContextResponse(Packet):
def answers(self, other):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0.2 | 1 | 1 | 1 | 0 | 1 | 0 | 1 | 120 | 7 | 1 | 5 | 4 | 3 | 1 | 5 | 4 | 3 | 1 | 4 | 0 | 1 |
25,698 | secdev/scapy | secdev_scapy/scapy/contrib/gtp.py | scapy.contrib.gtp.GTPEchoRequest | from scapy.packet import bind_layers, bind_bottom_up, bind_top_down, Packet, Raw
class GTPEchoRequest(Packet):
name = 'GTP Echo Request' |
class GTPEchoRequest(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 3 | 0 | 2 | 2 | 1 | 1 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
25,699 | secdev/scapy | secdev_scapy/scapy/contrib/gtp.py | scapy.contrib.gtp.GTPEchoResponse | from scapy.packet import bind_layers, bind_bottom_up, bind_top_down, Packet, Raw
from scapy.fields import BitEnumField, BitField, ByteEnumField, ByteField, ConditionalField, FieldLenField, FieldListField, FlagsField, IPField, IntField, PacketListField, ShortField, StrFixedLenField, StrLenField, X3BytesField, XBitField,... |
class GTPEchoResponse(Packet):
def answers(self, other):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0.2 | 1 | 1 | 1 | 0 | 1 | 0 | 1 | 120 | 7 | 1 | 5 | 4 | 3 | 1 | 5 | 4 | 3 | 1 | 4 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.