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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
24,500 | secdev/scapy | secdev_scapy/scapy/automaton.py | scapy.automaton._ATMT_Command | class _ATMT_Command:
RUN = 'RUN'
NEXT = 'NEXT'
FREEZE = 'FREEZE'
STOP = 'STOP'
FORCESTOP = 'FORCESTOP'
END = 'END'
EXCEPTION = 'EXCEPTION'
SINGLESTEP = 'SINGLESTEP'
BREAKPOINT = 'BREAKPOINT'
INTERCEPT = 'INTERCEPT'
ACCEPT = 'ACCEPT'
REPLACE = 'REPLACE'
REJECT = 'REJEC... | class _ATMT_Command:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 0 | 14 | 14 | 13 | 0 | 14 | 14 | 13 | 0 | 0 | 0 | 0 |
24,501 | secdev/scapy | secdev_scapy/scapy/automaton.py | scapy.automaton._ATMT_supersocket | from typing import Any, Callable, Deque, Dict, Generic, Iterable, Iterator, List, Optional, Set, Tuple, Type, TypeVar, Union, cast
from scapy.data import MTU
from scapy.supersocket import SuperSocket, StreamSocket
from scapy.config import conf
class _ATMT_supersocket(SuperSocket):
def __init__(self, name, ioevent... |
class _ATMT_supersocket(SuperSocket):
def __init__(self, name, ioevent, automaton, proto, *args, **kargs):
pass
def send(self, s):
pass
def fileno(self):
pass
def recv(self, n=MTU, **kwargs):
pass
def close(self):
pass
@staticmethod
def select(so... | 8 | 0 | 7 | 0 | 6 | 2 | 1 | 0.42 | 1 | 2 | 1 | 0 | 5 | 7 | 6 | 37 | 52 | 5 | 38 | 22 | 23 | 16 | 29 | 14 | 22 | 2 | 4 | 1 | 8 |
24,502 | secdev/scapy | secdev_scapy/scapy/automaton.py | scapy.automaton._ATMT_to_supersocket | class _ATMT_to_supersocket:
def __init__(self, name, ioevent, automaton):
self.name = name
self.ioevent = ioevent
self.automaton = automaton
def __call__(self, proto, *args, **kargs):
return _ATMT_supersocket(self.name, self.ioevent, self.automaton, proto, *args, **kargs) | class _ATMT_to_supersocket:
def __init__(self, name, ioevent, automaton):
pass
def __call__(self, proto, *args, **kargs):
pass | 3 | 0 | 6 | 0 | 5 | 1 | 1 | 0.2 | 0 | 1 | 1 | 0 | 2 | 3 | 2 | 2 | 13 | 1 | 10 | 6 | 7 | 2 | 7 | 6 | 4 | 1 | 0 | 0 | 2 |
24,503 | secdev/scapy | secdev_scapy/scapy/automaton.py | scapy.automaton._StateWrapper | class _StateWrapper:
__name__ = None
atmt_type = None
atmt_state = None
atmt_initial = None
atmt_final = None
atmt_stop = None
atmt_error = None
atmt_origfunc = None
atmt_prio = None
atmt_as_supersocket = None
atmt_condname = None
atmt_ioname = None
atmt_timeout = Non... | class _StateWrapper:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.94 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 17 | 0 | 17 | 17 | 16 | 16 | 17 | 17 | 16 | 0 | 0 | 0 | 0 |
24,504 | secdev/scapy | secdev_scapy/scapy/automaton.py | scapy.automaton._TimerList | import time
class _TimerList:
def __init__(self):
self.timers = []
def add_timer(self, timer):
self.timers.append(timer)
def reset(self):
for t in self.timers:
t._reset()
def decrement(self, time):
for t in self.timers:
t._decrement(time)
... |
class _TimerList:
def __init__(self):
pass
def add_timer(self, timer):
pass
def reset(self):
pass
def decrement(self, time):
pass
def expired(self):
pass
def until_next(self):
pass
def count(self):
pass
def __iter__(self):
... | 10 | 0 | 4 | 0 | 3 | 1 | 1 | 0.39 | 0 | 1 | 0 | 0 | 9 | 1 | 9 | 9 | 45 | 8 | 28 | 14 | 18 | 11 | 28 | 14 | 18 | 2 | 0 | 1 | 13 |
24,505 | secdev/scapy | secdev_scapy/scapy/automaton.py | scapy.automaton._instance_state | class _instance_state:
def __init__(self, instance):
self.__self__ = instance.__self__
self.__func__ = instance.__func__
self.__self__.__class__ = instance.__self__.__class__
def __getattr__(self, attr):
return getattr(self.__func__, attr)
def __call__(self, *args, **kargs... | class _instance_state:
def __init__(self, instance):
pass
def __getattr__(self, attr):
pass
def __call__(self, *args, **kargs):
pass
def breaks(self):
pass
def intercepts(self):
pass
def unbreaks(self):
pass
def unintercepts(self):
... | 8 | 0 | 3 | 0 | 2 | 1 | 1 | 0.41 | 0 | 0 | 0 | 0 | 7 | 2 | 7 | 7 | 30 | 6 | 17 | 10 | 9 | 7 | 17 | 10 | 9 | 1 | 0 | 0 | 7 |
24,506 | secdev/scapy | secdev_scapy/scapy/autorun.py | scapy.autorun.ScapyAutorunInterpreter | import code
class ScapyAutorunInterpreter(code.InteractiveInterpreter):
def __init__(self, *args, **kargs):
code.InteractiveInterpreter.__init__(self, *args, **kargs)
def write(self, data):
pass |
class ScapyAutorunInterpreter(code.InteractiveInterpreter):
def __init__(self, *args, **kargs):
pass
def write(self, data):
pass | 3 | 0 | 3 | 0 | 2 | 1 | 1 | 0.4 | 1 | 0 | 0 | 0 | 2 | 0 | 2 | 8 | 8 | 1 | 5 | 3 | 2 | 2 | 5 | 3 | 2 | 1 | 1 | 0 | 2 |
24,507 | secdev/scapy | secdev_scapy/scapy/autorun.py | scapy.autorun.StopAutorun | from scapy.error import log_scapy, Scapy_Exception
class StopAutorun(Scapy_Exception):
code_run = '' |
class StopAutorun(Scapy_Exception):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 10 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
24,508 | secdev/scapy | secdev_scapy/scapy/autorun.py | scapy.autorun.StopAutorunTimeout | class StopAutorunTimeout(StopAutorun):
pass | class StopAutorunTimeout(StopAutorun):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 5 | 0 | 0 |
24,509 | secdev/scapy | secdev_scapy/scapy/autorun.py | scapy.autorun.StringWriter | from io import StringIO
class StringWriter(StringIO):
"""Util to mock sys.stdout and sys.stderr, and
store their output in a 's' var."""
def __init__(self, debug=None):
self.s = ''
self.debug = debug
super().__init__()
def write(self, x):
if getattr(self, 'debug', None... |
class StringWriter(StringIO):
'''Util to mock sys.stdout and sys.stderr, and
store their output in a 's' var.'''
def __init__(self, debug=None):
pass
def write(self, x):
pass
def flush(self):
pass | 4 | 1 | 6 | 0 | 4 | 1 | 2 | 0.43 | 1 | 1 | 0 | 0 | 3 | 2 | 3 | 3 | 22 | 2 | 14 | 6 | 10 | 6 | 14 | 6 | 10 | 3 | 1 | 1 | 6 |
24,510 | secdev/scapy | secdev_scapy/scapy/base_classes.py | scapy.base_classes.BasePacket | class BasePacket(Gen['Packet']):
__slots__ = [] | class BasePacket(Gen['Packet']):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 4 | 2 | 0 | 2 | 2 | 1 | 1 | 2 | 2 | 1 | 0 | 2 | 0 | 0 |
24,511 | secdev/scapy | secdev_scapy/scapy/base_classes.py | scapy.base_classes.BasePacketList | class BasePacketList(Gen[_T]):
__slots__ = [] | class BasePacketList(Gen[_T]):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | 2 | 0 | 0 | 0 | 4 | 2 | 0 | 2 | 2 | 1 | 1 | 2 | 2 | 1 | 0 | 2 | 0 | 0 |
24,512 | secdev/scapy | secdev_scapy/scapy/base_classes.py | scapy.base_classes.Field_metaclass | from typing import Any, Dict, Generic, Iterator, List, Optional, Tuple, Type, TypeVar, Union, cast, TYPE_CHECKING
class Field_metaclass(type):
def __new__(cls: Type[_T], name, bases, dct):
dct.setdefault('__slots__', [])
newcls = type.__new__(cls, name, bases, dct)
return newcls |
class Field_metaclass(type):
def __new__(cls: Type[_T], name, bases, dct):
pass | 2 | 0 | 9 | 0 | 8 | 5 | 1 | 0.56 | 1 | 0 | 0 | 1 | 1 | 0 | 1 | 14 | 10 | 0 | 9 | 7 | 3 | 5 | 5 | 3 | 3 | 1 | 2 | 0 | 1 |
24,513 | secdev/scapy | secdev_scapy/scapy/base_classes.py | scapy.base_classes.Gen | from typing import Any, Dict, Generic, Iterator, List, Optional, Tuple, Type, TypeVar, Union, cast, TYPE_CHECKING
class Gen(Generic[_T]):
__slots__ = []
def __iter__(self):
return iter([])
def __iterlen__(self):
return sum((1 for _ in iter(self))) |
class Gen(Generic[_T]):
def __iter__(self):
pass
def __iterlen__(self):
pass | 3 | 0 | 3 | 0 | 2 | 1 | 1 | 0.5 | 1 | 0 | 0 | 5 | 2 | 0 | 2 | 4 | 10 | 2 | 6 | 5 | 3 | 3 | 6 | 4 | 3 | 1 | 1 | 0 | 2 |
24,514 | secdev/scapy | secdev_scapy/scapy/base_classes.py | scapy.base_classes.Net | from typing import Any, Dict, Generic, Iterator, List, Optional, Tuple, Type, TypeVar, Union, cast, TYPE_CHECKING
from scapy.error import Scapy_Exception
import struct
import re
import random
import socket
class Net(Gen[str]):
"""
Network object from an IP address or hostname and mask
Examples:
-... |
class Net(Gen[str]):
'''
Network object from an IP address or hostname and mask
Examples:
- With mask::
>>> list(Net("192.168.0.1/24"))
['192.168.0.0', '192.168.0.1', ..., '192.168.0.255']
- With 'end'::
>>> list(Net("192.168.0.100", "192.168.0.200"))
... | 18 | 1 | 8 | 0 | 7 | 1 | 2 | 0.33 | 1 | 7 | 2 | 1 | 11 | 6 | 14 | 18 | 157 | 21 | 106 | 32 | 88 | 35 | 77 | 28 | 62 | 6 | 2 | 2 | 30 |
24,515 | secdev/scapy | secdev_scapy/scapy/base_classes.py | scapy.base_classes.OID | import operator
from functools import reduce
class OID(Gen[str]):
name = 'OID'
def __init__(self, oid):
self.oid = oid
self.cmpt = []
fmt = []
for i in oid.split('.'):
if '-' in i:
fmt.append('%i')
self.cmpt.append(tuple(map(int, i.sp... |
class OID(Gen[str]):
def __init__(self, oid):
pass
def __repr__(self):
pass
def __iter__(self):
pass
def __iterlen__(self):
pass | 5 | 0 | 8 | 0 | 7 | 1 | 3 | 0.16 | 1 | 3 | 0 | 0 | 4 | 3 | 4 | 8 | 39 | 4 | 31 | 13 | 26 | 5 | 29 | 13 | 24 | 5 | 2 | 3 | 10 |
24,516 | secdev/scapy | secdev_scapy/scapy/base_classes.py | scapy.base_classes.Packet_metaclass | from typing import Any, Dict, Generic, Iterator, List, Optional, Tuple, Type, TypeVar, Union, cast, TYPE_CHECKING
import warnings
class Packet_metaclass(type):
def __new__(cls: Type[_T], name, bases, dct):
if 'fields_desc' in dct:
current_fld = dct['fields_desc']
resolved_fld = []
... |
class Packet_metaclass(type):
def __new__(cls: Type[_T], name, bases, dct):
pass
def __getattr__(self, attr):
pass
def __call__(cls, *args, **kargs):
pass | 4 | 0 | 39 | 2 | 34 | 8 | 8 | 0.23 | 1 | 8 | 0 | 5 | 3 | 0 | 3 | 16 | 119 | 7 | 104 | 28 | 90 | 24 | 69 | 21 | 62 | 18 | 2 | 4 | 25 |
24,517 | secdev/scapy | secdev_scapy/scapy/base_classes.py | scapy.base_classes.SetGen | import types
class SetGen(Gen[_T]):
def __init__(self, values, _iterpacket=1):
self._iterpacket = _iterpacket
if isinstance(values, (list, BasePacketList)):
self.values = [_get_values(val) for val in values]
else:
self.values = [_get_values(values)]
def __iter_... |
class SetGen(Gen[_T]):
def __init__(self, values, _iterpacket=1):
pass
def __iter__(self):
pass
def __len__(self):
pass
def __repr__(self):
pass | 5 | 0 | 6 | 0 | 5 | 1 | 2 | 0.2 | 1 | 4 | 2 | 0 | 4 | 2 | 4 | 8 | 27 | 3 | 20 | 9 | 15 | 4 | 16 | 9 | 11 | 4 | 2 | 3 | 8 |
24,518 | secdev/scapy | secdev_scapy/scapy/base_classes.py | scapy.base_classes._CanvasDumpExtended | import abc
from scapy.consts import WINDOWS
import subprocess
import os
class _CanvasDumpExtended(object):
@abc.abstractmethod
def canvas_dump(self, layer_shift=0, rebuild=1):
pass
def psdump(self, filename=None, **kargs):
"""
psdump(filename=None, layer_shift=0, rebuild=1)
... |
class _CanvasDumpExtended(object):
@abc.abstractmethod
def canvas_dump(self, layer_shift=0, rebuild=1):
pass
def psdump(self, filename=None, **kargs):
'''
psdump(filename=None, layer_shift=0, rebuild=1)
Creates an EPS file describing a packet. If filename is not provided a... | 6 | 3 | 19 | 2 | 12 | 6 | 3 | 0.45 | 1 | 2 | 1 | 3 | 4 | 0 | 4 | 4 | 80 | 9 | 49 | 18 | 37 | 22 | 42 | 17 | 31 | 3 | 1 | 3 | 10 |
24,519 | secdev/scapy | secdev_scapy/scapy/base_classes.py | scapy.base_classes._ScopedIP | class _ScopedIP(str):
"""
A str that also holds extra attributes.
"""
__slots__ = ['scope']
def __init__(self, _: str) -> None:
self.scope = None
def __repr__(self) -> str:
val = super(_ScopedIP, self).__repr__()
if self.scope is not None:
return 'ScopedIP(%... | class _ScopedIP(str):
'''
A str that also holds extra attributes.
'''
def __init__(self, _: str) -> None:
pass
def __repr__(self) -> str:
pass | 3 | 1 | 4 | 0 | 4 | 0 | 2 | 0.33 | 1 | 1 | 0 | 0 | 2 | 1 | 2 | 68 | 14 | 2 | 9 | 6 | 6 | 3 | 9 | 6 | 6 | 2 | 2 | 1 | 3 |
24,520 | secdev/scapy | secdev_scapy/scapy/config.py | scapy.config.CacheInstance | from typing import cast, Any, Callable, Dict, Iterator, List, NoReturn, Optional, Set, Tuple, Type, Union, overload, TYPE_CHECKING
import copy
import time
class CacheInstance(Dict[str, Any]):
__slots__ = ['timeout', 'name', '_timetable']
def __init__(self, name='noname', timeout=None):
self.timeout = ... |
class CacheInstance(Dict[str, Any]):
def __init__(self, name='noname', timeout=None):
pass
def flush(self):
pass
def __getitem__(self, item):
pass
def __contains__(self, item):
pass
def get(self, item, default=None):
pass
def __setitem__(self, item,... | 19 | 0 | 6 | 0 | 5 | 1 | 2 | 0.27 | 1 | 5 | 0 | 0 | 18 | 3 | 18 | 18 | 131 | 18 | 92 | 36 | 70 | 25 | 77 | 32 | 58 | 4 | 1 | 2 | 33 |
24,521 | secdev/scapy | secdev_scapy/scapy/config.py | scapy.config.CommandsList | from typing import cast, Any, Callable, Dict, Iterator, List, NoReturn, Optional, Set, Tuple, Type, Union, overload, TYPE_CHECKING
class CommandsList(List[Callable[..., Any]]):
def __repr__(self):
s = []
for li in sorted(self, key=lambda x: x.__name__):
doc = li.__doc__ if li.__doc__ e... |
class CommandsList(List[Callable[..., Any]]):
def __repr__(self):
pass
def register(self, cmd):
pass | 3 | 0 | 6 | 0 | 5 | 2 | 2 | 0.27 | 1 | 0 | 0 | 0 | 2 | 0 | 2 | 2 | 14 | 1 | 11 | 6 | 8 | 3 | 11 | 6 | 8 | 3 | 1 | 1 | 4 |
24,522 | secdev/scapy | secdev_scapy/scapy/config.py | scapy.config.Conf | import os
from scapy.error import log_loading, log_scapy, ScapyInvalidPlatformException, warning
from scapy.themes import ColorTheme, NoTheme, apply_ipython_style
import warnings
from typing import cast, Any, Callable, Dict, Iterator, List, NoReturn, Optional, Set, Tuple, Type, Union, overload, TYPE_CHECKING
import soc... |
class Conf(ConfClass):
'''
This object contains the configuration of Scapy.
'''
def __getattribute__(self, attr):
pass | 2 | 1 | 28 | 0 | 26 | 2 | 8 | 0.63 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 4 | 267 | 1 | 187 | 104 | 179 | 117 | 120 | 104 | 112 | 8 | 2 | 1 | 8 |
24,523 | secdev/scapy | secdev_scapy/scapy/config.py | scapy.config.ConfClass | class ConfClass(object):
def configure(self, cnf):
self.__dict__ = cnf.__dict__.copy()
def __repr__(self):
return str(self)
def __str__(self):
s = ''
dkeys = self.__class__.__dict__.copy()
dkeys.update(self.__dict__)
keys = sorted(dkeys)
for i in ke... | class ConfClass(object):
def configure(self, cnf):
pass
def __repr__(self):
pass
def __str__(self):
pass | 4 | 0 | 7 | 0 | 6 | 1 | 2 | 0.16 | 1 | 1 | 0 | 3 | 3 | 1 | 3 | 3 | 24 | 2 | 19 | 11 | 15 | 3 | 19 | 11 | 15 | 4 | 1 | 3 | 6 |
24,524 | secdev/scapy | secdev_scapy/scapy/config.py | scapy.config.ConfigFieldList | from scapy.base_classes import BasePacket
class ConfigFieldList:
def __init__(self):
self.fields = set()
self.layers = set()
@staticmethod
def _is_field(f):
return hasattr(f, 'owners')
def _recalc_layer_list(self):
self.layers = {owner for f in self.fields for owner i... |
class ConfigFieldList:
def __init__(self):
pass
@staticmethod
def _is_field(f):
pass
def _recalc_layer_list(self):
pass
def add(self, *flds):
pass
def remove(self, *flds):
pass
def __contains__(self, elt):
pass
def __repr__(self):
... | 9 | 0 | 4 | 0 | 3 | 1 | 1 | 0.48 | 0 | 3 | 1 | 2 | 6 | 2 | 7 | 7 | 34 | 6 | 21 | 12 | 12 | 10 | 20 | 10 | 12 | 2 | 0 | 1 | 8 |
24,525 | secdev/scapy | secdev_scapy/scapy/config.py | scapy.config.ExtsManager | import sys
import importlib.util
from scapy.error import log_loading, log_scapy, ScapyInvalidPlatformException, warning
import importlib
from typing import cast, Any, Callable, Dict, Iterator, List, NoReturn, Optional, Set, Tuple, Type, Union, overload, TYPE_CHECKING
import importlib.abc
class ExtsManager(importlib.ab... |
class ExtsManager(importlib.abc.MetaPathFinder):
def __init__(self):
pass
def find_spec(self, fullname, path, target=None):
pass
def invalidate_caches(self):
pass
def _register_spec(self, spec):
pass
def load(self, extension: str):
'''
Load a sca... | 8 | 2 | 15 | 0 | 15 | 0 | 3 | 0.01 | 1 | 8 | 2 | 0 | 6 | 3 | 6 | 28 | 104 | 7 | 97 | 25 | 88 | 1 | 62 | 23 | 53 | 12 | 4 | 3 | 19 |
24,526 | secdev/scapy | secdev_scapy/scapy/config.py | scapy.config.Interceptor | class Interceptor(object):
def __init__(self, name, default, hook, args=None, kargs=None):
self.name = name
self.intname = '_intercepted_%s' % name
self.default = default
self.hook = hook
self.args = args if args is not None else []
self.kargs = kargs if kargs is not... | class Interceptor(object):
def __init__(self, name, default, hook, args=None, kargs=None):
pass
def __get__(self, obj, typ=None):
pass
@staticmethod
def set_from_hook(obj, name, val):
pass
def __set__(self, obj, val):
pass | 6 | 0 | 7 | 0 | 6 | 2 | 2 | 0.35 | 1 | 0 | 0 | 0 | 3 | 6 | 4 | 4 | 33 | 3 | 26 | 20 | 14 | 9 | 19 | 13 | 14 | 3 | 1 | 1 | 7 |
24,527 | secdev/scapy | secdev_scapy/scapy/config.py | scapy.config.LayersList | from typing import cast, Any, Callable, Dict, Iterator, List, NoReturn, Optional, Set, Tuple, Type, Union, overload, TYPE_CHECKING
class LayersList(List[Type['scapy.packet.Packet']]):
def __init__(self):
list.__init__(self)
self.ldict = {}
self.filtered = False
self._backup_dict = ... |
class LayersList(List[Type['scapy.packet.Packet']]):
def __init__(self):
pass
def __repr__(self):
pass
def register(self, layer):
pass
def layers(self):
pass
def filter(self, items):
'''Disable dissection of unused layers to speed up dissection'''
... | 7 | 2 | 9 | 0 | 7 | 2 | 3 | 0.32 | 1 | 3 | 0 | 0 | 6 | 3 | 6 | 6 | 58 | 5 | 44 | 20 | 34 | 14 | 41 | 20 | 31 | 5 | 1 | 3 | 17 |
24,528 | secdev/scapy | secdev_scapy/scapy/config.py | scapy.config.NetCache | class NetCache:
def __init__(self):
self._caches_list = []
def add_cache(self, cache):
self._caches_list.append(cache)
setattr(self, cache.name, cache)
def new_cache(self, name, timeout=None):
c = CacheInstance(name=name, timeout=timeout)
self.add_cache(c)
... | class NetCache:
def __init__(self):
pass
def add_cache(self, cache):
pass
def new_cache(self, name, timeout=None):
pass
def __delattr__(self, attr):
pass
def update(self, other):
pass
def flush(self):
pass
def __repr__(self):
pas... | 8 | 0 | 4 | 0 | 3 | 1 | 1 | 0.35 | 0 | 2 | 1 | 0 | 7 | 1 | 7 | 7 | 36 | 6 | 23 | 12 | 15 | 8 | 22 | 12 | 14 | 3 | 0 | 2 | 10 |
24,529 | secdev/scapy | secdev_scapy/scapy/config.py | scapy.config.Num2Layer | from typing import cast, Any, Callable, Dict, Iterator, List, NoReturn, Optional, Set, Tuple, Type, Union, overload, TYPE_CHECKING
class Num2Layer:
def __init__(self):
self.num2layer = {}
self.layer2num = {}
def register(self, num, layer):
self.register_num2layer(num, layer)
s... |
class Num2Layer:
def __init__(self):
pass
def register(self, num, layer):
pass
def register_num2layer(self, num, layer):
pass
def register_layer2num(self, num, layer):
pass
@overload
def __getitem__(self, item):
pass
@overload
def __getitem__(... | 13 | 0 | 5 | 0 | 4 | 2 | 2 | 0.38 | 0 | 1 | 0 | 0 | 10 | 2 | 10 | 10 | 66 | 9 | 47 | 21 | 31 | 18 | 37 | 15 | 26 | 5 | 0 | 2 | 17 |
24,530 | secdev/scapy | secdev_scapy/scapy/config.py | scapy.config.ProgPath | import os
from scapy.consts import DARWIN, WINDOWS, LINUX, BSD, SOLARIS
from typing import cast, Any, Callable, Dict, Iterator, List, NoReturn, Optional, Set, Tuple, Type, Union, overload, TYPE_CHECKING
class ProgPath(ConfClass):
_default: str = '<System default>'
universal_open: str = 'open' if DARWIN else 'x... |
class ProgPath(ConfClass):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 18 | 0 | 18 | 15 | 17 | 0 | 15 | 15 | 14 | 0 | 2 | 0 | 0 |
24,531 | secdev/scapy | secdev_scapy/scapy/config.py | scapy.config.ScapyExt | from enum import Enum
from typing import cast, Any, Callable, Dict, Iterator, List, NoReturn, Optional, Set, Tuple, Type, Union, overload, TYPE_CHECKING
from dataclasses import dataclass
import importlib.util
import importlib
import importlib.abc
import pathlib
class ScapyExt:
__slots__ = ['specs', 'name', 'versio... |
class ScapyExt:
class MODE(Enum):
@dataclass
class ScapyExtSpec:
def __init__(self):
pass
def config(self, name, version):
pass
def register(self, name, mode, path, default=None):
pass
def register_bashcompletion(self, script: pathlib.Path):
pass
d... | 9 | 0 | 7 | 0 | 7 | 0 | 1 | 0 | 0 | 4 | 2 | 0 | 4 | 3 | 4 | 4 | 45 | 6 | 39 | 17 | 31 | 0 | 26 | 16 | 19 | 2 | 0 | 1 | 5 |
24,532 | secdev/scapy | secdev_scapy/scapy/contrib/altbeacon.py | scapy.contrib.altbeacon.AltBeacon | from scapy.layers.bluetooth import EIR_Hdr, EIR_Manufacturer_Specific_Data, UUIDField, LowEnergyBeaconHelper
from scapy.fields import ByteField, MayEnd, ShortField, SignedByteField, StrFixedLenField
from scapy.packet import Packet
class AltBeacon(Packet, LowEnergyBeaconHelper):
"""
AltBeacon broadcast frame ty... |
class AltBeacon(Packet, LowEnergyBeaconHelper):
'''
AltBeacon broadcast frame type.
https://github.com/AltBeacon/spec
'''
@classmethod
def magic_check(cls, payload):
'''
Checks if the given payload is for us (starts with our magic string).
'''
pass
def build... | 4 | 3 | 7 | 1 | 4 | 3 | 1 | 0.74 | 2 | 2 | 2 | 0 | 1 | 0 | 2 | 124 | 40 | 7 | 19 | 7 | 15 | 14 | 8 | 6 | 5 | 1 | 4 | 0 | 2 |
24,533 | secdev/scapy | secdev_scapy/scapy/contrib/aoe.py | scapy.contrib.aoe.AOE | from scapy.fields import FlagsField, XByteField, ByteField, XShortField, ShortField, StrLenField, BitField, BitEnumField, ByteEnumField, FieldLenField, PacketListField, FieldListField, MACField, PacketField, ConditionalField, XIntField
from scapy.packet import Packet, bind_layers
class AOE(Packet):
name = 'ATA ove... |
class AOE(Packet):
def extract_padding(self, s):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 120 | 34 | 1 | 33 | 4 | 31 | 0 | 5 | 4 | 3 | 1 | 4 | 0 | 1 |
24,534 | secdev/scapy | secdev_scapy/scapy/contrib/aoe.py | scapy.contrib.aoe.Directive | from scapy.fields import FlagsField, XByteField, ByteField, XShortField, ShortField, StrLenField, BitField, BitEnumField, ByteEnumField, FieldLenField, PacketListField, FieldListField, MACField, PacketField, ConditionalField, XIntField
from scapy.data import ETHER_ANY
from scapy.packet import Packet, bind_layers
class... |
class Directive(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 |
24,535 | secdev/scapy | secdev_scapy/scapy/contrib/aoe.py | scapy.contrib.aoe.IssueATACommand | from scapy.packet import Packet, bind_layers
from scapy.fields import FlagsField, XByteField, ByteField, XShortField, ShortField, StrLenField, BitField, BitEnumField, ByteEnumField, FieldLenField, PacketListField, FieldListField, MACField, PacketField, ConditionalField, XIntField
class IssueATACommand(Packet):
nam... |
class IssueATACommand(Packet):
def extract_padding(self, s):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 120 | 18 | 1 | 17 | 4 | 15 | 0 | 5 | 4 | 3 | 1 | 4 | 0 | 1 |
24,536 | secdev/scapy | secdev_scapy/scapy/contrib/aoe.py | scapy.contrib.aoe.MacMaskList | from scapy.fields import FlagsField, XByteField, ByteField, XShortField, ShortField, StrLenField, BitField, BitEnumField, ByteEnumField, FieldLenField, PacketListField, FieldListField, MACField, PacketField, ConditionalField, XIntField
from scapy.packet import Packet, bind_layers
class MacMaskList(Packet):
name = ... |
class MacMaskList(Packet):
def extract_padding(self, s):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 120 | 15 | 1 | 14 | 4 | 12 | 0 | 5 | 4 | 3 | 1 | 4 | 0 | 1 |
24,537 | secdev/scapy | secdev_scapy/scapy/contrib/aoe.py | scapy.contrib.aoe.QueryConfigInformation | from scapy.fields import FlagsField, XByteField, ByteField, XShortField, ShortField, StrLenField, BitField, BitEnumField, ByteEnumField, FieldLenField, PacketListField, FieldListField, MACField, PacketField, ConditionalField, XIntField
from scapy.packet import Packet, bind_layers
class QueryConfigInformation(Packet):
... |
class QueryConfigInformation(Packet):
def extract_padding(self, s):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 120 | 17 | 1 | 16 | 4 | 14 | 0 | 5 | 4 | 3 | 1 | 4 | 0 | 1 |
24,538 | secdev/scapy | secdev_scapy/scapy/contrib/aoe.py | scapy.contrib.aoe.ReserveRelease | from scapy.fields import FlagsField, XByteField, ByteField, XShortField, ShortField, StrLenField, BitField, BitEnumField, ByteEnumField, FieldLenField, PacketListField, FieldListField, MACField, PacketField, ConditionalField, XIntField
from scapy.data import ETHER_ANY
from scapy.packet import Packet, bind_layers
class... |
class ReserveRelease(Packet):
def extract_padding(self, s):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 120 | 11 | 1 | 10 | 4 | 8 | 0 | 5 | 4 | 3 | 1 | 4 | 0 | 1 |
24,539 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/autosar/pdu.py | scapy.contrib.automotive.autosar.pdu.PDU | from scapy.packet import Packet, bind_bottom_up
from scapy.fields import XIntField, PacketListField, LenField
class PDU(Packet):
"""
Single PDU Packet inside PDUTransport list.
Contains ID and payload length, and later - raw load.
It's free to interpret using bind_layers/bind_bottom_up method
Base... |
class PDU(Packet):
'''
Single PDU Packet inside PDUTransport list.
Contains ID and payload length, and later - raw load.
It's free to interpret using bind_layers/bind_bottom_up method
Based off this document:
https://www.autosar.org/fileadmin/standards/classic/22-11/AUTOSAR_SWS_IPDUMultiplexer.... | 2 | 1 | 3 | 0 | 2 | 1 | 1 | 1.14 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 120 | 18 | 3 | 7 | 4 | 5 | 8 | 5 | 4 | 3 | 1 | 4 | 0 | 1 |
24,540 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/autosar/pdu.py | scapy.contrib.automotive.autosar.pdu.PDUTransport | from scapy.packet import Packet, bind_bottom_up
from scapy.fields import XIntField, PacketListField, LenField
class PDUTransport(Packet):
"""
Packet representing PDUTransport containing multiple PDUs
"""
name = 'PDUTransport'
fields_desc = [PacketListField('pdus', [PDU()], PDU)] |
class PDUTransport(Packet):
'''
Packet representing PDUTransport containing multiple PDUs
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 8 | 0 | 5 | 3 | 4 | 3 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
24,541 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/autosar/secoc.py | scapy.contrib.automotive.autosar.secoc.PduPayloadField | from scapy.fields import PacketLenField
from scapy.packet import Packet, Raw
class PduPayloadField(PacketLenField):
__slots__ = ['guess_pkt_cls']
def __init__(self, name, default, guess_pkt_cls, length_from=None):
super(PacketLenField, self).__init__(name, default, Raw)
self.length_from = leng... |
class PduPayloadField(PacketLenField):
def __init__(self, name, default, guess_pkt_cls, length_from=None):
pass
def m2i(self, pkt, m):
pass | 3 | 0 | 7 | 0 | 6 | 4 | 1 | 0.54 | 1 | 2 | 1 | 0 | 2 | 2 | 2 | 49 | 17 | 2 | 13 | 11 | 5 | 7 | 8 | 6 | 5 | 1 | 8 | 0 | 2 |
24,542 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/autosar/secoc.py | scapy.contrib.automotive.autosar.secoc.SecOCMixin | from typing import Callable, Dict, Optional, Set, Type
from scapy.packet import Packet, Raw
class SecOCMixin:
pdu_payload_cls_by_identifier: Dict[int, Type[Packet]] = dict()
secoc_protected_pdus_by_identifier: Set[int] = set()
def secoc_authenticate(self) -> None:
raise NotImplementedError
de... |
class SecOCMixin:
def secoc_authenticate(self) -> None:
pass
def secoc_verify(self) -> bool:
pass
def get_secoc_payload(self) -> bytes:
'''Override this method for customization
'''
pass
def get_secoc_key(self) -> bytes:
'''Override this method for cu... | 13 | 3 | 4 | 0 | 3 | 1 | 1 | 0.18 | 0 | 6 | 2 | 2 | 6 | 0 | 9 | 9 | 50 | 10 | 34 | 22 | 18 | 6 | 28 | 16 | 18 | 1 | 0 | 0 | 9 |
24,543 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/autosar/secoc_canfd.py | scapy.contrib.automotive.autosar.secoc_canfd.SecOC_CANFD | from scapy.config import conf
from scapy.contrib.automotive.autosar.secoc import SecOCMixin, PduPayloadField
from scapy.fields import XByteField, FieldLenField, XStrFixedLenField, FlagsField, XBitField, ShortField
from scapy.layers.can import CANFD
from scapy.packet import Raw, Packet
import struct
class SecOC_CANFD(C... |
class SecOC_CANFD(CANFD, SecOCMixin):
def secoc_authenticate(self) -> None:
pass
def secoc_verify(self) -> bool:
pass
def get_secoc_payload(self) -> bytes:
'''Override this method for customization
'''
pass
@classmethod
def dispatch_hook(cls, s=None, *_arg... | 9 | 2 | 6 | 0 | 5 | 1 | 2 | 0.23 | 2 | 4 | 1 | 0 | 4 | 2 | 6 | 141 | 62 | 6 | 48 | 18 | 36 | 11 | 27 | 13 | 20 | 4 | 6 | 1 | 10 |
24,544 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/autosar/secoc_pdu.py | scapy.contrib.automotive.autosar.secoc_pdu.SecOC_PDU | from scapy.contrib.automotive.autosar.secoc import SecOCMixin, PduPayloadField
from scapy.packet import Packet, Raw
from scapy.fields import XByteField, XIntField, PacketListField, FieldLenField, XStrFixedLenField
from scapy.contrib.automotive.autosar.pdu import PDU
from scapy.config import conf
import struct
class Se... |
class SecOC_PDU(Packet, SecOCMixin):
def secoc_authenticate(self) -> None:
pass
def secoc_verify(self) -> bool:
pass
def get_secoc_payload(self) -> bytes:
'''Override this method for customization
'''
pass
@classmethod
def dispatch_hook(cls, s=None, *_args... | 9 | 2 | 6 | 0 | 5 | 1 | 2 | 0.25 | 2 | 5 | 2 | 0 | 4 | 2 | 6 | 134 | 58 | 6 | 44 | 18 | 32 | 11 | 27 | 13 | 20 | 4 | 4 | 1 | 10 |
24,545 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/autosar/secoc_pdu.py | scapy.contrib.automotive.autosar.secoc_pdu.SecOC_PDUTransport | from scapy.fields import XByteField, XIntField, PacketListField, FieldLenField, XStrFixedLenField
from scapy.packet import Packet, Raw
from typing import Any, Optional, Tuple, Type
class SecOC_PDUTransport(Packet):
"""
Packet representing SecOC_PDUTransport containing multiple PDUs
"""
name = 'SecOC_PD... |
class SecOC_PDUTransport(Packet):
'''
Packet representing SecOC_PDUTransport containing multiple PDUs
'''
@staticmethod
def register_secoc_protected_pdu(pdu_id: int, pdu_payload_cls: Type[Packet]=Raw) -> None:
pass
@staticmethod
def unregister_secoc_protected_pdu(pdu_id: int) -> Non... | 5 | 1 | 3 | 0 | 3 | 0 | 1 | 0.23 | 1 | 3 | 2 | 0 | 0 | 0 | 2 | 121 | 19 | 3 | 13 | 9 | 6 | 3 | 7 | 5 | 4 | 1 | 4 | 0 | 2 |
24,546 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/bmw/definitions.py | scapy.contrib.automotive.bmw.definitions.DEV_JOB | from scapy.packet import Packet, bind_layers
from scapy.fields import ByteField, ShortField, ByteEnumField, X3BytesField, StrField, StrFixedLenField, LEThreeBytesField, PacketListField, IntField, IPField, ThreeBytesField, ShortEnumField, XStrFixedLenField
class DEV_JOB(Packet):
identifiers = {20977: 'ControlRecipr... |
class DEV_JOB(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 25 | 0 | 25 | 3 | 24 | 0 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
24,547 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/bmw/definitions.py | scapy.contrib.automotive.bmw.definitions.DEV_JOB_PR | from scapy.fields import ByteField, ShortField, ByteEnumField, X3BytesField, StrField, StrFixedLenField, LEThreeBytesField, PacketListField, IntField, IPField, ThreeBytesField, ShortEnumField, XStrFixedLenField
from scapy.packet import Packet, bind_layers
class DEV_JOB_PR(Packet):
fields_desc = [ShortEnumField('id... |
class DEV_JOB_PR(Packet):
def answers(self, other):
pass | 2 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 1 | 120 | 8 | 1 | 7 | 3 | 5 | 0 | 4 | 3 | 2 | 1 | 4 | 0 | 1 |
24,548 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/bmw/definitions.py | scapy.contrib.automotive.bmw.definitions.DIAG_SESSION_RESP | from scapy.fields import ByteField, ShortField, ByteEnumField, X3BytesField, StrField, StrFixedLenField, LEThreeBytesField, PacketListField, IntField, IPField, ThreeBytesField, ShortEnumField, XStrFixedLenField
from scapy.packet import Packet, bind_layers
class DIAG_SESSION_RESP(Packet):
fields_desc = [ByteField('... |
class DIAG_SESSION_RESP(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 5 | 0 | 5 | 2 | 4 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
24,549 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/bmw/definitions.py | scapy.contrib.automotive.bmw.definitions.ENMT_REQ | from scapy.fields import ByteField, ShortField, ByteEnumField, X3BytesField, StrField, StrFixedLenField, LEThreeBytesField, PacketListField, IntField, IPField, ThreeBytesField, ShortEnumField, XStrFixedLenField
from scapy.packet import Packet, bind_layers
class ENMT_REQ(Packet):
name = 'EnableNormalMessageTransmis... |
class ENMT_REQ(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 |
24,550 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/bmw/definitions.py | scapy.contrib.automotive.bmw.definitions.IOCBLI_REQ | from scapy.fields import ByteField, ShortField, ByteEnumField, X3BytesField, StrField, StrFixedLenField, LEThreeBytesField, PacketListField, IntField, IPField, ThreeBytesField, ShortEnumField, XStrFixedLenField
from scapy.packet import Packet, bind_layers
class IOCBLI_REQ(Packet):
name = 'InputOutputControlByLocal... |
class IOCBLI_REQ(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 15 | 0 | 15 | 3 | 14 | 0 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
24,551 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/bmw/definitions.py | scapy.contrib.automotive.bmw.definitions.IP_CONFIG_RESP | from scapy.fields import ByteField, ShortField, ByteEnumField, X3BytesField, StrField, StrFixedLenField, LEThreeBytesField, PacketListField, IntField, IPField, ThreeBytesField, ShortEnumField, XStrFixedLenField
from scapy.packet import Packet, bind_layers
class IP_CONFIG_RESP(Packet):
fields_desc = [ByteField('ADD... |
class IP_CONFIG_RESP(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 7 | 0 | 7 | 2 | 6 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
24,552 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/bmw/definitions.py | scapy.contrib.automotive.bmw.definitions.RDBLI_REQ | from scapy.fields import ByteField, ShortField, ByteEnumField, X3BytesField, StrField, StrFixedLenField, LEThreeBytesField, PacketListField, IntField, IPField, ThreeBytesField, ShortEnumField, XStrFixedLenField
from scapy.packet import Packet, bind_layers
class RDBLI_REQ(Packet):
name = 'ReadDataByLocalIdentifier_... |
class RDBLI_REQ(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 |
24,553 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/bmw/definitions.py | scapy.contrib.automotive.bmw.definitions.RDS2TCM_REQ | from scapy.fields import ByteField, ShortField, ByteEnumField, X3BytesField, StrField, StrFixedLenField, LEThreeBytesField, PacketListField, IntField, IPField, ThreeBytesField, ShortEnumField, XStrFixedLenField
from scapy.packet import Packet, bind_layers
class RDS2TCM_REQ(Packet):
name = 'ReadDS2TroubleCodeMemory... |
class RDS2TCM_REQ(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 |
24,554 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/bmw/definitions.py | scapy.contrib.automotive.bmw.definitions.RDTCBS_REQ | from scapy.fields import ByteField, ShortField, ByteEnumField, X3BytesField, StrField, StrFixedLenField, LEThreeBytesField, PacketListField, IntField, IPField, ThreeBytesField, ShortEnumField, XStrFixedLenField
from scapy.packet import Packet, bind_layers
class RDTCBS_REQ(Packet):
name = 'ReadDTCByStatus_Request'
... |
class RDTCBS_REQ(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 5 | 0 | 5 | 3 | 4 | 0 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
24,555 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/bmw/definitions.py | scapy.contrib.automotive.bmw.definitions.READ_MEM | from scapy.fields import ByteField, ShortField, ByteEnumField, X3BytesField, StrField, StrFixedLenField, LEThreeBytesField, PacketListField, IntField, IPField, ThreeBytesField, ShortEnumField, XStrFixedLenField
from scapy.packet import Packet, bind_layers
class READ_MEM(Packet):
fields_desc = [IntField('read_addr'... |
class READ_MEM(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 5 | 0 | 5 | 2 | 4 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
24,556 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/bmw/definitions.py | scapy.contrib.automotive.bmw.definitions.READ_MEM_PR | from scapy.fields import ByteField, ShortField, ByteEnumField, X3BytesField, StrField, StrFixedLenField, LEThreeBytesField, PacketListField, IntField, IPField, ThreeBytesField, ShortEnumField, XStrFixedLenField
from scapy.packet import Packet, bind_layers
class READ_MEM_PR(Packet):
fields_desc = [StrField('data', ... |
class READ_MEM_PR(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 4 | 0 | 4 | 2 | 3 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
24,557 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/bmw/definitions.py | scapy.contrib.automotive.bmw.definitions.REI_IDENT_REQ | from scapy.fields import ByteField, ShortField, ByteEnumField, X3BytesField, StrField, StrFixedLenField, LEThreeBytesField, PacketListField, IntField, IPField, ThreeBytesField, ShortEnumField, XStrFixedLenField
from scapy.packet import Packet, bind_layers
class REI_IDENT_REQ(Packet):
name = 'Read ECU Identificatio... |
class REI_IDENT_REQ(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 |
24,558 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/bmw/definitions.py | scapy.contrib.automotive.bmw.definitions.RRRBA_REQ | from scapy.fields import ByteField, ShortField, ByteEnumField, X3BytesField, StrField, StrFixedLenField, LEThreeBytesField, PacketListField, IntField, IPField, ThreeBytesField, ShortEnumField, XStrFixedLenField
from scapy.packet import Packet, bind_layers
class RRRBA_REQ(Packet):
name = 'RequestRoutineResultsByAdd... |
class RRRBA_REQ(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 5 | 0 | 5 | 3 | 4 | 0 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
24,559 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/bmw/definitions.py | scapy.contrib.automotive.bmw.definitions.RRRBLI_REQ | from scapy.fields import ByteField, ShortField, ByteEnumField, X3BytesField, StrField, StrFixedLenField, LEThreeBytesField, PacketListField, IntField, IPField, ThreeBytesField, ShortEnumField, XStrFixedLenField
from scapy.packet import Packet, bind_layers
class RRRBLI_REQ(Packet):
name = 'RequestRoutineResultsByLo... |
class RRRBLI_REQ(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 |
24,560 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/bmw/definitions.py | scapy.contrib.automotive.bmw.definitions.RSODTC_REQ | from scapy.fields import ByteField, ShortField, ByteEnumField, X3BytesField, StrField, StrFixedLenField, LEThreeBytesField, PacketListField, IntField, IPField, ThreeBytesField, ShortEnumField, XStrFixedLenField
from scapy.packet import Packet, bind_layers
class RSODTC_REQ(Packet):
name = 'ReadStatusOfDTC_Request'
... |
class RSODTC_REQ(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 |
24,561 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/bmw/definitions.py | scapy.contrib.automotive.bmw.definitions.SPRBA_REQ | from scapy.fields import ByteField, ShortField, ByteEnumField, X3BytesField, StrField, StrFixedLenField, LEThreeBytesField, PacketListField, IntField, IPField, ThreeBytesField, ShortEnumField, XStrFixedLenField
from scapy.packet import Packet, bind_layers
class SPRBA_REQ(Packet):
name = 'StopRoutineByAddress_Reque... |
class SPRBA_REQ(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 6 | 0 | 6 | 3 | 5 | 0 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
24,562 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/bmw/definitions.py | scapy.contrib.automotive.bmw.definitions.SPRBLI_REQ | from scapy.fields import ByteField, ShortField, ByteEnumField, X3BytesField, StrField, StrFixedLenField, LEThreeBytesField, PacketListField, IntField, IPField, ThreeBytesField, ShortEnumField, XStrFixedLenField
from scapy.packet import Packet, bind_layers
class SPRBLI_REQ(Packet):
name = 'StopRoutineByLocalIdentif... |
class SPRBLI_REQ(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 21 | 0 | 21 | 3 | 20 | 0 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
24,563 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/bmw/definitions.py | scapy.contrib.automotive.bmw.definitions.STRBA_REQ | from scapy.fields import ByteField, ShortField, ByteEnumField, X3BytesField, StrField, StrFixedLenField, LEThreeBytesField, PacketListField, IntField, IPField, ThreeBytesField, ShortEnumField, XStrFixedLenField
from scapy.packet import Packet, bind_layers
class STRBA_REQ(Packet):
name = 'StartRoutineByAddress_Requ... |
class STRBA_REQ(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 6 | 0 | 6 | 3 | 5 | 0 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
24,564 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/bmw/definitions.py | scapy.contrib.automotive.bmw.definitions.SVK | from scapy.fields import ByteField, ShortField, ByteEnumField, X3BytesField, StrField, StrFixedLenField, LEThreeBytesField, PacketListField, IntField, IPField, ThreeBytesField, ShortEnumField, XStrFixedLenField
from scapy.packet import Packet, bind_layers
class SVK(Packet):
prog_status_enum = {1: 'signature check ... |
class SVK(Packet):
@staticmethod
def get_length(p: Packet):
pass | 3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 17 | 1 | 16 | 3 | 15 | 0 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
24,565 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/bmw/definitions.py | scapy.contrib.automotive.bmw.definitions.SVK_DateField | from scapy.fields import ByteField, ShortField, ByteEnumField, X3BytesField, StrField, StrFixedLenField, LEThreeBytesField, PacketListField, IntField, IPField, ThreeBytesField, ShortEnumField, XStrFixedLenField
class SVK_DateField(LEThreeBytesField):
def i2repr(self, pkt, x):
x = self.addfield(pkt, b'', x... |
class SVK_DateField(LEThreeBytesField):
def i2repr(self, pkt, x):
pass | 2 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 37 | 4 | 0 | 4 | 2 | 2 | 0 | 4 | 2 | 2 | 1 | 6 | 0 | 1 |
24,566 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/bmw/definitions.py | scapy.contrib.automotive.bmw.definitions.SVK_Entry | from scapy.fields import ByteField, ShortField, ByteEnumField, X3BytesField, StrField, StrFixedLenField, LEThreeBytesField, PacketListField, IntField, IPField, ThreeBytesField, ShortEnumField, XStrFixedLenField
from scapy.packet import Packet, bind_layers
class SVK_Entry(Packet):
process_classes = {1: 'HWEL', 2: '... |
class SVK_Entry(Packet):
def extract_padding(self, p):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0.74 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 120 | 62 | 1 | 35 | 4 | 33 | 26 | 5 | 4 | 3 | 1 | 4 | 0 | 1 |
24,567 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/bmw/definitions.py | scapy.contrib.automotive.bmw.definitions.UDS2S_REQ | from scapy.fields import ByteField, ShortField, ByteEnumField, X3BytesField, StrField, StrFixedLenField, LEThreeBytesField, PacketListField, IntField, IPField, ThreeBytesField, ShortEnumField, XStrFixedLenField
from scapy.packet import Packet, bind_layers
class UDS2S_REQ(Packet):
name = 'UnpackDS2Service_Request'
... |
class UDS2S_REQ(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 7 | 0 | 7 | 3 | 6 | 0 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
24,568 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/bmw/definitions.py | scapy.contrib.automotive.bmw.definitions.WDBLI_REQ | from scapy.fields import ByteField, ShortField, ByteEnumField, X3BytesField, StrField, StrFixedLenField, LEThreeBytesField, PacketListField, IntField, IPField, ThreeBytesField, ShortEnumField, XStrFixedLenField
from scapy.packet import Packet, bind_layers
class WDBLI_REQ(Packet):
name = 'WriteDataByLocalIdentifier... |
class WDBLI_REQ(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 5 | 0 | 5 | 3 | 4 | 0 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
24,569 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/bmw/definitions.py | scapy.contrib.automotive.bmw.definitions.WEBSERVER | from scapy.fields import ByteField, ShortField, ByteEnumField, X3BytesField, StrField, StrFixedLenField, LEThreeBytesField, PacketListField, IntField, IPField, ThreeBytesField, ShortEnumField, XStrFixedLenField
from scapy.packet import Packet, bind_layers
class WEBSERVER(Packet):
fields_desc = [ByteField('enable',... |
class WEBSERVER(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 5 | 0 | 5 | 2 | 4 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
24,570 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/bmw/enumerator.py | scapy.contrib.automotive.bmw.enumerator.BMW_DevJobEnumerator | from scapy.contrib.automotive.uds_scan import UDS_Enumerator
from scapy.contrib.automotive.uds import UDS
from scapy.contrib.automotive.bmw.definitions import DEV_JOB
class BMW_DevJobEnumerator(UDS_Enumerator):
_description = 'Available DevelopmentJobs by Identifier and negative response per state'
def _get_i... |
class BMW_DevJobEnumerator(UDS_Enumerator):
def _get_initial_requests(self, **kwargs):
pass
def _get_table_entry_y(self, tup):
pass | 3 | 0 | 4 | 0 | 3 | 1 | 1 | 0.22 | 1 | 3 | 2 | 0 | 2 | 0 | 2 | 85 | 13 | 2 | 9 | 5 | 6 | 2 | 7 | 5 | 4 | 1 | 7 | 0 | 2 |
24,571 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/bmw/hsfz.py | scapy.contrib.automotive.bmw.hsfz.HSFZ | import struct
from scapy.fields import IntField, ShortEnumField, XByteField, ConditionalField, StrFixedLenField
from scapy.packet import Packet, bind_layers, bind_bottom_up
class HSFZ(Packet):
control_words = {1: 'diagnostic_req_res', 2: 'acknowledge_transfer', 16: 'terminal15', 17: 'vehicle_ident_data', 18: 'aliv... |
class HSFZ(Packet):
def _has_srctgt_addrs(self):
pass
def _has_exprecv_addrs(self):
pass
def _hasidstring(self):
pass
def hashret(self):
pass
def extract_padding(self, s):
pass
def post_build(self, pkt, pay):
'''
This will set the Le... | 7 | 1 | 5 | 0 | 3 | 2 | 1 | 0.15 | 1 | 0 | 0 | 0 | 3 | 0 | 3 | 122 | 48 | 3 | 39 | 9 | 35 | 6 | 14 | 9 | 10 | 2 | 4 | 1 | 4 |
24,572 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/bmw/hsfz.py | scapy.contrib.automotive.bmw.hsfz.HSFZSocket | import struct
from scapy.supersocket import StreamSocket
import socket
from scapy.data import MTU
class HSFZSocket(StreamSocket):
def __init__(self, ip='127.0.0.1', port=6801):
self.ip = ip
self.port = port
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.setsockopt(socket.I... |
class HSFZSocket(StreamSocket):
def __init__(self, ip='127.0.0.1', port=6801):
pass
def recv(self, x=MTU, **kwargs):
pass | 3 | 0 | 15 | 2 | 12 | 2 | 3 | 0.12 | 1 | 2 | 1 | 1 | 2 | 3 | 2 | 38 | 31 | 4 | 25 | 10 | 22 | 3 | 24 | 10 | 21 | 4 | 6 | 2 | 5 |
24,573 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/bmw/hsfz.py | scapy.contrib.automotive.bmw.hsfz.UDS_HSFZSocket | from scapy.data import MTU
from scapy.contrib.automotive.uds import UDS, UDS_TP
import time
from scapy.contrib.automotive import log_automotive
class UDS_HSFZSocket(HSFZSocket):
def __init__(self, source, target, ip='127.0.0.1', port=6801, basecls=UDS):
super(UDS_HSFZSocket, self).__init__(ip, port)
... |
class UDS_HSFZSocket(HSFZSocket):
def __init__(self, source, target, ip='127.0.0.1', port=6801, basecls=UDS):
pass
def send(self, x):
pass
def recv(self, x=MTU, **kwargs):
pass | 4 | 0 | 12 | 0 | 8 | 4 | 2 | 0.44 | 1 | 6 | 2 | 0 | 3 | 4 | 3 | 41 | 39 | 3 | 25 | 10 | 21 | 11 | 23 | 9 | 19 | 3 | 7 | 1 | 6 |
24,574 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/ccp.py | scapy.contrib.automotive.ccp.ACTION_SERVICE | from scapy.packet import Packet, bind_layers, bind_bottom_up
from scapy.fields import XIntField, FlagsField, ByteEnumField, ThreeBytesField, XBitField, ShortField, IntField, XShortField, ByteField, XByteField, StrFixedLenField, LEShortField
class ACTION_SERVICE(Packet):
fields_desc = [ShortField('action_service', ... |
class ACTION_SERVICE(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 5 | 0 | 5 | 2 | 4 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
24,575 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/ccp.py | scapy.contrib.automotive.ccp.ACTION_SERVICE_DTO | from scapy.packet import Packet, bind_layers, bind_bottom_up
from scapy.fields import XIntField, FlagsField, ByteEnumField, ThreeBytesField, XBitField, ShortField, IntField, XShortField, ByteField, XByteField, StrFixedLenField, LEShortField
class ACTION_SERVICE_DTO(Packet):
fields_desc = [ByteField('data_length', ... |
class ACTION_SERVICE_DTO(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 6 | 0 | 6 | 2 | 5 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
24,576 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/ccp.py | scapy.contrib.automotive.ccp.BUILD_CHKSUM | from scapy.packet import Packet, bind_layers, bind_bottom_up
from scapy.fields import XIntField, FlagsField, ByteEnumField, ThreeBytesField, XBitField, ShortField, IntField, XShortField, ByteField, XByteField, StrFixedLenField, LEShortField
class BUILD_CHKSUM(Packet):
fields_desc = [IntField('size', 0), StrFixedLe... |
class BUILD_CHKSUM(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 5 | 0 | 5 | 2 | 4 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
24,577 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/ccp.py | scapy.contrib.automotive.ccp.BUILD_CHKSUM_DTO | from scapy.packet import Packet, bind_layers, bind_bottom_up
from scapy.fields import XIntField, FlagsField, ByteEnumField, ThreeBytesField, XBitField, ShortField, IntField, XShortField, ByteField, XByteField, StrFixedLenField, LEShortField
class BUILD_CHKSUM_DTO(Packet):
fields_desc = [ByteField('checksum_size', ... |
class BUILD_CHKSUM_DTO(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 8 | 0 | 8 | 2 | 7 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
24,578 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/ccp.py | scapy.contrib.automotive.ccp.CCP | from scapy.fields import XIntField, FlagsField, ByteEnumField, ThreeBytesField, XBitField, ShortField, IntField, XShortField, ByteField, XByteField, StrFixedLenField, LEShortField
from scapy.layers.can import CAN
class CCP(CAN):
name = 'CAN Calibration Protocol'
fields_desc = [FlagsField('flags', 0, 3, ['error... |
class CCP(CAN):
def extract_padding(self, p):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 126 | 13 | 1 | 12 | 4 | 10 | 0 | 5 | 4 | 3 | 1 | 5 | 0 | 1 |
24,579 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/ccp.py | scapy.contrib.automotive.ccp.CLEAR_MEMORY | from scapy.fields import XIntField, FlagsField, ByteEnumField, ThreeBytesField, XBitField, ShortField, IntField, XShortField, ByteField, XByteField, StrFixedLenField, LEShortField
from scapy.packet import Packet, bind_layers, bind_bottom_up
class CLEAR_MEMORY(Packet):
fields_desc = [IntField('size', 0), StrFixedLe... |
class CLEAR_MEMORY(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 5 | 0 | 5 | 2 | 4 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
24,580 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/ccp.py | scapy.contrib.automotive.ccp.CONNECT | from scapy.packet import Packet, bind_layers, bind_bottom_up
from scapy.fields import XIntField, FlagsField, ByteEnumField, ThreeBytesField, XBitField, ShortField, IntField, XShortField, ByteField, XByteField, StrFixedLenField, LEShortField
class CONNECT(Packet):
fields_desc = [LEShortField('station_address', 0), ... |
class CONNECT(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 5 | 0 | 5 | 2 | 4 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
24,581 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/ccp.py | scapy.contrib.automotive.ccp.CRO | from scapy.fields import XIntField, FlagsField, ByteEnumField, ThreeBytesField, XBitField, ShortField, IntField, XShortField, ByteField, XByteField, StrFixedLenField, LEShortField
from scapy.packet import Packet, bind_layers, bind_bottom_up
import struct
class CRO(Packet):
commands = {1: 'CONNECT', 27: 'GET_CCP_VE... |
class CRO(Packet):
def hashret(self):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 120 | 39 | 1 | 38 | 5 | 36 | 0 | 6 | 5 | 4 | 1 | 4 | 0 | 1 |
24,582 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/ccp.py | scapy.contrib.automotive.ccp.DEFAULT_DTO | from scapy.packet import Packet, bind_layers, bind_bottom_up
from scapy.fields import XIntField, FlagsField, ByteEnumField, ThreeBytesField, XBitField, ShortField, IntField, XShortField, ByteField, XByteField, StrFixedLenField, LEShortField
class DEFAULT_DTO(Packet):
fields_desc = [StrFixedLenField('load', b'\xff'... |
class DEFAULT_DTO(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 4 | 0 | 4 | 2 | 3 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
24,583 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/ccp.py | scapy.contrib.automotive.ccp.DIAG_SERVICE | from scapy.packet import Packet, bind_layers, bind_bottom_up
from scapy.fields import XIntField, FlagsField, ByteEnumField, ThreeBytesField, XBitField, ShortField, IntField, XShortField, ByteField, XByteField, StrFixedLenField, LEShortField
class DIAG_SERVICE(Packet):
fields_desc = [ShortField('diag_service', 0), ... |
class DIAG_SERVICE(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 5 | 0 | 5 | 2 | 4 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
24,584 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/ccp.py | scapy.contrib.automotive.ccp.DIAG_SERVICE_DTO | from scapy.packet import Packet, bind_layers, bind_bottom_up
from scapy.fields import XIntField, FlagsField, ByteEnumField, ThreeBytesField, XBitField, ShortField, IntField, XShortField, ByteField, XByteField, StrFixedLenField, LEShortField
class DIAG_SERVICE_DTO(Packet):
fields_desc = [ByteField('data_length', 0)... |
class DIAG_SERVICE_DTO(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 6 | 0 | 6 | 2 | 5 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
24,585 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/ccp.py | scapy.contrib.automotive.ccp.DISCONNECT | from scapy.fields import XIntField, FlagsField, ByteEnumField, ThreeBytesField, XBitField, ShortField, IntField, XShortField, ByteField, XByteField, StrFixedLenField, LEShortField
from scapy.packet import Packet, bind_layers, bind_bottom_up
class DISCONNECT(Packet):
fields_desc = [ByteEnumField('type', 0, {0: 'tem... |
class DISCONNECT(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 7 | 0 | 7 | 2 | 6 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
24,586 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/ccp.py | scapy.contrib.automotive.ccp.DNLOAD | from scapy.packet import Packet, bind_layers, bind_bottom_up
from scapy.fields import XIntField, FlagsField, ByteEnumField, ThreeBytesField, XBitField, ShortField, IntField, XShortField, ByteField, XByteField, StrFixedLenField, LEShortField
class DNLOAD(Packet):
fields_desc = [XByteField('size', 0), StrFixedLenFie... |
class DNLOAD(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 5 | 0 | 5 | 2 | 4 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
24,587 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/ccp.py | scapy.contrib.automotive.ccp.DNLOAD_6 | from scapy.packet import Packet, bind_layers, bind_bottom_up
from scapy.fields import XIntField, FlagsField, ByteEnumField, ThreeBytesField, XBitField, ShortField, IntField, XShortField, ByteField, XByteField, StrFixedLenField, LEShortField
class DNLOAD_6(Packet):
fields_desc = [StrFixedLenField('data', b'\x00' * ... |
class DNLOAD_6(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 4 | 0 | 4 | 2 | 3 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
24,588 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/ccp.py | scapy.contrib.automotive.ccp.DNLOAD_6_DTO | from scapy.packet import Packet, bind_layers, bind_bottom_up
from scapy.fields import XIntField, FlagsField, ByteEnumField, ThreeBytesField, XBitField, ShortField, IntField, XShortField, ByteField, XByteField, StrFixedLenField, LEShortField
class DNLOAD_6_DTO(Packet):
fields_desc = [XByteField('MTA0_extension', 0)... |
class DNLOAD_6_DTO(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 5 | 0 | 5 | 2 | 4 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
24,589 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/ccp.py | scapy.contrib.automotive.ccp.DNLOAD_DTO | from scapy.packet import Packet, bind_layers, bind_bottom_up
from scapy.fields import XIntField, FlagsField, ByteEnumField, ThreeBytesField, XBitField, ShortField, IntField, XShortField, ByteField, XByteField, StrFixedLenField, LEShortField
class DNLOAD_DTO(Packet):
fields_desc = [XByteField('MTA0_extension', 0), ... |
class DNLOAD_DTO(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 5 | 0 | 5 | 2 | 4 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
24,590 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/ccp.py | scapy.contrib.automotive.ccp.DTO | import struct
from scapy.fields import XIntField, FlagsField, ByteEnumField, ThreeBytesField, XBitField, ShortField, IntField, XShortField, ByteField, XByteField, StrFixedLenField, LEShortField
from scapy.packet import Packet, bind_layers, bind_bottom_up
class DTO(Packet):
__slots__ = Packet.__slots__ + ['payload_... |
class DTO(Packet):
def __init__(self, *args, **kwargs):
pass
def __eq__(self, other):
pass
def guess_payload_class(self, payload):
pass
@staticmethod
def get_dto_cls(cmd):
pass
def answers(self, other):
'''In CCP, the payload of a DTO packet is depend... | 8 | 1 | 10 | 0 | 8 | 1 | 2 | 0.09 | 1 | 20 | 17 | 0 | 5 | 1 | 6 | 125 | 93 | 8 | 78 | 14 | 70 | 7 | 35 | 13 | 28 | 5 | 4 | 1 | 12 |
24,591 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/ccp.py | scapy.contrib.automotive.ccp.EXCHANGE_ID | from scapy.fields import XIntField, FlagsField, ByteEnumField, ThreeBytesField, XBitField, ShortField, IntField, XShortField, ByteField, XByteField, StrFixedLenField, LEShortField
from scapy.packet import Packet, bind_layers, bind_bottom_up
class EXCHANGE_ID(Packet):
fields_desc = [StrFixedLenField('ccp_master_dev... |
class EXCHANGE_ID(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 4 | 0 | 4 | 2 | 3 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
24,592 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/ccp.py | scapy.contrib.automotive.ccp.EXCHANGE_ID_DTO | from scapy.packet import Packet, bind_layers, bind_bottom_up
from scapy.fields import XIntField, FlagsField, ByteEnumField, ThreeBytesField, XBitField, ShortField, IntField, XShortField, ByteField, XByteField, StrFixedLenField, LEShortField
class EXCHANGE_ID_DTO(Packet):
fields_desc = [ByteField('slave_device_ID_l... |
class EXCHANGE_ID_DTO(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 8 | 0 | 8 | 2 | 7 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
24,593 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/ccp.py | scapy.contrib.automotive.ccp.GET_ACTIVE_CAL_PAGE | from scapy.packet import Packet, bind_layers, bind_bottom_up
from scapy.fields import XIntField, FlagsField, ByteEnumField, ThreeBytesField, XBitField, ShortField, IntField, XShortField, ByteField, XByteField, StrFixedLenField, LEShortField
class GET_ACTIVE_CAL_PAGE(Packet):
fields_desc = [StrFixedLenField('ccp_re... |
class GET_ACTIVE_CAL_PAGE(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 4 | 0 | 4 | 2 | 3 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
24,594 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/ccp.py | scapy.contrib.automotive.ccp.GET_ACTIVE_CAL_PAGE_DTO | from scapy.fields import XIntField, FlagsField, ByteEnumField, ThreeBytesField, XBitField, ShortField, IntField, XShortField, ByteField, XByteField, StrFixedLenField, LEShortField
from scapy.packet import Packet, bind_layers, bind_bottom_up
class GET_ACTIVE_CAL_PAGE_DTO(Packet):
fields_desc = [XByteField('address_... |
class GET_ACTIVE_CAL_PAGE_DTO(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 5 | 0 | 5 | 2 | 4 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
24,595 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/ccp.py | scapy.contrib.automotive.ccp.GET_CCP_VERSION | from scapy.fields import XIntField, FlagsField, ByteEnumField, ThreeBytesField, XBitField, ShortField, IntField, XShortField, ByteField, XByteField, StrFixedLenField, LEShortField
from scapy.packet import Packet, bind_layers, bind_bottom_up
class GET_CCP_VERSION(Packet):
fields_desc = [XByteField('main_protocol_ve... |
class GET_CCP_VERSION(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 6 | 0 | 6 | 2 | 5 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
24,596 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/ccp.py | scapy.contrib.automotive.ccp.GET_CCP_VERSION_DTO | from scapy.packet import Packet, bind_layers, bind_bottom_up
from scapy.fields import XIntField, FlagsField, ByteEnumField, ThreeBytesField, XBitField, ShortField, IntField, XShortField, ByteField, XByteField, StrFixedLenField, LEShortField
class GET_CCP_VERSION_DTO(Packet):
fields_desc = [XByteField('main_protoco... |
class GET_CCP_VERSION_DTO(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 6 | 0 | 6 | 2 | 5 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
24,597 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/ccp.py | scapy.contrib.automotive.ccp.GET_DAQ_SIZE | from scapy.fields import XIntField, FlagsField, ByteEnumField, ThreeBytesField, XBitField, ShortField, IntField, XShortField, ByteField, XByteField, StrFixedLenField, LEShortField
from scapy.packet import Packet, bind_layers, bind_bottom_up
class GET_DAQ_SIZE(Packet):
fields_desc = [XByteField('DAQ_num', 0), XByte... |
class GET_DAQ_SIZE(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 6 | 0 | 6 | 2 | 5 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
24,598 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/ccp.py | scapy.contrib.automotive.ccp.GET_DAQ_SIZE_DTO | from scapy.packet import Packet, bind_layers, bind_bottom_up
from scapy.fields import XIntField, FlagsField, ByteEnumField, ThreeBytesField, XBitField, ShortField, IntField, XShortField, ByteField, XByteField, StrFixedLenField, LEShortField
class GET_DAQ_SIZE_DTO(Packet):
fields_desc = [XByteField('DAQ_list_size',... |
class GET_DAQ_SIZE_DTO(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 6 | 0 | 6 | 2 | 5 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
24,599 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/ccp.py | scapy.contrib.automotive.ccp.GET_SEED | from scapy.packet import Packet, bind_layers, bind_bottom_up
from scapy.fields import XIntField, FlagsField, ByteEnumField, ThreeBytesField, XBitField, ShortField, IntField, XShortField, ByteField, XByteField, StrFixedLenField, LEShortField
class GET_SEED(Packet):
fields_desc = [XByteField('resource', 0), StrFixed... |
class GET_SEED(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 5 | 0 | 5 | 2 | 4 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.