id int64 0 328k | repository_name stringlengths 7 58 | file_path stringlengths 9 302 | class_name stringlengths 5 256 | human_written_code stringlengths 16 2.16M | class_skeleton stringlengths 18 1.49M ⌀ | total_program_units int64 1 1.76k | total_doc_str int64 0 771 | AvgCountLine float64 0 7.89k | AvgCountLineBlank float64 0 297 | AvgCountLineCode float64 0 7.89k | AvgCountLineComment float64 0 7.89k | AvgCyclomatic float64 0 130 | CommentToCodeRatio float64 0 168 | CountClassBase float64 0 40 | CountClassCoupled float64 0 583 | CountClassCoupledModified float64 0 575 | CountClassDerived float64 0 5.35k | CountDeclInstanceMethod float64 0 529 | CountDeclInstanceVariable float64 0 296 | CountDeclMethod float64 0 599 | CountDeclMethodAll float64 0 1.12k | CountLine float64 1 40.4k | CountLineBlank float64 0 8.16k | CountLineCode float64 1 25.7k | CountLineCodeDecl float64 1 8.15k | CountLineCodeExe float64 0 24.2k | CountLineComment float64 0 16.5k | CountStmt float64 1 9.71k | CountStmtDecl float64 1 8.15k | CountStmtExe float64 0 9.69k | MaxCyclomatic float64 0 759 | MaxInheritanceTree float64 0 16 | MaxNesting float64 0 34 | SumCyclomatic float64 0 2.9k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
25,100 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_master.py | scapy.contrib.automotive.xcp.cto_commands_master.GetDaqEventInfo | from scapy.packet import Packet, bind_layers
from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, IntField, ThreeBytesField, FlagsField, ConditionalField, XByteField, XIntField, FieldLenField
from scapy.contrib.automotive.xcp.utils import get_ag, get_max_cto, XCPEndiannessField, StrVarLenField
c... |
class GetDaqEventInfo(Packet):
'''Get specific information for an event channel'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 6 | 0 | 5 | 2 | 4 | 1 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
25,101 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_master.py | scapy.contrib.automotive.xcp.cto_commands_master.GetDaqListInfo | from scapy.contrib.automotive.xcp.utils import get_ag, get_max_cto, XCPEndiannessField, StrVarLenField
from scapy.packet import Packet, bind_layers
from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, IntField, ThreeBytesField, FlagsField, ConditionalField, XByteField, XIntField, FieldLenField
c... |
class GetDaqListInfo(Packet):
'''Get specific information for a DAQ list'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 6 | 0 | 5 | 2 | 4 | 1 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
25,102 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_master.py | scapy.contrib.automotive.xcp.cto_commands_master.GetDaqListMode | from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, IntField, ThreeBytesField, FlagsField, ConditionalField, XByteField, XIntField, FieldLenField
from scapy.packet import Packet, bind_layers
from scapy.contrib.automotive.xcp.utils import get_ag, get_max_cto, XCPEndiannessField, StrVarLenField
c... |
class GetDaqListMode(Packet):
'''Get mode from DAQ list'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 6 | 0 | 5 | 2 | 4 | 1 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
25,103 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_master.py | scapy.contrib.automotive.xcp.cto_commands_master.GetDaqProcessorInfo | from scapy.packet import Packet, bind_layers
class GetDaqProcessorInfo(Packet):
"""Get general information on DAQ processor"""
pass |
class GetDaqProcessorInfo(Packet):
'''Get general information on DAQ processor'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 3 | 0 | 2 | 1 | 1 | 1 | 2 | 1 | 1 | 0 | 4 | 0 | 0 |
25,104 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_master.py | scapy.contrib.automotive.xcp.cto_commands_master.GetDaqResolutionInfo | from scapy.packet import Packet, bind_layers
class GetDaqResolutionInfo(Packet):
"""Get general information on DAQ processing resolutioin"""
pass |
class GetDaqResolutionInfo(Packet):
'''Get general information on DAQ processing resolutioin'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 3 | 0 | 2 | 1 | 1 | 1 | 2 | 1 | 1 | 0 | 4 | 0 | 0 |
25,105 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_master.py | scapy.contrib.automotive.xcp.cto_commands_master.GetId | from scapy.packet import Packet, bind_layers
from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, IntField, ThreeBytesField, FlagsField, ConditionalField, XByteField, XIntField, FieldLenField
class GetId(Packet):
"""Get identification from slave"""
types = {0: 'ASCII', 1: 'file_name_with... |
class GetId(Packet):
'''Get identification from slave'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.13 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 9 | 0 | 8 | 3 | 7 | 1 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
25,106 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_master.py | scapy.contrib.automotive.xcp.cto_commands_master.GetPagProcessorInfo | from scapy.packet import Packet, bind_layers
class GetPagProcessorInfo(Packet):
"""Get general information on PAG processor"""
pass |
class GetPagProcessorInfo(Packet):
'''Get general information on PAG processor'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 3 | 0 | 2 | 1 | 1 | 1 | 2 | 1 | 1 | 0 | 4 | 0 | 0 |
25,107 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_master.py | scapy.contrib.automotive.xcp.cto_commands_master.GetPageInfo | from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, IntField, ThreeBytesField, FlagsField, ConditionalField, XByteField, XIntField, FieldLenField
from scapy.packet import Packet, bind_layers
class GetPageInfo(Packet):
"""Get specific information for a PAGE"""
fields_desc = [ByteField('r... |
class GetPageInfo(Packet):
'''Get specific information for a PAGE'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.17 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 7 | 0 | 6 | 2 | 5 | 1 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
25,108 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_master.py | scapy.contrib.automotive.xcp.cto_commands_master.GetPgmProcessorInfo | from scapy.packet import Packet, bind_layers
class GetPgmProcessorInfo(Packet):
"""Get general information on PGM processor"""
pass |
class GetPgmProcessorInfo(Packet):
'''Get general information on PGM processor'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 3 | 0 | 2 | 1 | 1 | 1 | 2 | 1 | 1 | 0 | 4 | 0 | 0 |
25,109 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_master.py | scapy.contrib.automotive.xcp.cto_commands_master.GetSectorInfo | from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, IntField, ThreeBytesField, FlagsField, ConditionalField, XByteField, XIntField, FieldLenField
from scapy.packet import Packet, bind_layers
class GetSectorInfo(Packet):
"""Get specific information for a SECTOR"""
address_mode = {0: 'get... |
class GetSectorInfo(Packet):
'''Get specific information for a SECTOR'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.17 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 7 | 0 | 6 | 3 | 5 | 1 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
25,110 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_master.py | scapy.contrib.automotive.xcp.cto_commands_master.GetSeed | from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, IntField, ThreeBytesField, FlagsField, ConditionalField, XByteField, XIntField, FieldLenField
from scapy.packet import Packet, bind_layers
class GetSeed(Packet):
seed_mode = {0: 'first', 1: 'remaining'}
res = {0: 'resource', 1: 'ignore... |
class GetSeed(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 8 | 0 | 7 | 4 | 6 | 1 | 4 | 4 | 3 | 0 | 4 | 0 | 0 |
25,111 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_master.py | scapy.contrib.automotive.xcp.cto_commands_master.GetSegmentInfo | from scapy.packet import Packet, bind_layers
from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, IntField, ThreeBytesField, FlagsField, ConditionalField, XByteField, XIntField, FieldLenField
class GetSegmentInfo(Packet):
"""Get specific information for a SEGMENT"""
info_mode = {0: 'get_... |
class GetSegmentInfo(Packet):
'''Get specific information for a SEGMENT'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.08 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 15 | 2 | 12 | 3 | 11 | 1 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
25,112 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_master.py | scapy.contrib.automotive.xcp.cto_commands_master.GetSegmentMode | from scapy.packet import Packet, bind_layers
from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, IntField, ThreeBytesField, FlagsField, ConditionalField, XByteField, XIntField, FieldLenField
class GetSegmentMode(Packet):
"""Get mode for a SEGMENT"""
fields_desc = [ByteField('reserved', ... |
class GetSegmentMode(Packet):
'''Get mode for a SEGMENT'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 6 | 0 | 5 | 2 | 4 | 1 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
25,113 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_master.py | scapy.contrib.automotive.xcp.cto_commands_master.GetStatus | from scapy.packet import Packet, bind_layers
class GetStatus(Packet):
pass |
class GetStatus(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 3 | 0 | 2 | 1 | 1 | 1 | 2 | 1 | 1 | 0 | 4 | 0 | 0 |
25,114 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_master.py | scapy.contrib.automotive.xcp.cto_commands_master.ModifyBits | from scapy.contrib.automotive.xcp.utils import get_ag, get_max_cto, XCPEndiannessField, StrVarLenField
from scapy.packet import Packet, bind_layers
from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, IntField, ThreeBytesField, FlagsField, ConditionalField, XByteField, XIntField, FieldLenField
c... |
class ModifyBits(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 7 | 0 | 6 | 2 | 5 | 1 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
25,115 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_master.py | scapy.contrib.automotive.xcp.cto_commands_master.Program | class Program(Download):
"""Program a non-volatile memory segment"""
pass | class Program(Download):
'''Program a non-volatile memory segment'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 4 | 0 | 2 | 1 | 1 | 2 | 2 | 1 | 1 | 0 | 5 | 0 | 0 |
25,116 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_master.py | scapy.contrib.automotive.xcp.cto_commands_master.ProgramClear | from scapy.contrib.automotive.xcp.utils import get_ag, get_max_cto, XCPEndiannessField, StrVarLenField
from scapy.packet import Packet, bind_layers
from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, IntField, ThreeBytesField, FlagsField, ConditionalField, XByteField, XIntField, FieldLenField
c... |
class ProgramClear(Packet):
'''Clear a part of non-volatile memory'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.14 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 8 | 0 | 7 | 3 | 6 | 1 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
25,117 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_master.py | scapy.contrib.automotive.xcp.cto_commands_master.ProgramFormat | from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, IntField, ThreeBytesField, FlagsField, ConditionalField, XByteField, XIntField, FieldLenField
from scapy.packet import Packet, bind_layers
class ProgramFormat(Packet):
"""Set data format before programming"""
fields_desc = [ByteField('... |
class ProgramFormat(Packet):
'''Set data format before programming'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.14 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 8 | 0 | 7 | 2 | 6 | 1 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
25,118 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_master.py | scapy.contrib.automotive.xcp.cto_commands_master.ProgramMax | class ProgramMax(DownloadMax):
"""Program a non-volatile memory segment (fixed size)"""
pass | class ProgramMax(DownloadMax):
'''Program a non-volatile memory segment (fixed size)'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 4 | 0 | 2 | 1 | 1 | 2 | 2 | 1 | 1 | 0 | 5 | 0 | 0 |
25,119 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_master.py | scapy.contrib.automotive.xcp.cto_commands_master.ProgramNext | class ProgramNext(Download):
"""Program a non-volatile memory segment (Block Mode)"""
pass | class ProgramNext(Download):
'''Program a non-volatile memory segment (Block Mode)'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 4 | 0 | 2 | 1 | 1 | 2 | 2 | 1 | 1 | 0 | 5 | 0 | 0 |
25,120 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_master.py | scapy.contrib.automotive.xcp.cto_commands_master.ProgramPrepare | from scapy.packet import Packet, bind_layers
from scapy.contrib.automotive.xcp.utils import get_ag, get_max_cto, XCPEndiannessField, StrVarLenField
from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, IntField, ThreeBytesField, FlagsField, ConditionalField, XByteField, XIntField, FieldLenField
c... |
class ProgramPrepare(Packet):
'''Prepare non-volatile memory programming'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 6 | 0 | 5 | 2 | 4 | 1 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
25,121 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_master.py | scapy.contrib.automotive.xcp.cto_commands_master.ProgramReset | from scapy.packet import Packet, bind_layers
class ProgramReset(Packet):
"""Indicate the end of a programming sequence"""
pass |
class ProgramReset(Packet):
'''Indicate the end of a programming sequence'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 3 | 0 | 2 | 1 | 1 | 1 | 2 | 1 | 1 | 0 | 4 | 0 | 0 |
25,122 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_master.py | scapy.contrib.automotive.xcp.cto_commands_master.ProgramStart | from scapy.packet import Packet, bind_layers
class ProgramStart(Packet):
"""Indicate the beginning of a programming sequence"""
pass |
class ProgramStart(Packet):
'''Indicate the beginning of a programming sequence'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 3 | 0 | 2 | 1 | 1 | 1 | 2 | 1 | 1 | 0 | 4 | 0 | 0 |
25,123 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_master.py | scapy.contrib.automotive.xcp.cto_commands_master.ProgramVerify | from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, IntField, ThreeBytesField, FlagsField, ConditionalField, XByteField, XIntField, FieldLenField
from scapy.contrib.automotive.xcp.utils import get_ag, get_max_cto, XCPEndiannessField, StrVarLenField
from scapy.packet import Packet, bind_layers
c... |
class ProgramVerify(Packet):
'''Program Verify'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 11 | 0 | 10 | 3 | 9 | 1 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
25,124 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_master.py | scapy.contrib.automotive.xcp.cto_commands_master.ReadDaq | from scapy.packet import Packet, bind_layers
class ReadDaq(Packet):
"""Read element from ODT entry"""
pass |
class ReadDaq(Packet):
'''Read element from ODT entry'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 3 | 0 | 2 | 1 | 1 | 1 | 2 | 1 | 1 | 0 | 4 | 0 | 0 |
25,125 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_master.py | scapy.contrib.automotive.xcp.cto_commands_master.SetCalPage | from scapy.packet import Packet, bind_layers
from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, IntField, ThreeBytesField, FlagsField, ConditionalField, XByteField, XIntField, FieldLenField
class SetCalPage(Packet):
"""Set calibration page"""
fields_desc = [FlagsField('mode', 0, 8, ['e... |
class SetCalPage(Packet):
'''Set calibration page'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.14 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 8 | 0 | 7 | 2 | 6 | 1 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
25,126 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_master.py | scapy.contrib.automotive.xcp.cto_commands_master.SetDaqListMode | from scapy.contrib.automotive.xcp.utils import get_ag, get_max_cto, XCPEndiannessField, StrVarLenField
from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, IntField, ThreeBytesField, FlagsField, ConditionalField, XByteField, XIntField, FieldLenField
from scapy.packet import Packet, bind_layers
c... |
class SetDaqListMode(Packet):
'''Set mode for DAQ list'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 11 | 0 | 10 | 2 | 9 | 1 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
25,127 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_master.py | scapy.contrib.automotive.xcp.cto_commands_master.SetDaqPtr | from scapy.packet import Packet, bind_layers
from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, IntField, ThreeBytesField, FlagsField, ConditionalField, XByteField, XIntField, FieldLenField
from scapy.contrib.automotive.xcp.utils import get_ag, get_max_cto, XCPEndiannessField, StrVarLenField
c... |
class SetDaqPtr(Packet):
'''Data acquisition and stimulation, static, mandatory'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.14 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 8 | 0 | 7 | 2 | 6 | 1 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
25,128 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_master.py | scapy.contrib.automotive.xcp.cto_commands_master.SetMta | from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, IntField, ThreeBytesField, FlagsField, ConditionalField, XByteField, XIntField, FieldLenField
from scapy.packet import Packet, bind_layers
from scapy.contrib.automotive.xcp.utils import get_ag, get_max_cto, XCPEndiannessField, StrVarLenField
c... |
class SetMta(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 12 | 0 | 6 | 2 | 5 | 6 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
25,129 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_master.py | scapy.contrib.automotive.xcp.cto_commands_master.SetRequest | from scapy.packet import Packet, bind_layers
from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, IntField, ThreeBytesField, FlagsField, ConditionalField, XByteField, XIntField, FieldLenField
from scapy.contrib.automotive.xcp.utils import get_ag, get_max_cto, XCPEndiannessField, StrVarLenField
c... |
class SetRequest(Packet):
'''Request to save to non-volatile memory'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.14 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 8 | 0 | 7 | 2 | 6 | 1 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
25,130 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_master.py | scapy.contrib.automotive.xcp.cto_commands_master.SetSegmentMode | from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, IntField, ThreeBytesField, FlagsField, ConditionalField, XByteField, XIntField, FieldLenField
from scapy.packet import Packet, bind_layers
class SetSegmentMode(Packet):
"""Set mode for a SEGMENT"""
fields_desc = [FlagsField('mode', 0, ... |
class SetSegmentMode(Packet):
'''Set mode for a SEGMENT'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.17 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 7 | 0 | 6 | 2 | 5 | 1 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
25,131 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_master.py | scapy.contrib.automotive.xcp.cto_commands_master.ShortDownload | from scapy.packet import Packet, bind_layers
from scapy.contrib.automotive.xcp.utils import get_ag, get_max_cto, XCPEndiannessField, StrVarLenField
from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, IntField, ThreeBytesField, FlagsField, ConditionalField, XByteField, XIntField, FieldLenField
c... |
class ShortDownload(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 10 | 0 | 9 | 2 | 8 | 1 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
25,132 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_master.py | scapy.contrib.automotive.xcp.cto_commands_master.ShortUpload | from scapy.packet import Packet, bind_layers
from scapy.contrib.automotive.xcp.utils import get_ag, get_max_cto, XCPEndiannessField, StrVarLenField
from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, IntField, ThreeBytesField, FlagsField, ConditionalField, XByteField, XIntField, FieldLenField
c... |
class ShortUpload(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 8 | 0 | 7 | 2 | 6 | 1 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
25,133 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_master.py | scapy.contrib.automotive.xcp.cto_commands_master.StartStopDaqList | from scapy.contrib.automotive.xcp.utils import get_ag, get_max_cto, XCPEndiannessField, StrVarLenField
from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, IntField, ThreeBytesField, FlagsField, ConditionalField, XByteField, XIntField, FieldLenField
from scapy.packet import Packet, bind_layers
c... |
class StartStopDaqList(Packet):
'''Start/stop/select DAQ list'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.17 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 7 | 0 | 6 | 3 | 5 | 1 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
25,134 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_master.py | scapy.contrib.automotive.xcp.cto_commands_master.StartStopSynch | from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, IntField, ThreeBytesField, FlagsField, ConditionalField, XByteField, XIntField, FieldLenField
from scapy.packet import Packet, bind_layers
class StartStopSynch(Packet):
"""Start/stop DAQ lists (synchronously)"""
mode_enum = {0: 'stop',... |
class StartStopSynch(Packet):
'''Start/stop DAQ lists (synchronously)'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 6 | 0 | 5 | 3 | 4 | 1 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
25,135 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_master.py | scapy.contrib.automotive.xcp.cto_commands_master.Synch | from scapy.packet import Packet, bind_layers
class Synch(Packet):
pass |
class Synch(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 3 | 0 | 2 | 1 | 1 | 1 | 2 | 1 | 1 | 0 | 4 | 0 | 0 |
25,136 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_master.py | scapy.contrib.automotive.xcp.cto_commands_master.TransportLayerCmd | from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, IntField, ThreeBytesField, FlagsField, ConditionalField, XByteField, XIntField, FieldLenField
from scapy.packet import Packet, bind_layers
class TransportLayerCmd(Packet):
sub_commands = {255: 'GET_SLAVE_ID', 254: 'GET_DAQ_ID', 253: 'SET_D... |
class TransportLayerCmd(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 10 | 0 | 9 | 3 | 8 | 1 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
25,137 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_master.py | scapy.contrib.automotive.xcp.cto_commands_master.TransportLayerCmdGetDAQId | from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, IntField, ThreeBytesField, FlagsField, ConditionalField, XByteField, XIntField, FieldLenField
from scapy.packet import Packet, bind_layers
from scapy.contrib.automotive.xcp.utils import get_ag, get_max_cto, XCPEndiannessField, StrVarLenField
c... |
class TransportLayerCmdGetDAQId(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 |
25,138 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_master.py | scapy.contrib.automotive.xcp.cto_commands_master.TransportLayerCmdGetSlaveId | from scapy.packet import Packet, bind_layers
from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, IntField, ThreeBytesField, FlagsField, ConditionalField, XByteField, XIntField, FieldLenField
class TransportLayerCmdGetSlaveId(Packet):
echo_mode = {0: 'identify_by_echo', 1: 'confirm_by_invers... |
class TransportLayerCmdGetSlaveId(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.27 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 12 | 1 | 11 | 3 | 10 | 3 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
25,139 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_master.py | scapy.contrib.automotive.xcp.cto_commands_master.TransportLayerCmdSetDAQId | from scapy.contrib.automotive.xcp.utils import get_ag, get_max_cto, XCPEndiannessField, StrVarLenField
from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, IntField, ThreeBytesField, FlagsField, ConditionalField, XByteField, XIntField, FieldLenField
from scapy.packet import Packet, bind_layers
c... |
class TransportLayerCmdSetDAQId(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 |
25,140 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_master.py | scapy.contrib.automotive.xcp.cto_commands_master.Unlock | from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, IntField, ThreeBytesField, FlagsField, ConditionalField, XByteField, XIntField, FieldLenField
from scapy.contrib.automotive.xcp.utils import get_ag, get_max_cto, XCPEndiannessField, StrVarLenField
from scapy.packet import Packet, bind_layers
c... |
class Unlock(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 7 | 0 | 6 | 2 | 5 | 1 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
25,141 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_master.py | scapy.contrib.automotive.xcp.cto_commands_master.Upload | from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, IntField, ThreeBytesField, FlagsField, ConditionalField, XByteField, XIntField, FieldLenField
from scapy.packet import Packet, bind_layers
class Upload(Packet):
fields_desc = [ByteField('nr_of_data_elements', 0)] |
class Upload(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 3 | 0 | 2 | 2 | 1 | 1 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
25,142 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_master.py | scapy.contrib.automotive.xcp.cto_commands_master.UserCmd | from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, IntField, ThreeBytesField, FlagsField, ConditionalField, XByteField, XIntField, FieldLenField
from scapy.packet import Packet, bind_layers
class UserCmd(Packet):
fields_desc = [ByteField('sub_command_code', 0)] |
class UserCmd(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 5 | 0 | 4 | 2 | 3 | 1 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
25,143 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_master.py | scapy.contrib.automotive.xcp.cto_commands_master.WriteDaq | from scapy.contrib.automotive.xcp.utils import get_ag, get_max_cto, XCPEndiannessField, StrVarLenField
from scapy.packet import Packet, bind_layers
from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, IntField, ThreeBytesField, FlagsField, ConditionalField, XByteField, XIntField, FieldLenField
c... |
class WriteDaq(Packet):
'''Data acquisition and stimulation, static, mandatory'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.14 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 8 | 0 | 7 | 2 | 6 | 1 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
25,144 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_slave.py | scapy.contrib.automotive.xcp.cto_commands_slave.CalPagePositiveResponse | from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, FlagsField, IntField, ThreeBytesField, ConditionalField, XByteField, StrField, LEShortField, XIntField, FieldLenField
from scapy.packet import Packet
class CalPagePositiveResponse(Packet):
fields_desc = [ByteField('reserved_1', 0), ByteFie... |
class CalPagePositiveResponse(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 |
25,145 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_slave.py | scapy.contrib.automotive.xcp.cto_commands_slave.ChecksumPositiveResponse | from scapy.packet import Packet
from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, FlagsField, IntField, ThreeBytesField, ConditionalField, XByteField, StrField, LEShortField, XIntField, FieldLenField
from scapy.contrib.automotive.xcp.utils import get_max_cto, get_ag, XCPEndiannessField, StrVar... |
class ChecksumPositiveResponse(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.28 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 23 | 0 | 18 | 3 | 17 | 5 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
25,146 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_slave.py | scapy.contrib.automotive.xcp.cto_commands_slave.CommonModeInfoPositiveResponse | from scapy.packet import Packet
from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, FlagsField, IntField, ThreeBytesField, ConditionalField, XByteField, StrField, LEShortField, XIntField, FieldLenField
class CommonModeInfoPositiveResponse(Packet):
fields_desc = [ByteField('reserved1', 0), F... |
class CommonModeInfoPositiveResponse(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 12 | 0 | 12 | 2 | 11 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
25,147 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_slave.py | scapy.contrib.automotive.xcp.cto_commands_slave.ConnectPositiveResponse | from scapy.config import conf
from scapy.contrib.automotive import log_automotive
from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, FlagsField, IntField, ThreeBytesField, ConditionalField, XByteField, StrField, LEShortField, XIntField, FieldLenField
from scapy.packet import Packet
class Conne... |
class ConnectPositiveResponse(Packet):
def post_dissection(self, pkt):
pass
def get_address_granularity(self):
pass | 3 | 0 | 16 | 2 | 15 | 0 | 5 | 0 | 1 | 1 | 0 | 0 | 2 | 0 | 2 | 121 | 50 | 5 | 45 | 7 | 42 | 0 | 23 | 7 | 20 | 6 | 4 | 2 | 10 |
25,148 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_slave.py | scapy.contrib.automotive.xcp.cto_commands_slave.DAQClockListPositiveResponse | from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, FlagsField, IntField, ThreeBytesField, ConditionalField, XByteField, StrField, LEShortField, XIntField, FieldLenField
from scapy.packet import Packet
from scapy.contrib.automotive.xcp.utils import get_max_cto, get_ag, XCPEndiannessField, StrVar... |
class DAQClockListPositiveResponse(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 7 | 0 | 5 | 2 | 4 | 2 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
25,149 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_slave.py | scapy.contrib.automotive.xcp.cto_commands_slave.DAQEventInfoPositiveResponse | from scapy.packet import Packet
from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, FlagsField, IntField, ThreeBytesField, ConditionalField, XByteField, StrField, LEShortField, XIntField, FieldLenField
class DAQEventInfoPositiveResponse(Packet):
fields_desc = [FlagsField('daq_event_properti... |
class DAQEventInfoPositiveResponse(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 10 | 0 | 10 | 2 | 9 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
25,150 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_slave.py | scapy.contrib.automotive.xcp.cto_commands_slave.DAQListInfoPositiveResponse | from scapy.packet import Packet
from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, FlagsField, IntField, ThreeBytesField, ConditionalField, XByteField, StrField, LEShortField, XIntField, FieldLenField
from scapy.contrib.automotive.xcp.utils import get_max_cto, get_ag, XCPEndiannessField, StrVar... |
class DAQListInfoPositiveResponse(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 9 | 0 | 9 | 2 | 8 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
25,151 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_slave.py | scapy.contrib.automotive.xcp.cto_commands_slave.DAQListModePositiveResponse | from scapy.contrib.automotive.xcp.utils import get_max_cto, get_ag, XCPEndiannessField, StrVarLenField
from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, FlagsField, IntField, ThreeBytesField, ConditionalField, XByteField, StrField, LEShortField, XIntField, FieldLenField
from scapy.packet impor... |
class DAQListModePositiveResponse(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 10 | 0 | 10 | 2 | 9 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
25,152 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_slave.py | scapy.contrib.automotive.xcp.cto_commands_slave.DAQProcessorInfoPositiveResponse | from scapy.packet import Packet
from scapy.config import conf
from scapy.contrib.automotive.xcp.utils import get_max_cto, get_ag, XCPEndiannessField, StrVarLenField
from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, FlagsField, IntField, ThreeBytesField, ConditionalField, XByteField, StrField, ... |
class DAQProcessorInfoPositiveResponse(Packet):
def write_identification_field_type_to_config(self):
pass
def post_dissection(self, pkt):
pass | 3 | 0 | 5 | 0 | 5 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 2 | 0 | 2 | 121 | 28 | 2 | 26 | 4 | 23 | 0 | 7 | 4 | 4 | 1 | 4 | 0 | 2 |
25,153 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_slave.py | scapy.contrib.automotive.xcp.cto_commands_slave.DAQResolutionInfoPositiveResponse | from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, FlagsField, IntField, ThreeBytesField, ConditionalField, XByteField, StrField, LEShortField, XIntField, FieldLenField
from scapy.contrib.automotive.xcp.utils import get_max_cto, get_ag, XCPEndiannessField, StrVarLenField
from scapy.packet impor... |
class DAQResolutionInfoPositiveResponse(Packet):
def get_timestamp_size(self):
pass
def write_timestamp_size_to_config(self):
pass
def post_dissection(self, pkt):
pass | 4 | 0 | 5 | 0 | 5 | 0 | 2 | 0 | 1 | 1 | 0 | 0 | 3 | 0 | 3 | 122 | 30 | 4 | 26 | 8 | 22 | 0 | 17 | 8 | 13 | 4 | 4 | 1 | 6 |
25,154 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_slave.py | scapy.contrib.automotive.xcp.cto_commands_slave.EvPacket | from scapy.packet import Packet
from scapy.contrib.automotive.xcp.utils import get_max_cto, get_ag, XCPEndiannessField, StrVarLenField
from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, FlagsField, IntField, ThreeBytesField, ConditionalField, XByteField, StrField, LEShortField, XIntField, Field... |
class EvPacket(Packet):
'''Event packet'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.06 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 18 | 0 | 17 | 3 | 16 | 1 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
25,155 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_slave.py | scapy.contrib.automotive.xcp.cto_commands_slave.GenericResponse | from scapy.packet import Packet
from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, FlagsField, IntField, ThreeBytesField, ConditionalField, XByteField, StrField, LEShortField, XIntField, FieldLenField
class GenericResponse(Packet):
"""Command Response packet """
fields_desc = [StrField... |
class GenericResponse(Packet):
'''Command Response packet '''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 5 | 0 | 4 | 2 | 3 | 1 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
25,156 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_slave.py | scapy.contrib.automotive.xcp.cto_commands_slave.IdPositiveResponse | from scapy.contrib.automotive.xcp.utils import get_max_cto, get_ag, XCPEndiannessField, StrVarLenField
from scapy.packet import Packet
from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, FlagsField, IntField, ThreeBytesField, ConditionalField, XByteField, StrField, LEShortField, XIntField, Field... |
class IdPositiveResponse(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 9 | 0 | 9 | 2 | 8 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
25,157 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_slave.py | scapy.contrib.automotive.xcp.cto_commands_slave.NegativeResponse | from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, FlagsField, IntField, ThreeBytesField, ConditionalField, XByteField, StrField, LEShortField, XIntField, FieldLenField
from scapy.packet import Packet
class NegativeResponse(Packet):
"""Error Packet"""
error_code_enum = {0: 'ERR_CMD_SYN... |
class NegativeResponse(Packet):
'''Error Packet'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.04 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 26 | 0 | 25 | 3 | 24 | 1 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
25,158 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_slave.py | scapy.contrib.automotive.xcp.cto_commands_slave.PagProcessorInfoPositiveResponse | from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, FlagsField, IntField, ThreeBytesField, ConditionalField, XByteField, StrField, LEShortField, XIntField, FieldLenField
from scapy.packet import Packet
class PagProcessorInfoPositiveResponse(Packet):
fields_desc = [ByteField('max_segment', 0... |
class PagProcessorInfoPositiveResponse(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 |
25,159 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_slave.py | scapy.contrib.automotive.xcp.cto_commands_slave.PageInfoPositiveResponse | from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, FlagsField, IntField, ThreeBytesField, ConditionalField, XByteField, StrField, LEShortField, XIntField, FieldLenField
from scapy.packet import Packet
class PageInfoPositiveResponse(Packet):
fields_desc = [FlagsField('page_properties', 0, 8... |
class PageInfoPositiveResponse(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 9 | 0 | 9 | 2 | 8 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
25,160 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_slave.py | scapy.contrib.automotive.xcp.cto_commands_slave.PgmProcessorPositiveResponse | from scapy.packet import Packet
from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, FlagsField, IntField, ThreeBytesField, ConditionalField, XByteField, StrField, LEShortField, XIntField, FieldLenField
class PgmProcessorPositiveResponse(Packet):
fields_desc = [FlagsField('pgm_properties', 0... |
class PgmProcessorPositiveResponse(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 9 | 0 | 9 | 2 | 8 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
25,161 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_slave.py | scapy.contrib.automotive.xcp.cto_commands_slave.ProgramStartPositiveResponse | from scapy.packet import Packet
from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, FlagsField, IntField, ThreeBytesField, ConditionalField, XByteField, StrField, LEShortField, XIntField, FieldLenField
class ProgramStartPositiveResponse(Packet):
fields_desc = [ByteField('reserved', 0), Flag... |
class ProgramStartPositiveResponse(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 11 | 0 | 11 | 2 | 10 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
25,162 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_slave.py | scapy.contrib.automotive.xcp.cto_commands_slave.ReadDAQPositiveResponse | from scapy.packet import Packet
from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, FlagsField, IntField, ThreeBytesField, ConditionalField, XByteField, StrField, LEShortField, XIntField, FieldLenField
from scapy.contrib.automotive.xcp.utils import get_max_cto, get_ag, XCPEndiannessField, StrVar... |
class ReadDAQPositiveResponse(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 |
25,163 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_slave.py | scapy.contrib.automotive.xcp.cto_commands_slave.SectorInfoPositiveResponse | from scapy.packet import Packet
from scapy.contrib.automotive.xcp.utils import get_max_cto, get_ag, XCPEndiannessField, StrVarLenField
from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, FlagsField, IntField, ThreeBytesField, ConditionalField, XByteField, StrField, LEShortField, XIntField, Field... |
class SectorInfoPositiveResponse(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 |
25,164 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_slave.py | scapy.contrib.automotive.xcp.cto_commands_slave.SeedPositiveResponse | from scapy.contrib.automotive.xcp.utils import get_max_cto, get_ag, XCPEndiannessField, StrVarLenField
from scapy.packet import Packet
from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, FlagsField, IntField, ThreeBytesField, ConditionalField, XByteField, StrField, LEShortField, XIntField, Field... |
class SeedPositiveResponse(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 |
25,165 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_slave.py | scapy.contrib.automotive.xcp.cto_commands_slave.SegmentInfoMode0PositiveResponse | from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, FlagsField, IntField, ThreeBytesField, ConditionalField, XByteField, StrField, LEShortField, XIntField, FieldLenField
from scapy.contrib.automotive.xcp.utils import get_max_cto, get_ag, XCPEndiannessField, StrVarLenField
from scapy.packet impor... |
class SegmentInfoMode0PositiveResponse(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 7 | 0 | 5 | 2 | 4 | 2 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
25,166 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_slave.py | scapy.contrib.automotive.xcp.cto_commands_slave.SegmentInfoMode1PositiveResponse | from scapy.packet import Packet
from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, FlagsField, IntField, ThreeBytesField, ConditionalField, XByteField, StrField, LEShortField, XIntField, FieldLenField
class SegmentInfoMode1PositiveResponse(Packet):
fields_desc = [ByteField('max_pages', 0),... |
class SegmentInfoMode1PositiveResponse(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 |
25,167 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_slave.py | scapy.contrib.automotive.xcp.cto_commands_slave.SegmentInfoMode2PositiveResponse | from scapy.contrib.automotive.xcp.utils import get_max_cto, get_ag, XCPEndiannessField, StrVarLenField
from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, FlagsField, IntField, ThreeBytesField, ConditionalField, XByteField, StrField, LEShortField, XIntField, FieldLenField
from scapy.packet impor... |
class SegmentInfoMode2PositiveResponse(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 7 | 0 | 5 | 2 | 4 | 2 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
25,168 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_slave.py | scapy.contrib.automotive.xcp.cto_commands_slave.SegmentModePositiveResponse | from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, FlagsField, IntField, ThreeBytesField, ConditionalField, XByteField, StrField, LEShortField, XIntField, FieldLenField
from scapy.packet import Packet
class SegmentModePositiveResponse(Packet):
fields_desc = [ByteField('reserved', 0), Flags... |
class SegmentModePositiveResponse(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 |
25,169 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_slave.py | scapy.contrib.automotive.xcp.cto_commands_slave.ServPacket | from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, FlagsField, IntField, ThreeBytesField, ConditionalField, XByteField, StrField, LEShortField, XIntField, FieldLenField
from scapy.packet import Packet
from scapy.contrib.automotive.xcp.utils import get_max_cto, get_ag, XCPEndiannessField, StrVar... |
class ServPacket(Packet):
'''Service Request packet'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 12 | 1 | 10 | 3 | 9 | 1 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
25,170 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_slave.py | scapy.contrib.automotive.xcp.cto_commands_slave.ShortUploadPositiveResponse | from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, FlagsField, IntField, ThreeBytesField, ConditionalField, XByteField, StrField, LEShortField, XIntField, FieldLenField
from scapy.packet import Packet
from scapy.contrib.automotive.xcp.utils import get_max_cto, get_ag, XCPEndiannessField, StrVar... |
class ShortUploadPositiveResponse(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 9 | 0 | 9 | 2 | 8 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
25,171 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_slave.py | scapy.contrib.automotive.xcp.cto_commands_slave.StartStopDAQListPositiveResponse | from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, FlagsField, IntField, ThreeBytesField, ConditionalField, XByteField, StrField, LEShortField, XIntField, FieldLenField
from scapy.packet import Packet
class StartStopDAQListPositiveResponse(Packet):
fields_desc = [ByteField('first_pid', 0)] |
class StartStopDAQListPositiveResponse(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 |
25,172 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_slave.py | scapy.contrib.automotive.xcp.cto_commands_slave.StatusPositiveResponse | from scapy.packet import Packet
from scapy.contrib.automotive.xcp.utils import get_max_cto, get_ag, XCPEndiannessField, StrVarLenField
from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, FlagsField, IntField, ThreeBytesField, ConditionalField, XByteField, StrField, LEShortField, XIntField, Field... |
class StatusPositiveResponse(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 10 | 0 | 10 | 2 | 9 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
25,173 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_slave.py | scapy.contrib.automotive.xcp.cto_commands_slave.TransportLayerCmdGetDAQIdResponse | from scapy.contrib.automotive.xcp.utils import get_max_cto, get_ag, XCPEndiannessField, StrVarLenField
from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, FlagsField, IntField, ThreeBytesField, ConditionalField, XByteField, StrField, LEShortField, XIntField, FieldLenField
from scapy.packet impor... |
class TransportLayerCmdGetDAQIdResponse(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 10 | 0 | 10 | 3 | 9 | 0 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
25,174 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_slave.py | scapy.contrib.automotive.xcp.cto_commands_slave.TransportLayerCmdGetSlaveIdResponse | from scapy.contrib.automotive.xcp.utils import get_max_cto, get_ag, XCPEndiannessField, StrVarLenField
from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, FlagsField, IntField, ThreeBytesField, ConditionalField, XByteField, StrField, LEShortField, XIntField, FieldLenField
from scapy.packet impor... |
class TransportLayerCmdGetSlaveIdResponse(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.43 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 7 | 0 | 7 | 2 | 6 | 3 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
25,175 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_slave.py | scapy.contrib.automotive.xcp.cto_commands_slave.UnlockPositiveResponse | from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, FlagsField, IntField, ThreeBytesField, ConditionalField, XByteField, StrField, LEShortField, XIntField, FieldLenField
from scapy.packet import Packet
class UnlockPositiveResponse(Packet):
fields_desc = [FlagsField('current_resource_protect... |
class UnlockPositiveResponse(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 |
25,176 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/cto_commands_slave.py | scapy.contrib.automotive.xcp.cto_commands_slave.UploadPositiveResponse | from scapy.fields import ByteEnumField, ByteField, ShortField, StrLenField, FlagsField, IntField, ThreeBytesField, ConditionalField, XByteField, StrField, LEShortField, XIntField, FieldLenField
from scapy.packet import Packet
from scapy.contrib.automotive.xcp.utils import get_max_cto, get_ag, XCPEndiannessField, StrVar... |
class UploadPositiveResponse(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 9 | 0 | 9 | 2 | 8 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
25,177 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/scanner.py | scapy.contrib.automotive.xcp.scanner.XCPOnCANScanner | from scapy.contrib.automotive.xcp.cto_commands_slave import ConnectPositiveResponse, TransportLayerCmdGetSlaveIdResponse
from scapy.contrib.automotive.xcp.cto_commands_master import TransportLayerCmd, TransportLayerCmdGetSlaveId, Connect
import logging
from scapy.contrib.automotive import log_automotive
from scapy.conf... |
class XCPOnCANScanner:
'''
Scans for XCP Slave on CAN
'''
def __init__(self, can_socket, id_range=None, sniff_time=0.1, add_padding=False, verbose=False):
'''
Constructor
:param can_socket: Can Socket with XCPonCAN as basecls for scan
:param id_range: CAN id range to sc... | 7 | 5 | 20 | 2 | 13 | 4 | 3 | 0.37 | 0 | 11 | 7 | 0 | 6 | 3 | 6 | 6 | 128 | 20 | 79 | 32 | 71 | 29 | 57 | 31 | 50 | 3 | 0 | 2 | 17 |
25,178 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/utils.py | scapy.contrib.automotive.xcp.utils.StrVarLenField | from scapy.fields import StrLenField
from scapy.volatile import RandBin, RandNum
class StrVarLenField(StrLenField):
def randval(self):
return RandBin(RandNum(0, self.max_length() or 1200)) |
class StrVarLenField(StrLenField):
def randval(self):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 2 | 2 | 0 | 1 | 0 | 1 | 44 | 3 | 0 | 3 | 2 | 1 | 0 | 3 | 2 | 1 | 1 | 7 | 0 | 1 |
25,179 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/utils.py | scapy.contrib.automotive.xcp.utils.XCPEndiannessField | import struct
from scapy.config import conf
class XCPEndiannessField(object):
"""Field which changes the endianness of a sub-field"""
__slots__ = ['fld']
def __init__(self, fld):
self.fld = fld
def set_endianness(self):
"""Add the endianness to the format"""
byte_oder = conf.c... |
class XCPEndiannessField(object):
'''Field which changes the endianness of a sub-field'''
def __init__(self, fld):
pass
def set_endianness(self):
'''Add the endianness to the format'''
pass
def getfield(self, pkt, s):
pass
def addfield(self, pkt, s, val):
... | 6 | 2 | 4 | 0 | 3 | 0 | 1 | 0.12 | 1 | 0 | 0 | 0 | 5 | 1 | 5 | 5 | 26 | 7 | 17 | 10 | 11 | 2 | 17 | 10 | 11 | 2 | 1 | 0 | 6 |
25,180 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/xcp.py | scapy.contrib.automotive.xcp.xcp.CTORequest | from scapy.fields import ByteEnumField, ShortField, XBitField, FlagsField, ByteField, ThreeBytesField, StrField, ConditionalField, XByteField, StrLenField
from scapy.packet import Packet, bind_layers, bind_bottom_up, bind_top_down
class CTORequest(Packet):
pids = {255: 'CONNECT', 254: 'DISCONNECT', 253: 'GET_STATU... |
class CTORequest(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 75 | 2 | 66 | 5 | 65 | 7 | 6 | 5 | 5 | 0 | 4 | 1 | 0 |
25,181 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/xcp.py | scapy.contrib.automotive.xcp.xcp.CTOResponse | from scapy.packet import Packet, bind_layers, bind_bottom_up, bind_top_down
from scapy.fields import ByteEnumField, ShortField, XBitField, FlagsField, ByteField, ThreeBytesField, StrField, ConditionalField, XByteField, StrLenField
import struct
from scapy.contrib.automotive.xcp.cto_commands_slave import GenericResponse... |
class CTOResponse(Packet):
@staticmethod
def get_positive_response_cls(request):
pass
def answers(self, request):
'''In XCP, the payload of a response packet is dependent on the pid
field of the corresponding request.
This method changes the class of the payload to the cla... | 4 | 1 | 42 | 3 | 29 | 11 | 7 | 0.3 | 1 | 32 | 31 | 0 | 1 | 1 | 2 | 121 | 99 | 8 | 70 | 13 | 66 | 21 | 38 | 11 | 35 | 8 | 4 | 2 | 14 |
25,182 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/xcp.py | scapy.contrib.automotive.xcp.xcp.DTO | from scapy.contrib.automotive.xcp.utils import get_timestamp_length, identification_field_needs_alignment, get_daq_length, get_daq_data_field_length
from scapy.fields import ByteEnumField, ShortField, XBitField, FlagsField, ByteField, ThreeBytesField, StrField, ConditionalField, XByteField, StrLenField
from scapy.packe... |
class DTO(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 17 | 0 | 17 | 3 | 16 | 0 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
25,183 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/xcp.py | scapy.contrib.automotive.xcp.xcp.XCPOnCAN | from scapy.config import conf
from scapy.fields import ByteEnumField, ShortField, XBitField, FlagsField, ByteField, ThreeBytesField, StrField, ConditionalField, XByteField, StrLenField
import struct
from scapy.layers.can import CAN
class XCPOnCAN(CAN):
name = 'Universal calibration and measurement protocol on CAN'... |
class XCPOnCAN(CAN):
def post_build(self, pkt, pay):
pass
def extract_padding(self, p):
pass | 3 | 0 | 5 | 0 | 5 | 0 | 2 | 0 | 1 | 1 | 0 | 0 | 2 | 0 | 2 | 127 | 22 | 2 | 20 | 6 | 17 | 0 | 11 | 6 | 8 | 3 | 5 | 1 | 4 |
25,184 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/xcp.py | scapy.contrib.automotive.xcp.xcp.XCPOnCANTail | from scapy.fields import ByteEnumField, ShortField, XBitField, FlagsField, ByteField, ThreeBytesField, StrField, ConditionalField, XByteField, StrLenField
from scapy.packet import Packet, bind_layers, bind_bottom_up, bind_top_down
class XCPOnCANTail(Packet):
name = 'XCP Tail on CAN'
fields_desc = [StrField('co... |
class XCPOnCANTail(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 6 | 1 | 5 | 3 | 4 | 0 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
25,185 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/xcp.py | scapy.contrib.automotive.xcp.xcp.XCPOnTCP | import struct
from scapy.fields import ByteEnumField, ShortField, XBitField, FlagsField, ByteField, ThreeBytesField, StrField, ConditionalField, XByteField, StrLenField
from scapy.layers.inet import UDP, TCP
class XCPOnTCP(TCP):
name = 'Universal calibration and measurement protocol on Ethernet'
fields_desc = ... |
class XCPOnTCP(TCP):
def answers(self, other):
pass
def post_build(self, pkt, pay):
pass | 3 | 0 | 7 | 0 | 7 | 0 | 3 | 0.05 | 1 | 3 | 2 | 0 | 2 | 0 | 2 | 6 | 22 | 3 | 19 | 7 | 16 | 1 | 15 | 7 | 12 | 3 | 2 | 1 | 5 |
25,186 | secdev/scapy | secdev_scapy/scapy/contrib/automotive/xcp/xcp.py | scapy.contrib.automotive.xcp.xcp.XCPOnUDP | from scapy.fields import ByteEnumField, ShortField, XBitField, FlagsField, ByteField, ThreeBytesField, StrField, ConditionalField, XByteField, StrLenField
import struct
from scapy.layers.inet import UDP, TCP
class XCPOnUDP(UDP):
name = 'Universal calibration and measurement protocol on Ethernet'
fields_desc = ... |
class XCPOnUDP(UDP):
def post_build(self, pkt, pay):
pass | 2 | 0 | 5 | 0 | 5 | 0 | 2 | 0.09 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 6 | 12 | 1 | 11 | 5 | 9 | 1 | 8 | 5 | 6 | 2 | 2 | 1 | 2 |
25,187 | secdev/scapy | secdev_scapy/scapy/contrib/avs.py | scapy.contrib.avs.AVSWLANHeader | from scapy.packet import Packet, bind_layers
from scapy.fields import IntEnumField, IntField, LongField, SignedIntField
class AVSWLANHeader(Packet):
""" iwpriv eth1 set_prismhdr 1 """
name = 'AVS WLAN Monitor Header'
fields_desc = [IntField('version', 1), IntField('len', 64), LongField('mactime', 0), LongF... |
class AVSWLANHeader(Packet):
''' iwpriv eth1 set_prismhdr 1 '''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.06 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 18 | 0 | 17 | 3 | 16 | 1 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
25,188 | secdev/scapy | secdev_scapy/scapy/contrib/bfd.py | scapy.contrib.bfd.BFD | from scapy.fields import BitField, BitEnumField, ByteEnumField, XNBytesField, XByteField, MultipleTypeField, IntField, FieldLenField, FlagsField, ByteField, PacketField, ConditionalField, StrFixedLenField
from scapy.packet import Packet, bind_layers, bind_bottom_up
class BFD(Packet):
name = 'BFD'
fields_desc =... |
class BFD(Packet):
def mysummary(self):
pass | 2 | 0 | 6 | 0 | 6 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 120 | 32 | 1 | 31 | 4 | 29 | 0 | 5 | 4 | 3 | 1 | 4 | 0 | 1 |
25,189 | secdev/scapy | secdev_scapy/scapy/contrib/bfd.py | scapy.contrib.bfd.OptionalAuth | from scapy.fields import BitField, BitEnumField, ByteEnumField, XNBytesField, XByteField, MultipleTypeField, IntField, FieldLenField, FlagsField, ByteField, PacketField, ConditionalField, StrFixedLenField
from scapy.packet import Packet, bind_layers, bind_bottom_up
class OptionalAuth(Packet):
name = 'Optional Auth... |
class OptionalAuth(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 44 | 0 | 44 | 3 | 43 | 0 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
25,190 | secdev/scapy | secdev_scapy/scapy/contrib/bgp.py | scapy.contrib.bgp.ASPathSegmentPacketListField | from scapy.compat import orb, chb
from scapy.fields import Field, BitField, BitEnumField, XBitField, ByteField, ByteEnumField, ShortField, ShortEnumField, IntField, IntEnumField, LongField, IEEEFloatField, StrField, StrLenField, StrFixedLenField, FieldLenField, FieldListField, PacketField, PacketListField, IPField, Fla... |
class ASPathSegmentPacketListField(PacketListField):
'''
PacketListField handling AS_PATH segments.
'''
def getfield(self, pkt, s):
pass | 2 | 1 | 20 | 4 | 14 | 2 | 3 | 0.33 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 51 | 25 | 5 | 15 | 7 | 13 | 5 | 14 | 7 | 12 | 3 | 7 | 2 | 3 |
25,191 | secdev/scapy | secdev_scapy/scapy/contrib/bgp.py | scapy.contrib.bgp.BGP | from scapy.packet import Packet, Packet_metaclass, bind_layers
class BGP(Packet):
"""
Every BGP message inherits from this class.
"""
OPEN_TYPE = 1
UPDATE_TYPE = 2
NOTIFICATION_TYPE = 3
KEEPALIVE_TYPE = 4
ROUTEREFRESH_TYPE = 5
@classmethod
def dispatch_hook(cls, _pkt=None, *arg... |
class BGP(Packet):
'''
Every BGP message inherits from this class.
'''
@classmethod
def dispatch_hook(cls, _pkt=None, *args, **kargs):
'''
Returns the right class for the given data.
'''
pass
def guess_payload_class(self, p):
pass | 4 | 2 | 6 | 1 | 4 | 2 | 2 | 0.57 | 1 | 1 | 1 | 5 | 1 | 0 | 2 | 121 | 27 | 5 | 14 | 10 | 10 | 8 | 13 | 9 | 10 | 2 | 4 | 1 | 3 |
25,192 | secdev/scapy | secdev_scapy/scapy/contrib/bgp.py | scapy.contrib.bgp.BGPAuthenticationInformation | from scapy.packet import Packet, Packet_metaclass, bind_layers
from scapy.fields import Field, BitField, BitEnumField, XBitField, ByteField, ByteEnumField, ShortField, ShortEnumField, IntField, IntEnumField, LongField, IEEEFloatField, StrField, StrLenField, StrFixedLenField, FieldLenField, FieldListField, PacketField, ... |
class BGPAuthenticationInformation(Packet):
'''
Provides an implementation of the Authentication Information optional
parameter, which is now obsolete.
References: RFC 1771, RFC 1654, RFC 4271
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 11 | 2 | 4 | 3 | 3 | 5 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
25,193 | secdev/scapy | secdev_scapy/scapy/contrib/bgp.py | scapy.contrib.bgp.BGPCapFourBytesASN | from scapy.fields import Field, BitField, BitEnumField, XBitField, ByteField, ByteEnumField, ShortField, ShortEnumField, IntField, IntEnumField, LongField, IEEEFloatField, StrField, StrLenField, StrFixedLenField, FieldLenField, FieldListField, PacketField, PacketListField, IPField, FlagsField, ConditionalField, MultiEn... |
class BGPCapFourBytesASN(BGPCapability):
'''
This class provides an implementation of the 4-octet AS number
capability.
References: RFC 4893
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.83 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 123 | 12 | 1 | 6 | 4 | 5 | 5 | 4 | 4 | 3 | 0 | 5 | 0 | 0 |
25,194 | secdev/scapy | secdev_scapy/scapy/contrib/bgp.py | scapy.contrib.bgp.BGPCapGeneric | from scapy.fields import Field, BitField, BitEnumField, XBitField, ByteField, ByteEnumField, ShortField, ShortEnumField, IntField, IntEnumField, LongField, IEEEFloatField, StrField, StrLenField, StrFixedLenField, FieldLenField, FieldListField, PacketField, PacketListField, IPField, FlagsField, ConditionalField, MultiEn... |
class BGPCapGeneric(BGPCapability):
'''
This class provides an implementation of a generic capability.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.33 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 123 | 13 | 1 | 9 | 4 | 8 | 3 | 4 | 4 | 3 | 0 | 5 | 0 | 0 |
25,195 | secdev/scapy | secdev_scapy/scapy/contrib/bgp.py | scapy.contrib.bgp.BGPCapMultiprotocol | from scapy.fields import Field, BitField, BitEnumField, XBitField, ByteField, ByteEnumField, ShortField, ShortEnumField, IntField, IntEnumField, LongField, IEEEFloatField, StrField, StrLenField, StrFixedLenField, FieldLenField, FieldListField, PacketField, PacketListField, IPField, FlagsField, ConditionalField, MultiEn... |
class BGPCapMultiprotocol(BGPCapability):
'''
This class provides an implementation of the Multiprotocol
capability.
References: RFC 4760
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 123 | 16 | 1 | 10 | 4 | 9 | 5 | 4 | 4 | 3 | 0 | 5 | 0 | 0 |
25,196 | secdev/scapy | secdev_scapy/scapy/contrib/bgp.py | scapy.contrib.bgp.BGPCapORF | from scapy.fields import Field, BitField, BitEnumField, XBitField, ByteField, ByteEnumField, ShortField, ShortEnumField, IntField, IntEnumField, LongField, IEEEFloatField, StrField, StrLenField, StrFixedLenField, FieldLenField, FieldListField, PacketField, PacketListField, IPField, FlagsField, ConditionalField, MultiEn... |
class BGPCapORF(BGPCapability):
'''
This class provides an implementation of the Outbound Route Filtering
capability.
References: RFC 5291
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.38 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 123 | 19 | 1 | 13 | 4 | 12 | 5 | 4 | 4 | 3 | 0 | 5 | 0 | 0 |
25,197 | secdev/scapy | secdev_scapy/scapy/contrib/bgp.py | scapy.contrib.bgp.BGPCapORFBlock | import struct
from scapy.fields import Field, BitField, BitEnumField, XBitField, ByteField, ByteEnumField, ShortField, ShortEnumField, IntField, IntEnumField, LongField, IEEEFloatField, StrField, StrLenField, StrFixedLenField, FieldLenField, FieldListField, PacketField, PacketListField, IPField, FlagsField, Conditional... |
class BGPCapORFBlock(Packet):
'''
The "ORFBlock" is made of <AFI, rsvd, SAFI, Number of ORFs, and
<ORF Type, Send/Receive> entries.
'''
class ORFTuple(Packet):
'''
Packet handling <ORF Types, Send/Receive> tuples.
'''
def post_build(self, p, pay):
pass | 3 | 2 | 6 | 0 | 6 | 1 | 2 | 0.29 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 120 | 43 | 4 | 31 | 8 | 28 | 9 | 12 | 8 | 9 | 2 | 4 | 1 | 2 |
25,198 | secdev/scapy | secdev_scapy/scapy/contrib/bgp.py | scapy.contrib.bgp.BGPCapORFBlockPacketListField | from scapy.compat import orb, chb
from scapy.fields import Field, BitField, BitEnumField, XBitField, ByteField, ByteEnumField, ShortField, ShortEnumField, IntField, IntEnumField, LongField, IEEEFloatField, StrField, StrLenField, StrFixedLenField, FieldLenField, FieldListField, PacketField, PacketListField, IPField, Fla... |
class BGPCapORFBlockPacketListField(PacketListField):
'''
Handles lists of BGPCapORFBlocks.
'''
def getfield(self, pkt, s):
pass | 2 | 1 | 21 | 3 | 16 | 2 | 4 | 0.29 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 51 | 26 | 4 | 17 | 9 | 15 | 5 | 17 | 9 | 15 | 4 | 7 | 1 | 4 |
25,199 | secdev/scapy | secdev_scapy/scapy/contrib/bgp.py | scapy.contrib.bgp.BGPCapability | from scapy.packet import Packet, Packet_metaclass, bind_layers
from scapy.compat import orb, chb
class BGPCapability(Packet, metaclass=_BGPCapability_metaclass):
"""
Generic BGP capability.
"""
@classmethod
def dispatch_hook(cls, _pkt=None, *args, **kargs):
"""
Returns the right cl... |
class BGPCapability(Packet, metaclass=_BGPCapability_metaclass):
'''
Generic BGP capability.
'''
@classmethod
def dispatch_hook(cls, _pkt=None, *args, **kargs):
'''
Returns the right class for the given data.
'''
pass
def pre_dissect(self, s):
'''
... | 5 | 3 | 8 | 0 | 5 | 3 | 2 | 0.65 | 2 | 1 | 1 | 5 | 2 | 0 | 3 | 123 | 32 | 4 | 17 | 8 | 12 | 11 | 16 | 7 | 12 | 2 | 4 | 1 | 5 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.