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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
27,800 | secdev/scapy | secdev_scapy/scapy/fields.py | scapy.fields.StrField | class StrField(_StrField[bytes]):
pass | class StrField(_StrField[bytes]):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 28 | 0 | 0 | 0 | 40 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 5 | 0 | 0 |
27,801 | secdev/scapy | secdev_scapy/scapy/fields.py | scapy.fields.StrFieldUtf16 | from scapy.compat import bytes_hex, plain_str, raw, bytes_encode
class StrFieldUtf16(StrField):
def any2i(self, pkt, x):
if isinstance(x, str):
return self.h2i(pkt, x)
return super(StrFieldUtf16, self).any2i(pkt, x)
def i2repr(self, pkt, x):
return plain_str(self.i2h(pkt, ... |
class StrFieldUtf16(StrField):
def any2i(self, pkt, x):
pass
def i2repr(self, pkt, x):
pass
def h2i(self, pkt, x):
pass
def i2h(self, pkt, x):
pass | 5 | 0 | 4 | 0 | 3 | 1 | 1 | 0.36 | 1 | 2 | 0 | 3 | 4 | 0 | 4 | 44 | 18 | 3 | 11 | 5 | 6 | 4 | 11 | 5 | 6 | 2 | 6 | 1 | 5 |
27,802 | secdev/scapy | secdev_scapy/scapy/fields.py | scapy.fields.StrFixedLenEnumField | class StrFixedLenEnumField(_StrEnumField, StrFixedLenField):
__slots__ = ['enum']
def __init__(self, name, default, enum=None, length=None, length_from=None):
StrFixedLenField.__init__(self, name, default, length=length, length_from=length_from)
self.enum = enum | class StrFixedLenEnumField(_StrEnumField, StrFixedLenField):
def __init__(self, name, default, enum=None, length=None, length_from=None):
pass | 2 | 0 | 11 | 0 | 10 | 7 | 1 | 0.58 | 2 | 0 | 0 | 0 | 1 | 1 | 1 | 48 | 14 | 1 | 12 | 11 | 3 | 7 | 5 | 4 | 3 | 1 | 7 | 0 | 1 |
27,803 | secdev/scapy | secdev_scapy/scapy/fields.py | scapy.fields.StrFixedLenField | from scapy.volatile import RandBin, RandByte, RandEnumKeys, RandInt, RandIP, RandIP6, RandLong, RandMAC, RandNum, RandShort, RandSInt, RandSByte, RandTermString, RandUUID, VolatileValue, RandSShort, RandSLong, RandFloat
import struct
from scapy.config import conf
class StrFixedLenField(StrField):
__slots__ = ['len... |
class StrFixedLenField(StrField):
def __init__(self, name, default, length=None, length_from=None):
pass
def i2repr(self, pkt, v):
pass
def getfield(self, pkt, s):
pass
def addfield(self, pkt, s, val):
pass
def randval(self):
pass | 6 | 0 | 8 | 0 | 7 | 3 | 2 | 0.36 | 1 | 5 | 2 | 13 | 5 | 2 | 5 | 45 | 46 | 5 | 36 | 20 | 21 | 13 | 27 | 11 | 21 | 2 | 6 | 1 | 10 |
27,804 | secdev/scapy | secdev_scapy/scapy/fields.py | scapy.fields.StrFixedLenFieldUtf16 | class StrFixedLenFieldUtf16(StrFixedLenField, StrFieldUtf16):
pass | class StrFixedLenFieldUtf16(StrFixedLenField, StrFieldUtf16):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 7 | 0 | 0 |
27,805 | secdev/scapy | secdev_scapy/scapy/fields.py | scapy.fields.StrLenEnumField | class StrLenEnumField(_StrEnumField, StrLenField):
__slots__ = ['enum']
def __init__(self, name, default, enum=None, **kwargs):
StrLenField.__init__(self, name, default, **kwargs)
self.enum = enum | class StrLenEnumField(_StrEnumField, StrLenField):
def __init__(self, name, default, enum=None, **kwargs):
pass | 2 | 0 | 10 | 0 | 9 | 5 | 1 | 0.45 | 2 | 0 | 0 | 0 | 1 | 1 | 1 | 46 | 13 | 1 | 11 | 10 | 3 | 5 | 5 | 4 | 3 | 1 | 7 | 0 | 1 |
27,806 | secdev/scapy | secdev_scapy/scapy/fields.py | scapy.fields.StrLenField | from scapy.volatile import RandBin, RandByte, RandEnumKeys, RandInt, RandIP, RandIP6, RandLong, RandMAC, RandNum, RandShort, RandSInt, RandSByte, RandTermString, RandUUID, VolatileValue, RandSShort, RandSLong, RandFloat
class StrLenField(StrField):
"""
StrField with a length
:param length_from: a function... |
class StrLenField(StrField):
'''
StrField with a length
:param length_from: a function that returns the size of the string
:param max_length: max size to use as randval
'''
def __init__(self, name, default, length_from=None, max_length=None):
pass
def getfield(self, pkt, s):
... | 4 | 1 | 7 | 0 | 6 | 2 | 2 | 0.55 | 1 | 3 | 2 | 34 | 3 | 2 | 3 | 43 | 34 | 4 | 22 | 15 | 12 | 12 | 16 | 9 | 12 | 3 | 6 | 1 | 5 |
27,807 | secdev/scapy | secdev_scapy/scapy/fields.py | scapy.fields.StrLenFieldUtf16 | class StrLenFieldUtf16(StrLenField, StrFieldUtf16):
pass | class StrLenFieldUtf16(StrLenField, StrFieldUtf16):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 3 | 0 | 0 | 0 | 47 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 7 | 0 | 0 |
27,808 | secdev/scapy | secdev_scapy/scapy/fields.py | scapy.fields.StrNullField | from scapy.volatile import RandBin, RandByte, RandEnumKeys, RandInt, RandIP, RandIP6, RandLong, RandMAC, RandNum, RandShort, RandSInt, RandSByte, RandTermString, RandUUID, VolatileValue, RandSShort, RandSLong, RandFloat
class StrNullField(StrField):
DELIMITER = b'\x00'
def addfield(self, pkt, s, val):
... |
class StrNullField(StrField):
def addfield(self, pkt, s, val):
pass
def getfield(self, pkt, s):
pass
def randval(self):
pass
def i2len(self, pkt, x):
pass | 5 | 0 | 6 | 0 | 5 | 2 | 2 | 0.32 | 1 | 3 | 2 | 4 | 4 | 0 | 4 | 44 | 31 | 4 | 22 | 10 | 14 | 7 | 18 | 7 | 13 | 4 | 6 | 2 | 7 |
27,809 | secdev/scapy | secdev_scapy/scapy/fields.py | scapy.fields.StrNullFieldUtf16 | class StrNullFieldUtf16(StrNullField, StrFieldUtf16):
DELIMITER = b'\x00\x00' | class StrNullFieldUtf16(StrNullField, StrFieldUtf16):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 1 | 0 | 0 | 0 | 48 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 7 | 0 | 0 |
27,810 | secdev/scapy | secdev_scapy/scapy/fields.py | scapy.fields.StrStopField | from scapy.volatile import RandBin, RandByte, RandEnumKeys, RandInt, RandIP, RandIP6, RandLong, RandMAC, RandNum, RandShort, RandSInt, RandSByte, RandTermString, RandUUID, VolatileValue, RandSShort, RandSLong, RandFloat
class StrStopField(StrField):
__slots__ = ['stop', 'additional']
def __init__(self, name, ... |
class StrStopField(StrField):
def __init__(self, name, default, stop, additional=0):
pass
def getfield(self, pkt, s):
pass
def randval(self):
pass | 4 | 0 | 5 | 0 | 4 | 1 | 1 | 0.21 | 1 | 2 | 2 | 0 | 3 | 2 | 3 | 43 | 20 | 3 | 14 | 8 | 10 | 3 | 14 | 8 | 10 | 2 | 6 | 1 | 4 |
27,811 | secdev/scapy | secdev_scapy/scapy/fields.py | scapy.fields.ThreeBytesField | import struct
class ThreeBytesField(Field[int, int]):
def __init__(self, name, default):
Field.__init__(self, name, default, '!I')
def addfield(self, pkt, s, val):
return s + struct.pack(self.fmt, self.i2m(pkt, val))[1:4]
def getfield(self, pkt, s):
return (s[3:], self.m2i(pkt, s... |
class ThreeBytesField(Field[int, int]):
def __init__(self, name, default):
pass
def addfield(self, pkt, s, val):
pass
def getfield(self, pkt, s):
pass | 4 | 0 | 3 | 0 | 2 | 1 | 1 | 0.57 | 1 | 0 | 0 | 3 | 3 | 0 | 3 | 35 | 12 | 2 | 7 | 4 | 3 | 4 | 7 | 4 | 3 | 1 | 4 | 0 | 3 |
27,812 | secdev/scapy | secdev_scapy/scapy/fields.py | scapy.fields.TrailerBytes | class TrailerBytes(bytes):
"""
Reverses slice operations to take from the back of the packet,
not the front
"""
def __getitem__(self, item):
if isinstance(item, int):
if item < 0:
item = 1 + item
else:
item = len(self) - 1 - item
... | class TrailerBytes(bytes):
'''
Reverses slice operations to take from the back of the packet,
not the front
'''
def __getitem__(self, item):
pass | 2 | 1 | 13 | 0 | 12 | 2 | 6 | 0.46 | 1 | 3 | 0 | 0 | 1 | 0 | 1 | 58 | 19 | 1 | 13 | 5 | 11 | 6 | 11 | 5 | 9 | 6 | 2 | 2 | 6 |
27,813 | secdev/scapy | secdev_scapy/scapy/fields.py | scapy.fields.TrailerField | from types import MethodType
class TrailerField(_FieldContainer):
"""Special Field that gets its value from the end of the *packet*
(Note: not layer, but packet).
Mostly used for FCS
"""
__slots__ = ['fld']
def __init__(self, fld):
self.fld = fld
def getfield(self, pkt, s):
... |
class TrailerField(_FieldContainer):
'''Special Field that gets its value from the end of the *packet*
(Note: not layer, but packet).
Mostly used for FCS
'''
def __init__(self, fld):
pass
def getfield(self, pkt, s):
pass
def _post_dissect(self, s):
pas... | 6 | 1 | 8 | 0 | 6 | 3 | 1 | 0.74 | 1 | 2 | 1 | 1 | 3 | 4 | 3 | 4 | 43 | 7 | 23 | 15 | 17 | 17 | 23 | 15 | 17 | 1 | 2 | 0 | 5 |
27,814 | secdev/scapy | secdev_scapy/scapy/fields.py | scapy.fields.UTCTimeField | from scapy.data import EPOCH
import time
import calendar
import datetime
class UTCTimeField(Field[float, int]):
__slots__ = ['epoch', 'delta', 'strf', 'use_msec', 'use_micro', 'use_nano', 'custom_scaling']
def __init__(self, name, default, use_msec=False, use_micro=False, use_nano=False, epoch=None, strf='%a,... |
class UTCTimeField(Field[float, int]):
def __init__(self, name, default, use_msec=False, use_micro=False, use_nano=False, epoch=None, strf='%a, %d %b %Y %H:%M:%S %z', custom_scaling=None, fmt='I'):
pass
def i2repr(self, pkt, x):
pass
def i2m(self, pkt, x):
pass | 4 | 0 | 18 | 0 | 17 | 5 | 5 | 0.26 | 1 | 3 | 0 | 4 | 3 | 7 | 3 | 35 | 61 | 3 | 53 | 24 | 39 | 14 | 32 | 14 | 28 | 6 | 4 | 2 | 14 |
27,815 | secdev/scapy | secdev_scapy/scapy/fields.py | scapy.fields.UUIDEnumField | from uuid import UUID
class UUIDEnumField(UUIDField, _EnumField[UUID]):
__slots__ = EnumField.__slots__
def __init__(self, name, default, enum, uuid_fmt=0):
_EnumField.__init__(self, name, default, enum, '16s')
UUIDField.__init__(self, name, default, uuid_fmt=uuid_fmt)
def any2i(self, pkt... |
class UUIDEnumField(UUIDField, _EnumField[UUID]):
def __init__(self, name, default, enum, uuid_fmt=0):
pass
def any2i(self, pkt, x):
pass
def i2repr(self, pkt, x):
pass | 4 | 0 | 4 | 0 | 3 | 2 | 1 | 0.58 | 2 | 0 | 0 | 0 | 3 | 0 | 3 | 49 | 18 | 3 | 12 | 8 | 5 | 7 | 9 | 5 | 5 | 1 | 5 | 0 | 3 |
27,816 | secdev/scapy | secdev_scapy/scapy/fields.py | scapy.fields.UUIDField | from scapy.volatile import RandBin, RandByte, RandEnumKeys, RandInt, RandIP, RandIP6, RandLong, RandMAC, RandNum, RandShort, RandSInt, RandSByte, RandTermString, RandUUID, VolatileValue, RandSShort, RandSLong, RandFloat
from scapy.compat import bytes_hex, plain_str, raw, bytes_encode
from uuid import UUID
from typing i... |
class UUIDField(Field[UUID, bytes]):
'''Field for UUID storage, wrapping Python's uuid.UUID type.
The internal storage format of this field is ``uuid.UUID`` from the Python
standard library.
There are three formats (``uuid_fmt``) for this field type:
* ``FORMAT_BE`` (default): the UUID is six field... | 8 | 2 | 13 | 1 | 10 | 3 | 4 | 0.76 | 1 | 9 | 3 | 1 | 5 | 1 | 6 | 38 | 144 | 30 | 67 | 23 | 53 | 51 | 48 | 16 | 41 | 9 | 4 | 3 | 22 |
27,817 | secdev/scapy | secdev_scapy/scapy/fields.py | scapy.fields.X3BytesField | class X3BytesField(ThreeBytesField, XByteField):
def i2repr(self, pkt, x):
return XByteField.i2repr(self, pkt, x) | class X3BytesField(ThreeBytesField, XByteField):
def i2repr(self, pkt, x):
pass | 2 | 0 | 3 | 0 | 2 | 1 | 1 | 0.33 | 2 | 0 | 0 | 3 | 1 | 0 | 1 | 38 | 4 | 0 | 3 | 2 | 1 | 1 | 3 | 2 | 1 | 1 | 6 | 0 | 1 |
27,818 | secdev/scapy | secdev_scapy/scapy/fields.py | scapy.fields.XBitField | from scapy.utils import inet_aton, inet_ntoa, lhex, mac2str, str2mac, EDecimal
class XBitField(BitField):
def i2repr(self, pkt, x):
return lhex(self.i2h(pkt, x)) |
class XBitField(BitField):
def i2repr(self, pkt, x):
pass | 2 | 0 | 3 | 0 | 2 | 1 | 1 | 0.33 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 38 | 4 | 0 | 3 | 2 | 1 | 1 | 3 | 2 | 1 | 1 | 6 | 0 | 1 |
27,819 | secdev/scapy | secdev_scapy/scapy/fields.py | scapy.fields.XByteEnumField | from scapy.config import conf
from scapy.utils import inet_aton, inet_ntoa, lhex, mac2str, str2mac, EDecimal
from scapy.volatile import RandBin, RandByte, RandEnumKeys, RandInt, RandIP, RandIP6, RandLong, RandMAC, RandNum, RandShort, RandSInt, RandSByte, RandTermString, RandUUID, VolatileValue, RandSShort, RandSLong, R... |
class XByteEnumField(ByteEnumField):
def i2repr_one(self, pkt, x):
pass | 2 | 0 | 13 | 0 | 12 | 1 | 6 | 0.08 | 1 | 2 | 1 | 0 | 1 | 0 | 1 | 42 | 14 | 0 | 13 | 3 | 11 | 1 | 12 | 3 | 10 | 6 | 7 | 3 | 6 |
27,820 | secdev/scapy | secdev_scapy/scapy/fields.py | scapy.fields.XByteField | from scapy.utils import inet_aton, inet_ntoa, lhex, mac2str, str2mac, EDecimal
class XByteField(ByteField):
def i2repr(self, pkt, x):
return lhex(self.i2h(pkt, x)) |
class XByteField(ByteField):
def i2repr(self, pkt, x):
pass | 2 | 0 | 3 | 0 | 2 | 1 | 1 | 0.33 | 1 | 0 | 0 | 4 | 1 | 0 | 1 | 34 | 4 | 0 | 3 | 2 | 1 | 1 | 3 | 2 | 1 | 1 | 5 | 0 | 1 |
27,821 | secdev/scapy | secdev_scapy/scapy/fields.py | scapy.fields.XIntField | from scapy.utils import inet_aton, inet_ntoa, lhex, mac2str, str2mac, EDecimal
class XIntField(IntField):
def i2repr(self, pkt, x):
return lhex(self.i2h(pkt, x)) |
class XIntField(IntField):
def i2repr(self, pkt, x):
pass | 2 | 0 | 3 | 0 | 2 | 1 | 1 | 0.33 | 1 | 0 | 0 | 1 | 1 | 0 | 1 | 34 | 4 | 0 | 3 | 2 | 1 | 1 | 3 | 2 | 1 | 1 | 5 | 0 | 1 |
27,822 | secdev/scapy | secdev_scapy/scapy/fields.py | scapy.fields.XLE3BytesEnumField | from scapy.utils import inet_aton, inet_ntoa, lhex, mac2str, str2mac, EDecimal
class XLE3BytesEnumField(LE3BytesEnumField):
def _i2repr(self, pkt, x):
return lhex(x) |
class XLE3BytesEnumField(LE3BytesEnumField):
def _i2repr(self, pkt, x):
pass | 2 | 0 | 3 | 0 | 2 | 1 | 1 | 0.33 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 48 | 4 | 0 | 3 | 2 | 1 | 1 | 3 | 2 | 1 | 1 | 7 | 0 | 1 |
27,823 | secdev/scapy | secdev_scapy/scapy/fields.py | scapy.fields.XLE3BytesField | class XLE3BytesField(LEThreeBytesField, XByteField):
def i2repr(self, pkt, x):
return XByteField.i2repr(self, pkt, x) | class XLE3BytesField(LEThreeBytesField, XByteField):
def i2repr(self, pkt, x):
pass | 2 | 0 | 3 | 0 | 2 | 1 | 1 | 0.33 | 2 | 0 | 0 | 0 | 1 | 0 | 1 | 38 | 4 | 0 | 3 | 2 | 1 | 1 | 3 | 2 | 1 | 1 | 6 | 0 | 1 |
27,824 | secdev/scapy | secdev_scapy/scapy/fields.py | scapy.fields.XLELongField | class XLELongField(LELongField, XLongField):
def i2repr(self, pkt, x):
return XLongField.i2repr(self, pkt, x) | class XLELongField(LELongField, XLongField):
def i2repr(self, pkt, x):
pass | 2 | 0 | 3 | 0 | 2 | 1 | 1 | 0.33 | 2 | 0 | 0 | 0 | 1 | 0 | 1 | 36 | 4 | 0 | 3 | 2 | 1 | 1 | 3 | 2 | 1 | 1 | 6 | 0 | 1 |
27,825 | secdev/scapy | secdev_scapy/scapy/fields.py | scapy.fields.XLEStrLenField | class XLEStrLenField(XStrLenField):
def i2m(self, pkt, x):
if not x:
return b''
return x[::-1]
def m2i(self, pkt, x):
return x[::-1] | class XLEStrLenField(XStrLenField):
def i2m(self, pkt, x):
pass
def m2i(self, pkt, x):
pass | 3 | 0 | 4 | 0 | 3 | 1 | 2 | 0.29 | 1 | 0 | 0 | 0 | 2 | 0 | 2 | 46 | 10 | 1 | 7 | 3 | 4 | 2 | 7 | 3 | 4 | 2 | 8 | 1 | 3 |
27,826 | secdev/scapy | secdev_scapy/scapy/fields.py | scapy.fields.XLongField | from scapy.utils import inet_aton, inet_ntoa, lhex, mac2str, str2mac, EDecimal
class XLongField(LongField):
def i2repr(self, pkt, x):
return lhex(self.i2h(pkt, x)) |
class XLongField(LongField):
def i2repr(self, pkt, x):
pass | 2 | 0 | 3 | 0 | 2 | 1 | 1 | 0.33 | 1 | 0 | 0 | 1 | 1 | 0 | 1 | 34 | 4 | 0 | 3 | 2 | 1 | 1 | 3 | 2 | 1 | 1 | 5 | 0 | 1 |
27,827 | secdev/scapy | secdev_scapy/scapy/fields.py | scapy.fields.XNBytesField | class XNBytesField(NBytesField):
def i2repr(self, pkt, x):
if isinstance(x, int):
return '0x%x' % x
if isinstance(x, (list, tuple)):
return '0x' + ''.join(('%02x' % b for b in x))
return super(XNBytesField, self).i2repr(pkt, x) | class XNBytesField(NBytesField):
def i2repr(self, pkt, x):
pass | 2 | 0 | 8 | 0 | 6 | 2 | 3 | 0.29 | 1 | 4 | 0 | 0 | 1 | 0 | 1 | 40 | 9 | 0 | 7 | 2 | 5 | 2 | 7 | 2 | 5 | 3 | 5 | 1 | 3 |
27,828 | secdev/scapy | secdev_scapy/scapy/fields.py | scapy.fields.XShortEnumField | from scapy.utils import inet_aton, inet_ntoa, lhex, mac2str, str2mac, EDecimal
class XShortEnumField(ShortEnumField):
def _i2repr(self, pkt, x):
return lhex(x) |
class XShortEnumField(ShortEnumField):
def _i2repr(self, pkt, x):
pass | 2 | 0 | 3 | 0 | 2 | 1 | 1 | 0.33 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 42 | 4 | 0 | 3 | 2 | 1 | 1 | 3 | 2 | 1 | 1 | 7 | 0 | 1 |
27,829 | secdev/scapy | secdev_scapy/scapy/fields.py | scapy.fields.XShortField | from scapy.utils import inet_aton, inet_ntoa, lhex, mac2str, str2mac, EDecimal
class XShortField(ShortField):
def i2repr(self, pkt, x):
return lhex(self.i2h(pkt, x)) |
class XShortField(ShortField):
def i2repr(self, pkt, x):
pass | 2 | 0 | 3 | 0 | 2 | 1 | 1 | 0.33 | 1 | 0 | 0 | 2 | 1 | 0 | 1 | 34 | 4 | 0 | 3 | 2 | 1 | 1 | 3 | 2 | 1 | 1 | 5 | 0 | 1 |
27,830 | secdev/scapy | secdev_scapy/scapy/fields.py | scapy.fields.XStrField | class XStrField(_XStrField, StrField):
"""
StrField which value is printed as hexadecimal.
""" | class XStrField(_XStrField, StrField):
'''
StrField which value is printed as hexadecimal.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 41 | 4 | 0 | 1 | 1 | 0 | 3 | 1 | 1 | 0 | 0 | 6 | 0 | 0 |
27,831 | secdev/scapy | secdev_scapy/scapy/fields.py | scapy.fields.XStrFixedLenField | class XStrFixedLenField(_XStrField, StrFixedLenField):
"""
StrFixedLenField which value is printed as hexadecimal.
""" | class XStrFixedLenField(_XStrField, StrFixedLenField):
'''
StrFixedLenField which value is printed as hexadecimal.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 46 | 4 | 0 | 1 | 1 | 0 | 3 | 1 | 1 | 0 | 0 | 7 | 0 | 0 |
27,832 | secdev/scapy | secdev_scapy/scapy/fields.py | scapy.fields.XStrLenField | class XStrLenField(_XStrField, StrLenField):
"""
StrLenField which value is printed as hexadecimal.
""" | class XStrLenField(_XStrField, StrLenField):
'''
StrLenField which value is printed as hexadecimal.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 | 2 | 0 | 0 | 2 | 0 | 0 | 0 | 44 | 4 | 0 | 1 | 1 | 0 | 3 | 1 | 1 | 0 | 0 | 7 | 0 | 0 |
27,833 | secdev/scapy | secdev_scapy/scapy/fields.py | scapy.fields.YesNoByteField | class YesNoByteField(ByteField):
"""
A byte based flag field that shows representation of its number
based on a given association
In its default configuration the following representation is generated:
x == 0 : 'no'
x != 0 : 'yes'
In more sophisticated use-cases (e.g. yes/no/invali... | class YesNoByteField(ByteField):
'''
A byte based flag field that shows representation of its number
based on a given association
In its default configuration the following representation is generated:
x == 0 : 'no'
x != 0 : 'yes'
In more sophisticated use-cases (e.g. yes/no/invalid)... | 4 | 1 | 18 | 3 | 13 | 5 | 5 | 1.31 | 1 | 7 | 2 | 0 | 3 | 1 | 3 | 36 | 112 | 26 | 42 | 14 | 38 | 55 | 34 | 14 | 30 | 12 | 5 | 4 | 15 |
27,834 | secdev/scapy | secdev_scapy/scapy/fields.py | scapy.fields._BitField | from scapy.volatile import RandBin, RandByte, RandEnumKeys, RandInt, RandIP, RandIP6, RandLong, RandMAC, RandNum, RandShort, RandSInt, RandSByte, RandTermString, RandUUID, VolatileValue, RandSShort, RandSLong, RandFloat
import struct
class _BitField(Field[I, int]):
"""
Field to handle bits.
:param name: n... |
class _BitField(Field[I, int]):
'''
Field to handle bits.
:param name: name of the field
:param default: default value
:param size: size (in bits). If negative, Low endian
:param tot_size: size of the total group of bits (in bytes) the bitfield
is in. If negative, Low endia... | 6 | 1 | 17 | 1 | 14 | 4 | 3 | 0.83 | 1 | 5 | 1 | 5 | 5 | 5 | 5 | 37 | 141 | 22 | 70 | 29 | 56 | 58 | 58 | 21 | 52 | 5 | 4 | 2 | 16 |
27,835 | secdev/scapy | secdev_scapy/scapy/fields.py | scapy.fields._EnumField | from typing import Any, AnyStr, Callable, Dict, List, Generic, Optional, Set, Tuple, Type, TypeVar, Union, cast, TYPE_CHECKING
from scapy.volatile import RandBin, RandByte, RandEnumKeys, RandInt, RandIP, RandIP6, RandLong, RandMAC, RandNum, RandShort, RandSInt, RandSByte, RandTermString, RandUUID, VolatileValue, RandSS... |
class _EnumField(Field[Union[List[I], I], I]):
def __init__(self, name, default, enum, fmt='H'):
''' Initializes enum fields.
@param name: name of this field
@param default: default value of this field
@param enum: either an enum, a dict or a tuple of two callables.
... | 9 | 1 | 14 | 0 | 11 | 5 | 4 | 0.41 | 1 | 10 | 3 | 7 | 8 | 4 | 8 | 40 | 123 | 9 | 91 | 29 | 77 | 37 | 75 | 24 | 66 | 9 | 4 | 3 | 31 |
27,836 | secdev/scapy | secdev_scapy/scapy/fields.py | scapy.fields._FieldContainer | class _FieldContainer(object):
"""
A field that acts as a container for another field
"""
__slots__ = ['fld']
def __getattr__(self, attr):
return getattr(self.fld, attr) | class _FieldContainer(object):
'''
A field that acts as a container for another field
'''
def __getattr__(self, attr):
pass | 2 | 1 | 3 | 0 | 2 | 1 | 1 | 1 | 1 | 0 | 0 | 9 | 1 | 0 | 1 | 1 | 9 | 1 | 4 | 3 | 2 | 4 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
27,837 | secdev/scapy | secdev_scapy/scapy/fields.py | scapy.fields._IPPrefixFieldBase | import struct
from typing import Any, AnyStr, Callable, Dict, List, Generic, Optional, Set, Tuple, Type, TypeVar, Union, cast, TYPE_CHECKING
class _IPPrefixFieldBase(Field[Tuple[str, int], Tuple[bytes, int]]):
__slots__ = ['wordbytes', 'maxbytes', 'aton', 'ntoa', 'length_from']
def __init__(self, name, defaul... |
class _IPPrefixFieldBase(Field[Tuple[str, int], Tuple[bytes, int]]):
def __init__(self, name, default, wordbytes, maxbytes, aton, ntoa, length_from=None):
pass
def length_from(x):
pass
def _numbytes(self, pfxlen):
pass
def h2i(self, pkt, x):
p... | 12 | 0 | 8 | 0 | 6 | 3 | 1 | 0.41 | 1 | 1 | 0 | 2 | 10 | 5 | 10 | 42 | 87 | 12 | 61 | 40 | 38 | 25 | 48 | 28 | 37 | 2 | 4 | 1 | 14 |
27,838 | secdev/scapy | secdev_scapy/scapy/fields.py | scapy.fields._MultiEnumField | from scapy.volatile import RandBin, RandByte, RandEnumKeys, RandInt, RandIP, RandIP6, RandLong, RandMAC, RandNum, RandShort, RandSInt, RandSByte, RandTermString, RandUUID, VolatileValue, RandSShort, RandSLong, RandFloat
from typing import Any, AnyStr, Callable, Dict, List, Generic, Optional, Set, Tuple, Type, TypeVar, ... |
class _MultiEnumField(_EnumField[I]):
def __init__(self, name, default, enum, depends_on, fmt='H'):
pass
def any2i_one(self, pkt, x):
pass
def i2repr_one(self, pkt, x):
pass | 4 | 0 | 13 | 0 | 11 | 4 | 3 | 0.31 | 1 | 2 | 1 | 2 | 3 | 4 | 3 | 43 | 41 | 3 | 35 | 20 | 25 | 11 | 29 | 14 | 25 | 4 | 5 | 3 | 10 |
27,839 | secdev/scapy | secdev_scapy/scapy/fields.py | scapy.fields._PacketField | from scapy.compat import bytes_hex, plain_str, raw, bytes_encode
class _PacketField(_StrField[K]):
__slots__ = ['cls']
holds_packets = 1
def __init__(self, name, default, pkt_cls):
super(_PacketField, self).__init__(name, default)
self.cls = pkt_cls
def i2m(self, pkt, i):
if i... |
class _PacketField(_StrField[K]):
def __init__(self, name, default, pkt_cls):
pass
def i2m(self, pkt, i):
pass
def m2i(self, pkt, m):
pass | 4 | 0 | 8 | 0 | 6 | 4 | 2 | 0.5 | 1 | 2 | 0 | 2 | 3 | 1 | 3 | 43 | 29 | 3 | 22 | 14 | 11 | 11 | 15 | 7 | 11 | 2 | 5 | 1 | 5 |
27,840 | secdev/scapy | secdev_scapy/scapy/fields.py | scapy.fields._PacketFieldSingle | from scapy.config import conf
from typing import Any, AnyStr, Callable, Dict, List, Generic, Optional, Set, Tuple, Type, TypeVar, Union, cast, TYPE_CHECKING
class _PacketFieldSingle(_PacketField[K]):
def any2i(self, pkt, x):
if x and pkt and hasattr(x, 'add_parent'):
cast('Packet', x).add_pare... |
class _PacketFieldSingle(_PacketField[K]):
def any2i(self, pkt, x):
pass
def getfield(self, pkt, s):
pass | 3 | 0 | 9 | 0 | 8 | 3 | 2 | 0.31 | 1 | 1 | 0 | 2 | 2 | 0 | 2 | 45 | 19 | 1 | 16 | 9 | 10 | 5 | 13 | 6 | 10 | 2 | 6 | 1 | 4 |
27,841 | secdev/scapy | secdev_scapy/scapy/fields.py | scapy.fields._ScalingField | from scapy.compat import bytes_hex, plain_str, raw, bytes_encode
from scapy.volatile import RandBin, RandByte, RandEnumKeys, RandInt, RandIP, RandIP6, RandLong, RandMAC, RandNum, RandShort, RandSInt, RandSByte, RandTermString, RandUUID, VolatileValue, RandSShort, RandSLong, RandFloat
import struct
class _ScalingField(... |
class _ScalingField(object):
def __init__(self, name, default, scaling=1, unit='', offset=0, ndigits=3, fmt='B'):
pass
def i2m(self, pkt, x):
pass
def m2i(self, pkt, x):
pass
def any2i(self, pkt, x):
pass
def i2repr(self, pkt, x):
pass
def randval(s... | 7 | 0 | 9 | 0 | 8 | 4 | 2 | 0.42 | 1 | 7 | 2 | 2 | 6 | 4 | 6 | 6 | 62 | 6 | 50 | 25 | 32 | 21 | 34 | 14 | 27 | 3 | 1 | 1 | 12 |
27,842 | secdev/scapy | secdev_scapy/scapy/fields.py | scapy.fields._StrEnumField | class _StrEnumField:
def __init__(self, **kwargs):
self.enum = kwargs.pop('enum', {})
def i2repr(self, pkt, v):
r = v.rstrip(b'\x00')
rr = repr(r)
if self.enum:
if v in self.enum:
rr = '%s (%s)' % (rr, self.enum[v])
elif r in self.enum:
... | class _StrEnumField:
def __init__(self, **kwargs):
pass
def i2repr(self, pkt, v):
pass | 3 | 0 | 7 | 0 | 6 | 1 | 3 | 0.17 | 0 | 0 | 0 | 3 | 2 | 1 | 2 | 2 | 15 | 1 | 12 | 6 | 9 | 2 | 11 | 6 | 8 | 4 | 0 | 2 | 5 |
27,843 | secdev/scapy | secdev_scapy/scapy/fields.py | scapy.fields._StrField | from scapy.volatile import RandBin, RandByte, RandEnumKeys, RandInt, RandIP, RandIP6, RandLong, RandMAC, RandNum, RandShort, RandSInt, RandSByte, RandTermString, RandUUID, VolatileValue, RandSShort, RandSLong, RandFloat
from scapy.compat import bytes_hex, plain_str, raw, bytes_encode
class _StrField(Field[I, bytes]):
... |
class _StrField(Field[I, bytes]):
def __init__(self, name, default, fmt='H', remain=0):
pass
def i2len(self, pkt, x):
pass
def any2i(self, pkt, x):
pass
def i2repr(self, pkt, x):
pass
def i2m(self, pkt, x):
pass
def addfield(self, pkt, s, val):
... | 9 | 0 | 5 | 0 | 4 | 1 | 2 | 0.28 | 1 | 5 | 2 | 3 | 8 | 1 | 8 | 40 | 48 | 8 | 32 | 11 | 23 | 9 | 31 | 11 | 22 | 3 | 4 | 1 | 14 |
27,844 | secdev/scapy | secdev_scapy/scapy/fields.py | scapy.fields._XStrField | from scapy.compat import bytes_hex, plain_str, raw, bytes_encode
class _XStrField(Field[bytes, bytes]):
def i2repr(self, pkt, x):
if isinstance(x, bytes):
return bytes_hex(x).decode()
return super(_XStrField, self).i2repr(pkt, x) |
class _XStrField(Field[bytes, bytes]):
def i2repr(self, pkt, x):
pass | 2 | 0 | 5 | 0 | 4 | 1 | 2 | 0.2 | 1 | 2 | 0 | 3 | 1 | 0 | 1 | 33 | 6 | 0 | 5 | 2 | 3 | 1 | 5 | 2 | 3 | 2 | 4 | 1 | 2 |
27,845 | secdev/scapy | secdev_scapy/scapy/interfaces.py | scapy.interfaces.InterfaceProvider | from scapy.consts import WINDOWS, LINUX
from typing import cast, Any, DefaultDict, Dict, List, NoReturn, Optional, Tuple, Type, Union
from scapy.config import conf
class InterfaceProvider(object):
name = 'Unknown'
headers: Tuple[str, ...] = ('Index', 'Name', 'MAC', 'IPv4', 'IPv6')
header_sort = 1
libpc... |
class InterfaceProvider(object):
def load(self):
'''Returns a dictionary of the loaded interfaces, by their
name.'''
pass
def reload(self):
'''Same than load() but for reloads. By default calls load'''
pass
def _l2socket(self, dev):
'''Return L2 socket use... | 9 | 8 | 7 | 0 | 4 | 3 | 1 | 0.72 | 1 | 5 | 2 | 6 | 8 | 0 | 8 | 8 | 69 | 9 | 36 | 21 | 22 | 26 | 32 | 18 | 21 | 3 | 1 | 2 | 11 |
27,846 | secdev/scapy | secdev_scapy/scapy/interfaces.py | scapy.interfaces.NetworkInterface | from scapy.utils6 import in6_isvalid
from collections import defaultdict
class NetworkInterface(object):
def __init__(self, provider, data=None):
self.provider = provider
self.name = ''
self.description = ''
self.network_name = ''
self.index = -1
self.ip = None
... |
class NetworkInterface(object):
def __init__(self, provider, data=None):
pass
def update(self, data):
'''Update info about a network interface according
to a given dictionary. Such data is provided by providers
'''
pass
def __eq__(self, other):
pass
d... | 14 | 1 | 6 | 0 | 5 | 2 | 2 | 0.36 | 1 | 2 | 0 | 3 | 13 | 11 | 13 | 13 | 96 | 14 | 64 | 29 | 47 | 23 | 58 | 26 | 44 | 4 | 1 | 2 | 20 |
27,847 | secdev/scapy | secdev_scapy/scapy/interfaces.py | scapy.interfaces.NetworkInterfaceDict | from scapy.utils import pretty_list
from scapy.consts import WINDOWS, LINUX
from scapy.config import conf
import uuid
from scapy.compat import UserDict
from collections import defaultdict
class NetworkInterfaceDict(UserDict[str, NetworkInterface]):
"""Store information about network interfaces and convert between ... |
class NetworkInterfaceDict(UserDict[str, NetworkInterface]):
'''Store information about network interfaces and convert between names'''
def __init__(self):
pass
def _load(self, dat, prov):
pass
def register_provider(self, provider):
pass
def load_confiface(self):
... | 14 | 7 | 12 | 0 | 9 | 3 | 2 | 0.37 | 1 | 12 | 5 | 0 | 12 | 1 | 12 | 67 | 155 | 15 | 107 | 32 | 88 | 40 | 73 | 28 | 58 | 5 | 8 | 3 | 28 |
27,848 | secdev/scapy | secdev_scapy/scapy/layers/bluetooth.py | scapy.layers.bluetooth.ATT_Error_Response | from scapy.fields import BitField, XBitField, ByteEnumField, ByteField, FieldLenField, FieldListField, FlagsField, IntField, LEShortEnumField, LEShortField, LEIntField, LenField, MultipleTypeField, NBytesField, PacketListField, PadField, ShortField, SignedByteField, StrField, StrFixedLenField, StrLenField, StrNullField... |
class ATT_Error_Response(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 |
27,849 | secdev/scapy | secdev_scapy/scapy/layers/bluetooth.py | scapy.layers.bluetooth.ATT_Exchange_MTU_Request | from scapy.packet import bind_layers, Packet
from scapy.fields import BitField, XBitField, ByteEnumField, ByteField, FieldLenField, FieldListField, FlagsField, IntField, LEShortEnumField, LEShortField, LEIntField, LenField, MultipleTypeField, NBytesField, PacketListField, PadField, ShortField, SignedByteField, StrField... |
class ATT_Exchange_MTU_Request(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 |
27,850 | secdev/scapy | secdev_scapy/scapy/layers/bluetooth.py | scapy.layers.bluetooth.ATT_Exchange_MTU_Response | from scapy.fields import BitField, XBitField, ByteEnumField, ByteField, FieldLenField, FieldListField, FlagsField, IntField, LEShortEnumField, LEShortField, LEIntField, LenField, MultipleTypeField, NBytesField, PacketListField, PadField, ShortField, SignedByteField, StrField, StrFixedLenField, StrLenField, StrNullField... |
class ATT_Exchange_MTU_Response(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 |
27,851 | secdev/scapy | secdev_scapy/scapy/layers/bluetooth.py | scapy.layers.bluetooth.ATT_Execute_Write_Request | from scapy.packet import bind_layers, Packet
from scapy.fields import BitField, XBitField, ByteEnumField, ByteField, FieldLenField, FieldListField, FlagsField, IntField, LEShortEnumField, LEShortField, LEIntField, LenField, MultipleTypeField, NBytesField, PacketListField, PadField, ShortField, SignedByteField, StrField... |
class ATT_Execute_Write_Request(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 |
27,852 | secdev/scapy | secdev_scapy/scapy/layers/bluetooth.py | scapy.layers.bluetooth.ATT_Execute_Write_Response | from scapy.packet import bind_layers, Packet
class ATT_Execute_Write_Response(Packet):
name = 'Execute Write Response' |
class ATT_Execute_Write_Response(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 |
27,853 | secdev/scapy | secdev_scapy/scapy/layers/bluetooth.py | scapy.layers.bluetooth.ATT_Find_By_Type_Value_Request | from scapy.packet import bind_layers, Packet
from scapy.fields import BitField, XBitField, ByteEnumField, ByteField, FieldLenField, FieldListField, FlagsField, IntField, LEShortEnumField, LEShortField, LEIntField, LenField, MultipleTypeField, NBytesField, PacketListField, PadField, ShortField, SignedByteField, StrField... |
class ATT_Find_By_Type_Value_Request(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 |
27,854 | secdev/scapy | secdev_scapy/scapy/layers/bluetooth.py | scapy.layers.bluetooth.ATT_Find_By_Type_Value_Response | from scapy.fields import BitField, XBitField, ByteEnumField, ByteField, FieldLenField, FieldListField, FlagsField, IntField, LEShortEnumField, LEShortField, LEIntField, LenField, MultipleTypeField, NBytesField, PacketListField, PadField, ShortField, SignedByteField, StrField, StrFixedLenField, StrLenField, StrNullField... |
class ATT_Find_By_Type_Value_Response(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 |
27,855 | secdev/scapy | secdev_scapy/scapy/layers/bluetooth.py | scapy.layers.bluetooth.ATT_Find_Information_Request | from scapy.packet import bind_layers, Packet
from scapy.fields import BitField, XBitField, ByteEnumField, ByteField, FieldLenField, FieldListField, FlagsField, IntField, LEShortEnumField, LEShortField, LEIntField, LenField, MultipleTypeField, NBytesField, PacketListField, PadField, ShortField, SignedByteField, StrField... |
class ATT_Find_Information_Request(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 |
27,856 | secdev/scapy | secdev_scapy/scapy/layers/bluetooth.py | scapy.layers.bluetooth.ATT_Find_Information_Response | from scapy.fields import BitField, XBitField, ByteEnumField, ByteField, FieldLenField, FieldListField, FlagsField, IntField, LEShortEnumField, LEShortField, LEIntField, LenField, MultipleTypeField, NBytesField, PacketListField, PadField, ShortField, SignedByteField, StrField, StrFixedLenField, StrLenField, StrNullField... |
class ATT_Find_Information_Response(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 |
27,857 | secdev/scapy | secdev_scapy/scapy/layers/bluetooth.py | scapy.layers.bluetooth.ATT_Handle | from scapy.packet import bind_layers, Packet
from scapy.fields import BitField, XBitField, ByteEnumField, ByteField, FieldLenField, FieldListField, FlagsField, IntField, LEShortEnumField, LEShortField, LEIntField, LenField, MultipleTypeField, NBytesField, PacketListField, PadField, ShortField, SignedByteField, StrField... |
class ATT_Handle(Packet):
def extract_padding(self, s):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 120 | 7 | 1 | 6 | 4 | 4 | 0 | 5 | 4 | 3 | 1 | 4 | 0 | 1 |
27,858 | secdev/scapy | secdev_scapy/scapy/layers/bluetooth.py | scapy.layers.bluetooth.ATT_Handle_UUID128 | from scapy.fields import BitField, XBitField, ByteEnumField, ByteField, FieldLenField, FieldListField, FlagsField, IntField, LEShortEnumField, LEShortField, LEIntField, LenField, MultipleTypeField, NBytesField, PacketListField, PadField, ShortField, SignedByteField, StrField, StrFixedLenField, StrLenField, StrNullField... |
class ATT_Handle_UUID128(Packet):
def extract_padding(self, s):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 120 | 7 | 1 | 6 | 4 | 4 | 0 | 5 | 4 | 3 | 1 | 4 | 0 | 1 |
27,859 | secdev/scapy | secdev_scapy/scapy/layers/bluetooth.py | scapy.layers.bluetooth.ATT_Handle_Value_Indication | from scapy.packet import bind_layers, Packet
from scapy.fields import BitField, XBitField, ByteEnumField, ByteField, FieldLenField, FieldListField, FlagsField, IntField, LEShortEnumField, LEShortField, LEIntField, LenField, MultipleTypeField, NBytesField, PacketListField, PadField, ShortField, SignedByteField, StrField... |
class ATT_Handle_Value_Indication(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 |
27,860 | secdev/scapy | secdev_scapy/scapy/layers/bluetooth.py | scapy.layers.bluetooth.ATT_Handle_Value_Notification | from scapy.fields import BitField, XBitField, ByteEnumField, ByteField, FieldLenField, FieldListField, FlagsField, IntField, LEShortEnumField, LEShortField, LEIntField, LenField, MultipleTypeField, NBytesField, PacketListField, PadField, ShortField, SignedByteField, StrField, StrFixedLenField, StrLenField, StrNullField... |
class ATT_Handle_Value_Notification(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 |
27,861 | secdev/scapy | secdev_scapy/scapy/layers/bluetooth.py | scapy.layers.bluetooth.ATT_Handle_Variable | from scapy.packet import bind_layers, Packet
from scapy.fields import BitField, XBitField, ByteEnumField, ByteField, FieldLenField, FieldListField, FlagsField, IntField, LEShortEnumField, LEShortField, LEIntField, LenField, MultipleTypeField, NBytesField, PacketListField, PadField, ShortField, SignedByteField, StrField... |
class ATT_Handle_Variable(Packet):
def __init__(self, _pkt=b'', val_length=2, **kwargs):
pass
def extract_padding(self, s):
pass | 3 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 2 | 1 | 2 | 121 | 13 | 2 | 11 | 6 | 8 | 0 | 8 | 6 | 5 | 1 | 4 | 0 | 2 |
27,862 | secdev/scapy | secdev_scapy/scapy/layers/bluetooth.py | scapy.layers.bluetooth.ATT_Hdr | from scapy.fields import BitField, XBitField, ByteEnumField, ByteField, FieldLenField, FieldListField, FlagsField, IntField, LEShortEnumField, LEShortField, LEIntField, LenField, MultipleTypeField, NBytesField, PacketListField, PadField, ShortField, SignedByteField, StrField, StrFixedLenField, StrLenField, StrNullField... |
class ATT_Hdr(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 |
27,863 | secdev/scapy | secdev_scapy/scapy/layers/bluetooth.py | scapy.layers.bluetooth.ATT_Prepare_Write_Request | from scapy.packet import bind_layers, Packet
from scapy.fields import BitField, XBitField, ByteEnumField, ByteField, FieldLenField, FieldListField, FlagsField, IntField, LEShortEnumField, LEShortField, LEIntField, LenField, MultipleTypeField, NBytesField, PacketListField, PadField, ShortField, SignedByteField, StrField... |
class ATT_Prepare_Write_Request(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 119 | 7 | 0 | 7 | 3 | 6 | 0 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
27,864 | secdev/scapy | secdev_scapy/scapy/layers/bluetooth.py | scapy.layers.bluetooth.ATT_Prepare_Write_Response | class ATT_Prepare_Write_Response(ATT_Prepare_Write_Request):
name = 'Prepare Write Response' | class ATT_Prepare_Write_Response(ATT_Prepare_Write_Request):
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 | 5 | 0 | 0 |
27,865 | secdev/scapy | secdev_scapy/scapy/layers/bluetooth.py | scapy.layers.bluetooth.ATT_Read_Blob_Request | from scapy.packet import bind_layers, Packet
from scapy.fields import BitField, XBitField, ByteEnumField, ByteField, FieldLenField, FieldListField, FlagsField, IntField, LEShortEnumField, LEShortField, LEIntField, LenField, MultipleTypeField, NBytesField, PacketListField, PadField, ShortField, SignedByteField, StrField... |
class ATT_Read_Blob_Request(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 |
27,866 | secdev/scapy | secdev_scapy/scapy/layers/bluetooth.py | scapy.layers.bluetooth.ATT_Read_Blob_Response | from scapy.fields import BitField, XBitField, ByteEnumField, ByteField, FieldLenField, FieldListField, FlagsField, IntField, LEShortEnumField, LEShortField, LEIntField, LenField, MultipleTypeField, NBytesField, PacketListField, PadField, ShortField, SignedByteField, StrField, StrFixedLenField, StrLenField, StrNullField... |
class ATT_Read_Blob_Response(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 |
27,867 | secdev/scapy | secdev_scapy/scapy/layers/bluetooth.py | scapy.layers.bluetooth.ATT_Read_By_Group_Type_Request | from scapy.packet import bind_layers, Packet
from scapy.fields import BitField, XBitField, ByteEnumField, ByteField, FieldLenField, FieldListField, FlagsField, IntField, LEShortEnumField, LEShortField, LEIntField, LenField, MultipleTypeField, NBytesField, PacketListField, PadField, ShortField, SignedByteField, StrField... |
class ATT_Read_By_Group_Type_Request(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 |
27,868 | secdev/scapy | secdev_scapy/scapy/layers/bluetooth.py | scapy.layers.bluetooth.ATT_Read_By_Group_Type_Response | from scapy.fields import BitField, XBitField, ByteEnumField, ByteField, FieldLenField, FieldListField, FlagsField, IntField, LEShortEnumField, LEShortField, LEIntField, LenField, MultipleTypeField, NBytesField, PacketListField, PadField, ShortField, SignedByteField, StrField, StrFixedLenField, StrLenField, StrNullField... |
class ATT_Read_By_Group_Type_Response(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 |
27,869 | secdev/scapy | secdev_scapy/scapy/layers/bluetooth.py | scapy.layers.bluetooth.ATT_Read_By_Type_Request | from scapy.packet import bind_layers, Packet
from scapy.fields import BitField, XBitField, ByteEnumField, ByteField, FieldLenField, FieldListField, FlagsField, IntField, LEShortEnumField, LEShortField, LEIntField, LenField, MultipleTypeField, NBytesField, PacketListField, PadField, ShortField, SignedByteField, StrField... |
class ATT_Read_By_Type_Request(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 |
27,870 | secdev/scapy | secdev_scapy/scapy/layers/bluetooth.py | scapy.layers.bluetooth.ATT_Read_By_Type_Request_128bit | from scapy.fields import BitField, XBitField, ByteEnumField, ByteField, FieldLenField, FieldListField, FlagsField, IntField, LEShortEnumField, LEShortField, LEIntField, LenField, MultipleTypeField, NBytesField, PacketListField, PadField, ShortField, SignedByteField, StrField, StrFixedLenField, StrLenField, StrNullField... |
class ATT_Read_By_Type_Request_128bit(Packet):
@classmethod
def dispatch_hook(cls, _pkt=None, *args, **kargs):
pass | 3 | 0 | 4 | 0 | 4 | 0 | 2 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 1 | 120 | 12 | 1 | 11 | 5 | 8 | 0 | 7 | 4 | 5 | 2 | 4 | 1 | 2 |
27,871 | secdev/scapy | secdev_scapy/scapy/layers/bluetooth.py | scapy.layers.bluetooth.ATT_Read_By_Type_Response | from scapy.packet import bind_layers, Packet
import functools
from scapy.fields import BitField, XBitField, ByteEnumField, ByteField, FieldLenField, FieldListField, FlagsField, IntField, LEShortEnumField, LEShortField, LEIntField, LenField, MultipleTypeField, NBytesField, PacketListField, PadField, ShortField, SignedBy... |
class ATT_Read_By_Type_Response(Packet):
@classmethod
def _next_cls_cb(cls, pkt, lst, p, remain):
pass | 3 | 0 | 7 | 0 | 7 | 0 | 2 | 0 | 1 | 2 | 1 | 0 | 0 | 0 | 1 | 120 | 17 | 1 | 16 | 5 | 13 | 0 | 7 | 4 | 5 | 2 | 4 | 1 | 2 |
27,872 | secdev/scapy | secdev_scapy/scapy/layers/bluetooth.py | scapy.layers.bluetooth.ATT_Read_Multiple_Request | from scapy.fields import BitField, XBitField, ByteEnumField, ByteField, FieldLenField, FieldListField, FlagsField, IntField, LEShortEnumField, LEShortField, LEIntField, LenField, MultipleTypeField, NBytesField, PacketListField, PadField, ShortField, SignedByteField, StrField, StrFixedLenField, StrLenField, StrNullField... |
class ATT_Read_Multiple_Request(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 |
27,873 | secdev/scapy | secdev_scapy/scapy/layers/bluetooth.py | scapy.layers.bluetooth.ATT_Read_Multiple_Response | from scapy.packet import bind_layers, Packet
from scapy.fields import BitField, XBitField, ByteEnumField, ByteField, FieldLenField, FieldListField, FlagsField, IntField, LEShortEnumField, LEShortField, LEIntField, LenField, MultipleTypeField, NBytesField, PacketListField, PadField, ShortField, SignedByteField, StrField... |
class ATT_Read_Multiple_Response(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 |
27,874 | secdev/scapy | secdev_scapy/scapy/layers/bluetooth.py | scapy.layers.bluetooth.ATT_Read_Request | from scapy.fields import BitField, XBitField, ByteEnumField, ByteField, FieldLenField, FieldListField, FlagsField, IntField, LEShortEnumField, LEShortField, LEIntField, LenField, MultipleTypeField, NBytesField, PacketListField, PadField, ShortField, SignedByteField, StrField, StrFixedLenField, StrLenField, StrNullField... |
class ATT_Read_Request(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 |
27,875 | secdev/scapy | secdev_scapy/scapy/layers/bluetooth.py | scapy.layers.bluetooth.ATT_Read_Response | from scapy.packet import bind_layers, Packet
from scapy.fields import BitField, XBitField, ByteEnumField, ByteField, FieldLenField, FieldListField, FlagsField, IntField, LEShortEnumField, LEShortField, LEIntField, LenField, MultipleTypeField, NBytesField, PacketListField, PadField, ShortField, SignedByteField, StrField... |
class ATT_Read_Response(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 |
27,876 | secdev/scapy | secdev_scapy/scapy/layers/bluetooth.py | scapy.layers.bluetooth.ATT_Write_Command | from scapy.fields import BitField, XBitField, ByteEnumField, ByteField, FieldLenField, FieldListField, FlagsField, IntField, LEShortEnumField, LEShortField, LEIntField, LenField, MultipleTypeField, NBytesField, PacketListField, PadField, ShortField, SignedByteField, StrField, StrFixedLenField, StrLenField, StrNullField... |
class ATT_Write_Command(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 |
27,877 | secdev/scapy | secdev_scapy/scapy/layers/bluetooth.py | scapy.layers.bluetooth.ATT_Write_Request | from scapy.packet import bind_layers, Packet
from scapy.fields import BitField, XBitField, ByteEnumField, ByteField, FieldLenField, FieldListField, FlagsField, IntField, LEShortEnumField, LEShortField, LEIntField, LenField, MultipleTypeField, NBytesField, PacketListField, PadField, ShortField, SignedByteField, StrField... |
class ATT_Write_Request(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 |
27,878 | secdev/scapy | secdev_scapy/scapy/layers/bluetooth.py | scapy.layers.bluetooth.ATT_Write_Response | from scapy.packet import bind_layers, Packet
class ATT_Write_Response(Packet):
name = 'Write Response' |
class ATT_Write_Response(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 |
27,879 | secdev/scapy | secdev_scapy/scapy/layers/bluetooth.py | scapy.layers.bluetooth.BluetoothCommandError | class BluetoothCommandError(BaseException):
pass | class BluetoothCommandError(BaseException):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 9 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 2 | 0 | 0 |
27,880 | secdev/scapy | secdev_scapy/scapy/layers/bluetooth.py | scapy.layers.bluetooth.BluetoothHCISocket | import struct
from scapy.data import MTU
import socket
from scapy.supersocket import SuperSocket
from scapy.error import warning
from scapy.consts import WINDOWS
class BluetoothHCISocket(SuperSocket):
desc = 'read/write on a BlueTooth HCI socket'
def __init__(self, iface=65536, type=None):
if WINDOWS:... |
class BluetoothHCISocket(SuperSocket):
def __init__(self, iface=65536, type=None):
pass
def recv(self, x=MTU):
pass | 3 | 0 | 6 | 0 | 6 | 1 | 2 | 0.21 | 1 | 2 | 1 | 0 | 2 | 2 | 2 | 33 | 17 | 2 | 14 | 6 | 11 | 3 | 14 | 6 | 11 | 2 | 4 | 1 | 3 |
27,881 | secdev/scapy | secdev_scapy/scapy/layers/bluetooth.py | scapy.layers.bluetooth.BluetoothL2CAPSocket | from scapy.error import warning
from scapy.consts import WINDOWS
from scapy.data import MTU
import socket
from scapy.supersocket import SuperSocket
class BluetoothL2CAPSocket(SuperSocket):
desc = 'read/write packets on a connected L2CAP socket'
def __init__(self, bt_address):
if WINDOWS:
w... |
class BluetoothL2CAPSocket(SuperSocket):
def __init__(self, bt_address):
pass
def recv(self, x=MTU):
pass | 3 | 0 | 5 | 0 | 5 | 0 | 2 | 0 | 1 | 2 | 1 | 1 | 2 | 2 | 2 | 33 | 14 | 2 | 12 | 6 | 9 | 0 | 11 | 6 | 8 | 2 | 4 | 1 | 3 |
27,882 | secdev/scapy | secdev_scapy/scapy/layers/bluetooth.py | scapy.layers.bluetooth.BluetoothMonitorSocket | from scapy.data import MTU
import socket
class BluetoothMonitorSocket(_BluetoothLibcSocket):
desc = 'Read/write over a Bluetooth monitor channel'
def __init__(self):
sa = sockaddr_hci()
sa.sin_family = socket.AF_BLUETOOTH
sa.hci_dev = HCI_DEV_NONE
sa.hci_channel = HCI_CHANNEL_M... |
class BluetoothMonitorSocket(_BluetoothLibcSocket):
def __init__(self):
pass
def recv(self, x=MTU):
pass | 3 | 0 | 6 | 0 | 6 | 0 | 1 | 0 | 1 | 3 | 2 | 0 | 2 | 0 | 2 | 37 | 16 | 2 | 14 | 5 | 11 | 0 | 10 | 5 | 7 | 1 | 5 | 0 | 2 |
27,883 | secdev/scapy | secdev_scapy/scapy/layers/bluetooth.py | scapy.layers.bluetooth.BluetoothRFCommSocket | import socket
class BluetoothRFCommSocket(BluetoothL2CAPSocket):
"""read/write packets on a connected RFCOMM socket"""
def __init__(self, bt_address, port=0):
s = socket.socket(socket.AF_BLUETOOTH, socket.SOCK_RAW, socket.BTPROTO_RFCOMM)
s.connect((bt_address, port))
self.ins = self.ou... |
class BluetoothRFCommSocket(BluetoothL2CAPSocket):
'''read/write packets on a connected RFCOMM socket'''
def __init__(self, bt_address, port=0):
pass | 2 | 1 | 5 | 0 | 5 | 0 | 1 | 0.17 | 1 | 1 | 0 | 0 | 1 | 2 | 1 | 34 | 8 | 1 | 6 | 4 | 4 | 1 | 5 | 4 | 3 | 1 | 5 | 0 | 1 |
27,884 | secdev/scapy | secdev_scapy/scapy/layers/bluetooth.py | scapy.layers.bluetooth.BluetoothSocketError | class BluetoothSocketError(BaseException):
pass | class BluetoothSocketError(BaseException):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 9 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 2 | 0 | 0 |
27,885 | secdev/scapy | secdev_scapy/scapy/layers/bluetooth.py | scapy.layers.bluetooth.BluetoothUserSocket | from scapy.data import MTU
import socket
class BluetoothUserSocket(_BluetoothLibcSocket):
desc = 'read/write H4 over a Bluetooth user channel'
def __init__(self, adapter_index=0):
sa = sockaddr_hci()
sa.sin_family = socket.AF_BLUETOOTH
sa.hci_dev = adapter_index
sa.hci_channel ... |
class BluetoothUserSocket(_BluetoothLibcSocket):
def __init__(self, adapter_index=0):
pass
def send_command(self, cmd):
pass
def recv(self, x=MTU):
pass | 4 | 0 | 7 | 0 | 7 | 0 | 2 | 0.04 | 1 | 4 | 3 | 0 | 3 | 0 | 3 | 38 | 26 | 3 | 23 | 8 | 19 | 1 | 19 | 8 | 15 | 4 | 5 | 3 | 6 |
27,886 | secdev/scapy | secdev_scapy/scapy/layers/bluetooth.py | scapy.layers.bluetooth.EIR_AdvertisingInterval | from scapy.fields import BitField, XBitField, ByteEnumField, ByteField, FieldLenField, FieldListField, FlagsField, IntField, LEShortEnumField, LEShortField, LEIntField, LenField, MultipleTypeField, NBytesField, PacketListField, PadField, ShortField, SignedByteField, StrField, StrFixedLenField, StrLenField, StrNullField... |
class EIR_AdvertisingInterval(EIR_Element):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 121 | 5 | 0 | 5 | 3 | 4 | 0 | 3 | 3 | 2 | 0 | 5 | 0 | 0 |
27,887 | secdev/scapy | secdev_scapy/scapy/layers/bluetooth.py | scapy.layers.bluetooth.EIR_Appearance | from scapy.fields import BitField, XBitField, ByteEnumField, ByteField, FieldLenField, FieldListField, FlagsField, IntField, LEShortEnumField, LEShortField, LEIntField, LenField, MultipleTypeField, NBytesField, PacketListField, PadField, ShortField, SignedByteField, StrField, StrFixedLenField, StrLenField, StrNullField... |
class EIR_Appearance(EIR_Element):
@property
def appearance(self):
pass | 3 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 122 | 63 | 1 | 62 | 5 | 59 | 0 | 5 | 4 | 3 | 1 | 5 | 0 | 1 |
27,888 | secdev/scapy | secdev_scapy/scapy/layers/bluetooth.py | scapy.layers.bluetooth.EIR_ClassOfDevice | from scapy.fields import BitField, XBitField, ByteEnumField, ByteField, FieldLenField, FieldListField, FlagsField, IntField, LEShortEnumField, LEShortField, LEIntField, LenField, MultipleTypeField, NBytesField, PacketListField, PadField, ShortField, SignedByteField, StrField, StrFixedLenField, StrLenField, StrNullField... |
class EIR_ClassOfDevice(EIR_Element):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 121 | 32 | 0 | 32 | 3 | 31 | 0 | 3 | 3 | 2 | 0 | 5 | 0 | 0 |
27,889 | secdev/scapy | secdev_scapy/scapy/layers/bluetooth.py | scapy.layers.bluetooth.EIR_CompleteList128BitServiceUUIDs | from scapy.fields import BitField, XBitField, ByteEnumField, ByteField, FieldLenField, FieldListField, FlagsField, IntField, LEShortEnumField, LEShortField, LEIntField, LenField, MultipleTypeField, NBytesField, PacketListField, PadField, ShortField, SignedByteField, StrField, StrFixedLenField, StrLenField, StrNullField... |
class EIR_CompleteList128BitServiceUUIDs(EIR_Element):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 121 | 7 | 0 | 7 | 3 | 6 | 0 | 3 | 3 | 2 | 0 | 5 | 0 | 0 |
27,890 | secdev/scapy | secdev_scapy/scapy/layers/bluetooth.py | scapy.layers.bluetooth.EIR_CompleteList16BitServiceUUIDs | from scapy.fields import BitField, XBitField, ByteEnumField, ByteField, FieldLenField, FieldListField, FlagsField, IntField, LEShortEnumField, LEShortField, LEIntField, LenField, MultipleTypeField, NBytesField, PacketListField, PadField, ShortField, SignedByteField, StrField, StrFixedLenField, StrLenField, StrNullField... |
class EIR_CompleteList16BitServiceUUIDs(EIR_Element):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 121 | 7 | 0 | 6 | 3 | 5 | 1 | 3 | 3 | 2 | 0 | 5 | 0 | 0 |
27,891 | secdev/scapy | secdev_scapy/scapy/layers/bluetooth.py | scapy.layers.bluetooth.EIR_CompleteList32BitServiceUUIDs | from scapy.fields import BitField, XBitField, ByteEnumField, ByteField, FieldLenField, FieldListField, FlagsField, IntField, LEShortEnumField, LEShortField, LEIntField, LenField, MultipleTypeField, NBytesField, PacketListField, PadField, ShortField, SignedByteField, StrField, StrFixedLenField, StrLenField, StrNullField... |
class EIR_CompleteList32BitServiceUUIDs(EIR_Element):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 121 | 7 | 0 | 6 | 3 | 5 | 1 | 3 | 3 | 2 | 0 | 5 | 0 | 0 |
27,892 | secdev/scapy | secdev_scapy/scapy/layers/bluetooth.py | scapy.layers.bluetooth.EIR_CompleteLocalName | from scapy.fields import BitField, XBitField, ByteEnumField, ByteField, FieldLenField, FieldListField, FlagsField, IntField, LEShortEnumField, LEShortField, LEIntField, LenField, MultipleTypeField, NBytesField, PacketListField, PadField, ShortField, SignedByteField, StrField, StrFixedLenField, StrLenField, StrNullField... |
class EIR_CompleteLocalName(EIR_Element):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 121 | 5 | 0 | 5 | 3 | 4 | 0 | 3 | 3 | 2 | 0 | 5 | 0 | 0 |
27,893 | secdev/scapy | secdev_scapy/scapy/layers/bluetooth.py | scapy.layers.bluetooth.EIR_Device_ID | from scapy.fields import BitField, XBitField, ByteEnumField, ByteField, FieldLenField, FieldListField, FlagsField, IntField, LEShortEnumField, LEShortField, LEIntField, LenField, MultipleTypeField, NBytesField, PacketListField, PadField, ShortField, SignedByteField, StrField, StrFixedLenField, StrLenField, StrNullField... |
class EIR_Device_ID(EIR_Element):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 121 | 8 | 0 | 8 | 3 | 7 | 0 | 3 | 3 | 2 | 0 | 5 | 0 | 0 |
27,894 | secdev/scapy | secdev_scapy/scapy/layers/bluetooth.py | scapy.layers.bluetooth.EIR_Element | from scapy.packet import bind_layers, Packet
from scapy.error import warning
class EIR_Element(Packet):
name = 'EIR Element'
def extract_padding(self, s):
return (b'', s)
@staticmethod
def length_from(pkt):
if not pkt.underlayer:
warning('Missing an upper-layer')
... |
class EIR_Element(Packet):
def extract_padding(self, s):
pass
@staticmethod
def length_from(pkt):
pass | 4 | 0 | 5 | 0 | 4 | 1 | 2 | 0.2 | 1 | 0 | 0 | 24 | 1 | 0 | 2 | 121 | 14 | 2 | 10 | 5 | 6 | 2 | 9 | 4 | 6 | 2 | 4 | 1 | 3 |
27,895 | secdev/scapy | secdev_scapy/scapy/layers/bluetooth.py | scapy.layers.bluetooth.EIR_Flags | from scapy.fields import BitField, XBitField, ByteEnumField, ByteField, FieldLenField, FieldListField, FlagsField, IntField, LEShortEnumField, LEShortField, LEIntField, LenField, MultipleTypeField, NBytesField, PacketListField, PadField, ShortField, SignedByteField, StrField, StrFixedLenField, StrLenField, StrNullField... |
class EIR_Flags(EIR_Element):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 121 | 8 | 0 | 8 | 3 | 7 | 0 | 3 | 3 | 2 | 0 | 5 | 0 | 0 |
27,896 | secdev/scapy | secdev_scapy/scapy/layers/bluetooth.py | scapy.layers.bluetooth.EIR_Hdr | from scapy.fields import BitField, XBitField, ByteEnumField, ByteField, FieldLenField, FieldListField, FlagsField, IntField, LEShortEnumField, LEShortField, LEIntField, LenField, MultipleTypeField, NBytesField, PacketListField, PadField, ShortField, SignedByteField, StrField, StrFixedLenField, StrLenField, StrNullField... |
class EIR_Hdr(Packet):
def mysummary(self):
pass
def guess_payload_class(self, payload):
pass | 3 | 0 | 4 | 0 | 3 | 1 | 2 | 0.05 | 1 | 1 | 0 | 0 | 2 | 0 | 2 | 121 | 63 | 6 | 55 | 5 | 52 | 3 | 9 | 5 | 6 | 2 | 4 | 1 | 3 |
27,897 | secdev/scapy | secdev_scapy/scapy/layers/bluetooth.py | scapy.layers.bluetooth.EIR_IncompleteList128BitServiceUUIDs | class EIR_IncompleteList128BitServiceUUIDs(EIR_CompleteList128BitServiceUUIDs):
name = 'Incomplete list of 128-bit service UUIDs' | class EIR_IncompleteList128BitServiceUUIDs(EIR_CompleteList128BitServiceUUIDs):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 121 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 6 | 0 | 0 |
27,898 | secdev/scapy | secdev_scapy/scapy/layers/bluetooth.py | scapy.layers.bluetooth.EIR_IncompleteList16BitServiceUUIDs | class EIR_IncompleteList16BitServiceUUIDs(EIR_CompleteList16BitServiceUUIDs):
name = 'Incomplete list of 16-bit service UUIDs' | class EIR_IncompleteList16BitServiceUUIDs(EIR_CompleteList16BitServiceUUIDs):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 121 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 6 | 0 | 0 |
27,899 | secdev/scapy | secdev_scapy/scapy/layers/bluetooth.py | scapy.layers.bluetooth.EIR_IncompleteList32BitServiceUUIDs | class EIR_IncompleteList32BitServiceUUIDs(EIR_CompleteList32BitServiceUUIDs):
name = 'Incomplete list of 32-bit service UUIDs' | class EIR_IncompleteList32BitServiceUUIDs(EIR_CompleteList32BitServiceUUIDs):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 121 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 6 | 0 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.