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,400 | secdev/scapy | secdev_scapy/scapy/asn1/asn1.py | scapy.asn1.asn1.ASN1_BIT_STRING | from scapy.compat import plain_str, bytes_encode, chb, orb
from typing import Any, AnyStr, Dict, Generic, List, Optional, Tuple, Type, Union, cast, TYPE_CHECKING
from scapy.utils import Enum_metaclass, EnumElement, binrepr
from scapy.error import Scapy_Exception, warning
class ASN1_BIT_STRING(ASN1_Object[str]):
""... |
class ASN1_BIT_STRING(ASN1_Object[str]):
'''
ASN1_BIT_STRING values are bit strings like "011101".
A zero-bit padded readable string is provided nonetheless,
which is stored in val_readable
'''
def __init__(self, val, readable=False):
pass
def __setattr__(self, name, value):
... | 5 | 2 | 17 | 0 | 15 | 3 | 4 | 0.29 | 1 | 4 | 0 | 1 | 4 | 2 | 4 | 34 | 79 | 4 | 63 | 15 | 58 | 18 | 48 | 15 | 43 | 8 | 4 | 4 | 16 |
24,401 | secdev/scapy | secdev_scapy/scapy/asn1/asn1.py | scapy.asn1.asn1.ASN1_BMP_STRING | class ASN1_BMP_STRING(ASN1_STRING):
tag = ASN1_Class_UNIVERSAL.BMP_STRING
def __setattr__(self, name, value):
if name == 'val':
if isinstance(value, str):
value = value.encode('utf-16be')
object.__setattr__(self, name, value)
else:
object.__se... | class ASN1_BMP_STRING(ASN1_STRING):
def __setattr__(self, name, value):
pass
def __repr__(self):
pass | 3 | 0 | 7 | 0 | 6 | 2 | 2 | 0.21 | 1 | 1 | 0 | 0 | 2 | 0 | 2 | 32 | 18 | 2 | 14 | 4 | 11 | 3 | 10 | 4 | 7 | 3 | 5 | 2 | 4 |
24,402 | secdev/scapy | secdev_scapy/scapy/asn1/asn1.py | scapy.asn1.asn1.ASN1_BOOLEAN | class ASN1_BOOLEAN(ASN1_INTEGER):
tag = ASN1_Class_UNIVERSAL.BOOLEAN
def __repr__(self):
return '%s %s' % (not self.val == 0, ASN1_Object.__repr__(self)) | class ASN1_BOOLEAN(ASN1_INTEGER):
def __repr__(self):
pass | 2 | 0 | 3 | 0 | 2 | 1 | 1 | 0.5 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 32 | 7 | 1 | 4 | 3 | 2 | 2 | 4 | 3 | 2 | 1 | 5 | 0 | 1 |
24,403 | secdev/scapy | secdev_scapy/scapy/asn1/asn1.py | scapy.asn1.asn1.ASN1_COUNTER64 | class ASN1_COUNTER64(ASN1_INTEGER):
tag = ASN1_Class_UNIVERSAL.COUNTER64 | class ASN1_COUNTER64(ASN1_INTEGER):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 31 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
24,404 | secdev/scapy | secdev_scapy/scapy/asn1/asn1.py | scapy.asn1.asn1.ASN1_Class_UNIVERSAL | from typing import Any, AnyStr, Dict, Generic, List, Optional, Tuple, Type, Union, cast, TYPE_CHECKING
class ASN1_Class_UNIVERSAL(ASN1_Class):
name = 'UNIVERSAL'
ERROR = cast(ASN1Tag, -3)
RAW = cast(ASN1Tag, -2)
NONE = cast(ASN1Tag, -1)
ANY = cast(ASN1Tag, 0)
BOOLEAN = cast(ASN1Tag, 1)
INTE... |
class ASN1_Class_UNIVERSAL(ASN1_Class):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.28 | 1 | 0 | 0 | 2 | 0 | 0 | 0 | 19 | 41 | 0 | 39 | 39 | 38 | 11 | 39 | 39 | 38 | 0 | 5 | 0 | 0 |
24,405 | secdev/scapy | secdev_scapy/scapy/asn1/asn1.py | scapy.asn1.asn1.ASN1_Class_metaclass | from scapy.utils import Enum_metaclass, EnumElement, binrepr
from typing import Any, AnyStr, Dict, Generic, List, Optional, Tuple, Type, Union, cast, TYPE_CHECKING
class ASN1_Class_metaclass(Enum_metaclass):
element_class = ASN1Tag
def __new__(cls, name, bases, dct):
for b in bases:
for k,... |
class ASN1_Class_metaclass(Enum_metaclass):
def __new__(cls, name, bases, dct):
pass | 2 | 0 | 28 | 2 | 24 | 5 | 9 | 0.23 | 1 | 2 | 1 | 1 | 1 | 0 | 1 | 19 | 32 | 3 | 26 | 11 | 20 | 6 | 20 | 7 | 18 | 9 | 3 | 3 | 9 |
24,406 | secdev/scapy | secdev_scapy/scapy/asn1/asn1.py | scapy.asn1.asn1.ASN1_Codecs | from typing import Any, AnyStr, Dict, Generic, List, Optional, Tuple, Type, Union, cast, TYPE_CHECKING
class ASN1_Codecs(metaclass=ASN1_Codecs_metaclass):
BER = cast(ASN1Codec, 1)
DER = cast(ASN1Codec, 2)
PER = cast(ASN1Codec, 3)
CER = cast(ASN1Codec, 4)
LWER = cast(ASN1Codec, 5)
BACnet = cast(... |
class ASN1_Codecs(metaclass=ASN1_Codecs_metaclass):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 18 | 10 | 0 | 10 | 10 | 9 | 0 | 10 | 10 | 9 | 0 | 4 | 0 | 0 |
24,407 | secdev/scapy | secdev_scapy/scapy/asn1/asn1.py | scapy.asn1.asn1.ASN1_Codecs_metaclass | from scapy.utils import Enum_metaclass, EnumElement, binrepr
class ASN1_Codecs_metaclass(Enum_metaclass):
element_class = ASN1Codec |
class ASN1_Codecs_metaclass(Enum_metaclass):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 18 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 3 | 0 | 0 |
24,408 | secdev/scapy | secdev_scapy/scapy/asn1/asn1.py | scapy.asn1.asn1.ASN1_DECODING_ERROR | class ASN1_DECODING_ERROR(_ASN1_ERROR):
tag = ASN1_Class_UNIVERSAL.ERROR
def __init__(self, val, exc=None):
ASN1_Object.__init__(self, val)
self.exc = exc
def __repr__(self):
return '<%s[%r]{{%r}}>' % (self.__dict__.get('name', self.__class__.__name__), self.val, self.exc and self.... | class ASN1_DECODING_ERROR(_ASN1_ERROR):
def __init__(self, val, exc=None):
pass
def __repr__(self):
pass
def enc(self, codec):
pass | 4 | 0 | 5 | 0 | 4 | 1 | 1 | 0.2 | 1 | 0 | 0 | 0 | 3 | 1 | 3 | 33 | 21 | 3 | 15 | 6 | 11 | 3 | 11 | 6 | 7 | 2 | 5 | 1 | 4 |
24,409 | secdev/scapy | secdev_scapy/scapy/asn1/asn1.py | scapy.asn1.asn1.ASN1_Error | from scapy.error import Scapy_Exception, warning
class ASN1_Error(Scapy_Exception):
pass |
class ASN1_Error(Scapy_Exception):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 | 0 | 0 | 0 | 10 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 4 | 0 | 0 |
24,410 | secdev/scapy | secdev_scapy/scapy/asn1/asn1.py | scapy.asn1.asn1.ASN1_GENERALIZED_TIME | from scapy.compat import plain_str, bytes_encode, chb, orb
from datetime import datetime, timedelta, tzinfo
class ASN1_GENERALIZED_TIME(ASN1_STRING):
"""
Improved version of ASN1_GENERALIZED_TIME, properly handling time zones and
all string representation formats defined by ASN.1. These are:
1. Local ... |
class ASN1_GENERALIZED_TIME(ASN1_STRING):
'''
Improved version of ASN1_GENERALIZED_TIME, properly handling time zones and
all string representation formats defined by ASN.1. These are:
1. Local time only: YYYYMMDDHH[MM[SS[.fff]]]
2. Universal time (UTC time) only: YYY... | 4 | 1 | 31 | 2 | 27 | 2 | 9 | 0.2 | 1 | 8 | 1 | 1 | 3 | 0 | 3 | 33 | 114 | 14 | 85 | 15 | 81 | 17 | 62 | 15 | 58 | 23 | 5 | 4 | 26 |
24,411 | secdev/scapy | secdev_scapy/scapy/asn1/asn1.py | scapy.asn1.asn1.ASN1_GENERAL_STRING | class ASN1_GENERAL_STRING(ASN1_STRING):
tag = ASN1_Class_UNIVERSAL.GENERAL_STRING | class ASN1_GENERAL_STRING(ASN1_STRING):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 30 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
24,412 | secdev/scapy | secdev_scapy/scapy/asn1/asn1.py | scapy.asn1.asn1.ASN1_INTEGER | class ASN1_INTEGER(ASN1_Object[int]):
tag = ASN1_Class_UNIVERSAL.INTEGER
def __repr__(self):
h = hex(self.val)
if h[-1] == 'L':
h = h[:-1]
if len(h) > 22:
h = h[:12] + '...' + h[-10:]
r = repr(self.val)
if len(r) > 20:
r = r[:10] + '..... | class ASN1_INTEGER(ASN1_Object[int]):
def __repr__(self):
pass | 2 | 0 | 12 | 0 | 10 | 3 | 4 | 0.25 | 1 | 0 | 0 | 6 | 1 | 0 | 1 | 31 | 15 | 1 | 12 | 5 | 10 | 3 | 12 | 5 | 10 | 4 | 4 | 1 | 4 |
24,413 | secdev/scapy | secdev_scapy/scapy/asn1/asn1.py | scapy.asn1.asn1.ASN1_ISO646_STRING | class ASN1_ISO646_STRING(ASN1_STRING):
tag = ASN1_Class_UNIVERSAL.ISO646_STRING | class ASN1_ISO646_STRING(ASN1_STRING):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 30 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
24,414 | secdev/scapy | secdev_scapy/scapy/asn1/asn1.py | scapy.asn1.asn1.ASN1_NULL | class ASN1_NULL(ASN1_Object[None]):
tag = ASN1_Class_UNIVERSAL.NULL
def __repr__(self):
return ASN1_Object.__repr__(self) | class ASN1_NULL(ASN1_Object[None]):
def __repr__(self):
pass | 2 | 0 | 3 | 0 | 2 | 1 | 1 | 0.25 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 31 | 6 | 1 | 4 | 3 | 2 | 1 | 4 | 3 | 2 | 1 | 4 | 0 | 1 |
24,415 | secdev/scapy | secdev_scapy/scapy/asn1/asn1.py | scapy.asn1.asn1.ASN1_OID | from scapy.config import conf
from scapy.compat import plain_str, bytes_encode, chb, orb
class ASN1_OID(ASN1_Object[str]):
tag = ASN1_Class_UNIVERSAL.OID
def __init__(self, val):
val = plain_str(val)
val = conf.mib._oid(val)
ASN1_Object.__init__(self, val)
self.oidname = conf.m... |
class ASN1_OID(ASN1_Object[str]):
def __init__(self, val):
pass
def __repr__(self):
pass | 3 | 0 | 5 | 0 | 4 | 2 | 1 | 0.33 | 1 | 0 | 0 | 0 | 2 | 1 | 2 | 32 | 13 | 2 | 9 | 5 | 6 | 3 | 9 | 5 | 6 | 1 | 4 | 0 | 2 |
24,416 | secdev/scapy | secdev_scapy/scapy/asn1/asn1.py | scapy.asn1.asn1.ASN1_Object | from scapy.compat import plain_str, bytes_encode, chb, orb
from typing import Any, AnyStr, Dict, Generic, List, Optional, Tuple, Type, Union, cast, TYPE_CHECKING
from scapy.config import conf
class ASN1_Object(Generic[_K], metaclass=ASN1_Object_metaclass):
tag = ASN1_Class_UNIVERSAL.ANY
def __init__(self, val... |
class ASN1_Object(Generic[_K], metaclass=ASN1_Object_metaclass):
def __init__(self, val):
pass
def enc(self, codec):
pass
def __repr__(self):
pass
def __str__(self):
pass
def __bytes__(self):
pass
def strshow(self, lvl=0):
pass
def show... | 15 | 0 | 4 | 0 | 3 | 1 | 1 | 0.41 | 2 | 2 | 0 | 7 | 14 | 1 | 14 | 30 | 65 | 14 | 37 | 18 | 22 | 15 | 35 | 18 | 20 | 3 | 3 | 2 | 16 |
24,417 | secdev/scapy | secdev_scapy/scapy/asn1/asn1.py | scapy.asn1.asn1.ASN1_Object_metaclass | from scapy.error import Scapy_Exception, warning
from typing import Any, AnyStr, Dict, Generic, List, Optional, Tuple, Type, Union, cast, TYPE_CHECKING
class ASN1_Object_metaclass(type):
def __new__(cls, name, bases, dct):
c = cast('Type[ASN1_Object[Any]]', super(ASN1_Object_metaclass, cls).__new__(cls, n... |
class ASN1_Object_metaclass(type):
def __new__(cls, name, bases, dct):
pass | 2 | 0 | 15 | 0 | 14 | 4 | 2 | 0.27 | 1 | 2 | 0 | 1 | 1 | 0 | 1 | 14 | 16 | 0 | 15 | 7 | 9 | 4 | 8 | 3 | 6 | 2 | 2 | 1 | 2 |
24,418 | secdev/scapy | secdev_scapy/scapy/asn1/asn1.py | scapy.asn1.asn1.ASN1_SEQUENCE | from typing import Any, AnyStr, Dict, Generic, List, Optional, Tuple, Type, Union, cast, TYPE_CHECKING
class ASN1_SEQUENCE(ASN1_Object[List[Any]]):
tag = ASN1_Class_UNIVERSAL.SEQUENCE
def strshow(self, lvl=0):
s = ' ' * lvl + '# %s:' % self.__class__.__name__ + '\n'
for o in self.val:
... |
class ASN1_SEQUENCE(ASN1_Object[List[Any]]):
def strshow(self, lvl=0):
pass | 2 | 0 | 6 | 0 | 5 | 2 | 2 | 0.29 | 1 | 0 | 0 | 10 | 1 | 0 | 1 | 31 | 9 | 1 | 7 | 5 | 5 | 2 | 7 | 5 | 5 | 2 | 4 | 1 | 2 |
24,419 | secdev/scapy | secdev_scapy/scapy/asn1/asn1.py | scapy.asn1.asn1.ASN1_STRING | class ASN1_STRING(ASN1_Object[str]):
tag = ASN1_Class_UNIVERSAL.STRING | class ASN1_STRING(ASN1_Object[str]):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 18 | 0 | 0 | 0 | 30 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
24,420 | secdev/scapy | secdev_scapy/scapy/asn1/asn1.py | scapy.asn1.asn1.ASN1_UNIVERSAL_STRING | class ASN1_UNIVERSAL_STRING(ASN1_STRING):
tag = ASN1_Class_UNIVERSAL.UNIVERSAL_STRING | class ASN1_UNIVERSAL_STRING(ASN1_STRING):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 30 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
24,421 | secdev/scapy | secdev_scapy/scapy/asn1/asn1.py | scapy.asn1.asn1.ASN1_UTC_TIME | class ASN1_UTC_TIME(ASN1_GENERALIZED_TIME):
tag = ASN1_Class_UNIVERSAL.UTC_TIME | class ASN1_UTC_TIME(ASN1_GENERALIZED_TIME):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 33 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 6 | 0 | 0 |
24,422 | secdev/scapy | secdev_scapy/scapy/asn1/asn1.py | scapy.asn1.asn1.ASN1_UTF8_STRING | class ASN1_UTF8_STRING(ASN1_STRING):
tag = ASN1_Class_UNIVERSAL.UTF8_STRING | class ASN1_UTF8_STRING(ASN1_STRING):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 30 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
24,423 | secdev/scapy | secdev_scapy/scapy/asn1/asn1.py | scapy.asn1.asn1.ASN1_force | class ASN1_force(_ASN1_ERROR):
tag = ASN1_Class_UNIVERSAL.RAW
def enc(self, codec):
if isinstance(self.val, ASN1_Object):
return self.val.enc(codec)
return self.val | class ASN1_force(_ASN1_ERROR):
def enc(self, codec):
pass | 2 | 0 | 5 | 0 | 4 | 1 | 2 | 0.17 | 1 | 0 | 0 | 1 | 1 | 0 | 1 | 31 | 8 | 1 | 6 | 3 | 4 | 1 | 6 | 3 | 4 | 2 | 5 | 1 | 2 |
24,424 | secdev/scapy | secdev_scapy/scapy/asn1/asn1.py | scapy.asn1.asn1.RandASN1Object | from scapy.volatile import RandField, RandIP, GeneralizedTime
import random
class RandASN1Object(RandField['ASN1_Object[Any]']):
def __init__(self, objlist=None):
if objlist:
self.objlist = objlist
else:
self.objlist = [x._asn1_obj for x in ASN1_Class_UNIVERSAL.__rdict__.va... |
class RandASN1Object(RandField['ASN1_Object[Any]']):
def __init__(self, objlist=None):
pass
def _fix(self, n=0):
pass | 3 | 0 | 14 | 0 | 13 | 2 | 4 | 0.15 | 1 | 11 | 9 | 0 | 2 | 2 | 2 | 15 | 30 | 1 | 27 | 9 | 24 | 4 | 17 | 8 | 14 | 6 | 3 | 1 | 8 |
24,425 | secdev/scapy | secdev_scapy/scapy/asn1/asn1.py | scapy.asn1.asn1._ASN1_ERROR | from typing import Any, AnyStr, Dict, Generic, List, Optional, Tuple, Type, Union, cast, TYPE_CHECKING
class _ASN1_ERROR(ASN1_Object[Union[bytes, ASN1_Object[Any]]]):
pass |
class _ASN1_ERROR(ASN1_Object[Union[bytes, ASN1_Object[Any]]]):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 | 0 | 0 | 0 | 30 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 4 | 0 | 0 |
24,426 | secdev/scapy | secdev_scapy/scapy/asn1/ber.py | scapy.asn1.ber.BER_BadTag_Decoding_Error | from scapy.asn1.asn1 import ASN1Tag, ASN1_BADTAG, ASN1_BadTag_Decoding_Error, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Codecs, ASN1_DECODING_ERROR, ASN1_Decoding_Error, ASN1_Encoding_Error, ASN1_Error, ASN1_Object, _ASN1_ERROR
class BER_BadTag_Decoding_Error(BER_Decoding_Error, ASN1_BadTag_Decoding_Error):
pass |
class BER_BadTag_Decoding_Error(BER_Decoding_Error, ASN1_BadTag_Decoding_Error):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 3 | 0 | 3 | 2 | 1 | 0 | 2 | 1 | 1 | 0 | 2 | 0 | 0 |
24,427 | secdev/scapy | secdev_scapy/scapy/asn1/ber.py | scapy.asn1.ber.BER_Decoding_Error | from scapy.asn1.asn1 import ASN1Tag, ASN1_BADTAG, ASN1_BadTag_Decoding_Error, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Codecs, ASN1_DECODING_ERROR, ASN1_Decoding_Error, ASN1_Encoding_Error, ASN1_Error, ASN1_Object, _ASN1_ERROR
class BER_Decoding_Error(ASN1_Decoding_Error):
def __init__(self, msg, decoded=None, rema... |
class BER_Decoding_Error(ASN1_Decoding_Error):
def __init__(self, msg, decoded=None, remaining=b''):
pass
def __str__(self):
pass | 3 | 0 | 9 | 0 | 8 | 4 | 2 | 0.47 | 1 | 1 | 0 | 1 | 2 | 2 | 2 | 2 | 20 | 1 | 17 | 10 | 10 | 8 | 12 | 6 | 9 | 2 | 1 | 1 | 3 |
24,428 | secdev/scapy | secdev_scapy/scapy/asn1/ber.py | scapy.asn1.ber.BER_Encoding_Error | from scapy.asn1.asn1 import ASN1Tag, ASN1_BADTAG, ASN1_BadTag_Decoding_Error, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Codecs, ASN1_DECODING_ERROR, ASN1_Decoding_Error, ASN1_Encoding_Error, ASN1_Error, ASN1_Object, _ASN1_ERROR
class BER_Encoding_Error(ASN1_Encoding_Error):
def __init__(self, msg, encoded=None, rema... |
class BER_Encoding_Error(ASN1_Encoding_Error):
def __init__(self, msg, encoded=None, remaining=b''):
pass
def __str__(self):
pass | 3 | 0 | 9 | 0 | 8 | 4 | 2 | 0.47 | 1 | 1 | 0 | 0 | 2 | 2 | 2 | 2 | 20 | 1 | 17 | 10 | 10 | 8 | 12 | 6 | 9 | 2 | 1 | 1 | 3 |
24,429 | secdev/scapy | secdev_scapy/scapy/asn1/ber.py | scapy.asn1.ber.BERcodec_BIT_STRING | from scapy.utils import binrepr, inet_aton, inet_ntoa
from scapy.compat import chb, orb, bytes_encode
from scapy.asn1.asn1 import ASN1Tag, ASN1_BADTAG, ASN1_BadTag_Decoding_Error, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Codecs, ASN1_DECODING_ERROR, ASN1_Decoding_Error, ASN1_Encoding_Error, ASN1_Error, ASN1_Object, _ASN1... |
class BERcodec_BIT_STRING(BERcodec_Object[str]):
@classmethod
def do_dec(cls, s, context=None, safe=False):
pass
@classmethod
def enc(cls, _s, size_len=0):
pass | 5 | 0 | 19 | 0 | 17 | 4 | 3 | 0.18 | 1 | 3 | 1 | 0 | 0 | 0 | 2 | 27 | 44 | 2 | 38 | 15 | 29 | 7 | 22 | 9 | 19 | 4 | 4 | 2 | 6 |
24,430 | secdev/scapy | secdev_scapy/scapy/asn1/ber.py | scapy.asn1.ber.BERcodec_BMP_STRING | from scapy.asn1.asn1 import ASN1Tag, ASN1_BADTAG, ASN1_BadTag_Decoding_Error, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Codecs, ASN1_DECODING_ERROR, ASN1_Decoding_Error, ASN1_Encoding_Error, ASN1_Error, ASN1_Object, _ASN1_ERROR
class BERcodec_BMP_STRING(BERcodec_STRING):
tag = ASN1_Class_UNIVERSAL.BMP_STRING |
class BERcodec_BMP_STRING(BERcodec_STRING):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 27 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
24,431 | secdev/scapy | secdev_scapy/scapy/asn1/ber.py | scapy.asn1.ber.BERcodec_BOOLEAN | from scapy.asn1.asn1 import ASN1Tag, ASN1_BADTAG, ASN1_BadTag_Decoding_Error, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Codecs, ASN1_DECODING_ERROR, ASN1_Decoding_Error, ASN1_Encoding_Error, ASN1_Error, ASN1_Object, _ASN1_ERROR
class BERcodec_BOOLEAN(BERcodec_INTEGER):
tag = ASN1_Class_UNIVERSAL.BOOLEAN |
class BERcodec_BOOLEAN(BERcodec_INTEGER):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 27 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
24,432 | secdev/scapy | secdev_scapy/scapy/asn1/ber.py | scapy.asn1.ber.BERcodec_COUNTER32 | from scapy.asn1.asn1 import ASN1Tag, ASN1_BADTAG, ASN1_BadTag_Decoding_Error, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Codecs, ASN1_DECODING_ERROR, ASN1_Decoding_Error, ASN1_Encoding_Error, ASN1_Error, ASN1_Object, _ASN1_ERROR
class BERcodec_COUNTER32(BERcodec_INTEGER):
tag = ASN1_Class_UNIVERSAL.COUNTER32 |
class BERcodec_COUNTER32(BERcodec_INTEGER):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 27 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
24,433 | secdev/scapy | secdev_scapy/scapy/asn1/ber.py | scapy.asn1.ber.BERcodec_COUNTER64 | from scapy.asn1.asn1 import ASN1Tag, ASN1_BADTAG, ASN1_BadTag_Decoding_Error, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Codecs, ASN1_DECODING_ERROR, ASN1_Decoding_Error, ASN1_Encoding_Error, ASN1_Error, ASN1_Object, _ASN1_ERROR
class BERcodec_COUNTER64(BERcodec_INTEGER):
tag = ASN1_Class_UNIVERSAL.COUNTER64 |
class BERcodec_COUNTER64(BERcodec_INTEGER):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 27 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
24,434 | secdev/scapy | secdev_scapy/scapy/asn1/ber.py | scapy.asn1.ber.BERcodec_ENUMERATED | from scapy.asn1.asn1 import ASN1Tag, ASN1_BADTAG, ASN1_BadTag_Decoding_Error, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Codecs, ASN1_DECODING_ERROR, ASN1_Decoding_Error, ASN1_Encoding_Error, ASN1_Error, ASN1_Object, _ASN1_ERROR
class BERcodec_ENUMERATED(BERcodec_INTEGER):
tag = ASN1_Class_UNIVERSAL.ENUMERATED |
class BERcodec_ENUMERATED(BERcodec_INTEGER):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 27 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
24,435 | secdev/scapy | secdev_scapy/scapy/asn1/ber.py | scapy.asn1.ber.BERcodec_GAUGE32 | from scapy.asn1.asn1 import ASN1Tag, ASN1_BADTAG, ASN1_BadTag_Decoding_Error, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Codecs, ASN1_DECODING_ERROR, ASN1_Decoding_Error, ASN1_Encoding_Error, ASN1_Error, ASN1_Object, _ASN1_ERROR
class BERcodec_GAUGE32(BERcodec_INTEGER):
tag = ASN1_Class_UNIVERSAL.GAUGE32 |
class BERcodec_GAUGE32(BERcodec_INTEGER):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 27 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
24,436 | secdev/scapy | secdev_scapy/scapy/asn1/ber.py | scapy.asn1.ber.BERcodec_GENERALIZED_TIME | from scapy.asn1.asn1 import ASN1Tag, ASN1_BADTAG, ASN1_BadTag_Decoding_Error, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Codecs, ASN1_DECODING_ERROR, ASN1_Decoding_Error, ASN1_Encoding_Error, ASN1_Error, ASN1_Object, _ASN1_ERROR
class BERcodec_GENERALIZED_TIME(BERcodec_STRING):
tag = ASN1_Class_UNIVERSAL.GENERALIZED_T... |
class BERcodec_GENERALIZED_TIME(BERcodec_STRING):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 27 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
24,437 | secdev/scapy | secdev_scapy/scapy/asn1/ber.py | scapy.asn1.ber.BERcodec_GENERAL_STRING | from scapy.asn1.asn1 import ASN1Tag, ASN1_BADTAG, ASN1_BadTag_Decoding_Error, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Codecs, ASN1_DECODING_ERROR, ASN1_Decoding_Error, ASN1_Encoding_Error, ASN1_Error, ASN1_Object, _ASN1_ERROR
class BERcodec_GENERAL_STRING(BERcodec_STRING):
tag = ASN1_Class_UNIVERSAL.GENERAL_STRING |
class BERcodec_GENERAL_STRING(BERcodec_STRING):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 27 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
24,438 | secdev/scapy | secdev_scapy/scapy/asn1/ber.py | scapy.asn1.ber.BERcodec_IA5_STRING | from scapy.asn1.asn1 import ASN1Tag, ASN1_BADTAG, ASN1_BadTag_Decoding_Error, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Codecs, ASN1_DECODING_ERROR, ASN1_Decoding_Error, ASN1_Encoding_Error, ASN1_Error, ASN1_Object, _ASN1_ERROR
class BERcodec_IA5_STRING(BERcodec_STRING):
tag = ASN1_Class_UNIVERSAL.IA5_STRING |
class BERcodec_IA5_STRING(BERcodec_STRING):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 27 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
24,439 | secdev/scapy | secdev_scapy/scapy/asn1/ber.py | scapy.asn1.ber.BERcodec_INTEGER | from scapy.compat import chb, orb, bytes_encode
from scapy.asn1.asn1 import ASN1Tag, ASN1_BADTAG, ASN1_BadTag_Decoding_Error, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Codecs, ASN1_DECODING_ERROR, ASN1_Decoding_Error, ASN1_Encoding_Error, ASN1_Error, ASN1_Object, _ASN1_ERROR
class BERcodec_INTEGER(BERcodec_Object[int]):
... |
class BERcodec_INTEGER(BERcodec_Object[int]):
@classmethod
def enc(cls, i, size_len=0):
pass
@classmethod
def do_dec(cls, s, context=None, safe=False):
pass | 5 | 0 | 16 | 0 | 15 | 3 | 5 | 0.18 | 1 | 1 | 0 | 7 | 0 | 0 | 2 | 27 | 38 | 2 | 34 | 15 | 25 | 6 | 28 | 9 | 25 | 5 | 4 | 2 | 9 |
24,440 | secdev/scapy | secdev_scapy/scapy/asn1/ber.py | scapy.asn1.ber.BERcodec_IPADDRESS | from scapy.asn1.asn1 import ASN1Tag, ASN1_BADTAG, ASN1_BadTag_Decoding_Error, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Codecs, ASN1_DECODING_ERROR, ASN1_Decoding_Error, ASN1_Encoding_Error, ASN1_Error, ASN1_Object, _ASN1_ERROR
from scapy.utils import binrepr, inet_aton, inet_ntoa
from scapy.compat import chb, orb, bytes_... |
class BERcodec_IPADDRESS(BERcodec_STRING):
@classmethod
def enc(cls, ipaddr_ascii, size_len=0):
pass
@classmethod
def do_dec(cls, s, context=None, safe=False):
pass | 5 | 0 | 8 | 0 | 7 | 2 | 2 | 0.17 | 1 | 4 | 2 | 0 | 0 | 0 | 2 | 29 | 22 | 2 | 18 | 9 | 13 | 3 | 15 | 7 | 12 | 2 | 5 | 1 | 4 |
24,441 | secdev/scapy | secdev_scapy/scapy/asn1/ber.py | scapy.asn1.ber.BERcodec_ISO646_STRING | from scapy.asn1.asn1 import ASN1Tag, ASN1_BADTAG, ASN1_BadTag_Decoding_Error, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Codecs, ASN1_DECODING_ERROR, ASN1_Decoding_Error, ASN1_Encoding_Error, ASN1_Error, ASN1_Object, _ASN1_ERROR
class BERcodec_ISO646_STRING(BERcodec_STRING):
tag = ASN1_Class_UNIVERSAL.ISO646_STRING |
class BERcodec_ISO646_STRING(BERcodec_STRING):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 27 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
24,442 | secdev/scapy | secdev_scapy/scapy/asn1/ber.py | scapy.asn1.ber.BERcodec_NULL | from scapy.asn1.asn1 import ASN1Tag, ASN1_BADTAG, ASN1_BadTag_Decoding_Error, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Codecs, ASN1_DECODING_ERROR, ASN1_Decoding_Error, ASN1_Encoding_Error, ASN1_Error, ASN1_Object, _ASN1_ERROR
from scapy.compat import chb, orb, bytes_encode
class BERcodec_NULL(BERcodec_INTEGER):
tag... |
class BERcodec_NULL(BERcodec_INTEGER):
@classmethod
def enc(cls, i, size_len=0):
pass | 3 | 0 | 6 | 0 | 5 | 1 | 2 | 0.13 | 1 | 2 | 0 | 0 | 0 | 0 | 1 | 28 | 10 | 1 | 8 | 4 | 5 | 1 | 6 | 3 | 4 | 2 | 5 | 1 | 2 |
24,443 | secdev/scapy | secdev_scapy/scapy/asn1/ber.py | scapy.asn1.ber.BERcodec_NUMERIC_STRING | from scapy.asn1.asn1 import ASN1Tag, ASN1_BADTAG, ASN1_BadTag_Decoding_Error, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Codecs, ASN1_DECODING_ERROR, ASN1_Decoding_Error, ASN1_Encoding_Error, ASN1_Error, ASN1_Object, _ASN1_ERROR
class BERcodec_NUMERIC_STRING(BERcodec_STRING):
tag = ASN1_Class_UNIVERSAL.NUMERIC_STRING |
class BERcodec_NUMERIC_STRING(BERcodec_STRING):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 27 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
24,444 | secdev/scapy | secdev_scapy/scapy/asn1/ber.py | scapy.asn1.ber.BERcodec_OID | from scapy.asn1.asn1 import ASN1Tag, ASN1_BADTAG, ASN1_BadTag_Decoding_Error, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Codecs, ASN1_DECODING_ERROR, ASN1_Decoding_Error, ASN1_Encoding_Error, ASN1_Error, ASN1_Object, _ASN1_ERROR
from scapy.compat import chb, orb, bytes_encode
class BERcodec_OID(BERcodec_Object[bytes]):
... |
class BERcodec_OID(BERcodec_Object[bytes]):
@classmethod
def enc(cls, _oid, size_len=0):
pass
@classmethod
def do_dec(cls, s, context=None, safe=False):
pass | 5 | 0 | 15 | 0 | 14 | 3 | 3 | 0.16 | 1 | 3 | 0 | 0 | 0 | 0 | 2 | 27 | 36 | 2 | 32 | 15 | 23 | 5 | 22 | 9 | 19 | 3 | 4 | 1 | 6 |
24,445 | secdev/scapy | secdev_scapy/scapy/asn1/ber.py | scapy.asn1.ber.BERcodec_Object | from scapy.asn1.asn1 import ASN1Tag, ASN1_BADTAG, ASN1_BadTag_Decoding_Error, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Codecs, ASN1_DECODING_ERROR, ASN1_Decoding_Error, ASN1_Encoding_Error, ASN1_Error, ASN1_Object, _ASN1_ERROR
from typing import Any, AnyStr, Dict, Generic, List, Optional, Tuple, Type, TypeVar, Union, cas... |
class BERcodec_Object(Generic[_K], metaclass=BERcodec_metaclass):
@classmethod
def asn1_object(cls, val):
pass
@classmethod
def check_string(cls, s):
pass
@classmethod
def check_type(cls, s):
pass
@classmethod
def check_type_get_len(cls, s):
pass
@cl... | 19 | 0 | 10 | 0 | 9 | 2 | 3 | 0.22 | 2 | 8 | 4 | 5 | 0 | 0 | 9 | 25 | 115 | 9 | 96 | 43 | 66 | 21 | 62 | 22 | 52 | 5 | 3 | 2 | 23 |
24,446 | secdev/scapy | secdev_scapy/scapy/asn1/ber.py | scapy.asn1.ber.BERcodec_PRINTABLE_STRING | from scapy.asn1.asn1 import ASN1Tag, ASN1_BADTAG, ASN1_BadTag_Decoding_Error, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Codecs, ASN1_DECODING_ERROR, ASN1_Decoding_Error, ASN1_Encoding_Error, ASN1_Error, ASN1_Object, _ASN1_ERROR
class BERcodec_PRINTABLE_STRING(BERcodec_STRING):
tag = ASN1_Class_UNIVERSAL.PRINTABLE_STR... |
class BERcodec_PRINTABLE_STRING(BERcodec_STRING):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 27 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
24,447 | secdev/scapy | secdev_scapy/scapy/asn1/ber.py | scapy.asn1.ber.BERcodec_SEQUENCE | from typing import Any, AnyStr, Dict, Generic, List, Optional, Tuple, Type, TypeVar, Union, cast
from scapy.asn1.asn1 import ASN1Tag, ASN1_BADTAG, ASN1_BadTag_Decoding_Error, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Codecs, ASN1_DECODING_ERROR, ASN1_Decoding_Error, ASN1_Encoding_Error, ASN1_Error, ASN1_Object, _ASN1_ERRO... |
class BERcodec_SEQUENCE(BERcodec_Object[Union[bytes, List[BERcodec_Object[Any]]]]):
@classmethod
def enc(cls, _ll, size_len=0):
pass
@classmethod
def do_dec(cls, s, context=None, safe=False):
pass | 5 | 0 | 18 | 0 | 17 | 4 | 4 | 0.22 | 1 | 3 | 1 | 10 | 0 | 0 | 2 | 27 | 41 | 2 | 37 | 16 | 28 | 8 | 27 | 9 | 24 | 6 | 4 | 3 | 8 |
24,448 | secdev/scapy | secdev_scapy/scapy/asn1/ber.py | scapy.asn1.ber.BERcodec_SET | from scapy.asn1.asn1 import ASN1Tag, ASN1_BADTAG, ASN1_BadTag_Decoding_Error, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Codecs, ASN1_DECODING_ERROR, ASN1_Decoding_Error, ASN1_Encoding_Error, ASN1_Error, ASN1_Object, _ASN1_ERROR
class BERcodec_SET(BERcodec_SEQUENCE):
tag = ASN1_Class_UNIVERSAL.SET |
class BERcodec_SET(BERcodec_SEQUENCE):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 27 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
24,449 | secdev/scapy | secdev_scapy/scapy/asn1/ber.py | scapy.asn1.ber.BERcodec_STRING | from scapy.compat import chb, orb, bytes_encode
from scapy.asn1.asn1 import ASN1Tag, ASN1_BADTAG, ASN1_BadTag_Decoding_Error, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Codecs, ASN1_DECODING_ERROR, ASN1_Decoding_Error, ASN1_Encoding_Error, ASN1_Error, ASN1_Object, _ASN1_ERROR
class BERcodec_STRING(BERcodec_Object[str]):
... |
class BERcodec_STRING(BERcodec_Object[str]):
@classmethod
def enc(cls, _s, size_len=0):
pass
@classmethod
def do_dec(cls, s, context=None, safe=False):
pass | 5 | 0 | 7 | 0 | 5 | 3 | 1 | 0.43 | 1 | 1 | 0 | 19 | 0 | 0 | 2 | 27 | 19 | 2 | 14 | 12 | 5 | 6 | 8 | 6 | 5 | 1 | 4 | 0 | 2 |
24,450 | secdev/scapy | secdev_scapy/scapy/asn1/ber.py | scapy.asn1.ber.BERcodec_T61_STRING | from scapy.asn1.asn1 import ASN1Tag, ASN1_BADTAG, ASN1_BadTag_Decoding_Error, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Codecs, ASN1_DECODING_ERROR, ASN1_Decoding_Error, ASN1_Encoding_Error, ASN1_Error, ASN1_Object, _ASN1_ERROR
class BERcodec_T61_STRING(BERcodec_STRING):
tag = ASN1_Class_UNIVERSAL.T61_STRING |
class BERcodec_T61_STRING(BERcodec_STRING):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 27 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
24,451 | secdev/scapy | secdev_scapy/scapy/asn1/ber.py | scapy.asn1.ber.BERcodec_TIME_TICKS | from scapy.asn1.asn1 import ASN1Tag, ASN1_BADTAG, ASN1_BadTag_Decoding_Error, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Codecs, ASN1_DECODING_ERROR, ASN1_Decoding_Error, ASN1_Encoding_Error, ASN1_Error, ASN1_Object, _ASN1_ERROR
class BERcodec_TIME_TICKS(BERcodec_INTEGER):
tag = ASN1_Class_UNIVERSAL.TIME_TICKS |
class BERcodec_TIME_TICKS(BERcodec_INTEGER):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 27 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
24,452 | secdev/scapy | secdev_scapy/scapy/asn1/ber.py | scapy.asn1.ber.BERcodec_UNIVERSAL_STRING | from scapy.asn1.asn1 import ASN1Tag, ASN1_BADTAG, ASN1_BadTag_Decoding_Error, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Codecs, ASN1_DECODING_ERROR, ASN1_Decoding_Error, ASN1_Encoding_Error, ASN1_Error, ASN1_Object, _ASN1_ERROR
class BERcodec_UNIVERSAL_STRING(BERcodec_STRING):
tag = ASN1_Class_UNIVERSAL.UNIVERSAL_STR... |
class BERcodec_UNIVERSAL_STRING(BERcodec_STRING):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 27 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
24,453 | secdev/scapy | secdev_scapy/scapy/asn1/ber.py | scapy.asn1.ber.BERcodec_UTC_TIME | from scapy.asn1.asn1 import ASN1Tag, ASN1_BADTAG, ASN1_BadTag_Decoding_Error, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Codecs, ASN1_DECODING_ERROR, ASN1_Decoding_Error, ASN1_Encoding_Error, ASN1_Error, ASN1_Object, _ASN1_ERROR
class BERcodec_UTC_TIME(BERcodec_STRING):
tag = ASN1_Class_UNIVERSAL.UTC_TIME |
class BERcodec_UTC_TIME(BERcodec_STRING):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 27 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
24,454 | secdev/scapy | secdev_scapy/scapy/asn1/ber.py | scapy.asn1.ber.BERcodec_UTF8_STRING | from scapy.asn1.asn1 import ASN1Tag, ASN1_BADTAG, ASN1_BadTag_Decoding_Error, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Codecs, ASN1_DECODING_ERROR, ASN1_Decoding_Error, ASN1_Encoding_Error, ASN1_Error, ASN1_Object, _ASN1_ERROR
class BERcodec_UTF8_STRING(BERcodec_STRING):
tag = ASN1_Class_UNIVERSAL.UTF8_STRING |
class BERcodec_UTF8_STRING(BERcodec_STRING):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 27 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
24,455 | secdev/scapy | secdev_scapy/scapy/asn1/ber.py | scapy.asn1.ber.BERcodec_VIDEOTEX_STRING | from scapy.asn1.asn1 import ASN1Tag, ASN1_BADTAG, ASN1_BadTag_Decoding_Error, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Codecs, ASN1_DECODING_ERROR, ASN1_Decoding_Error, ASN1_Encoding_Error, ASN1_Error, ASN1_Object, _ASN1_ERROR
class BERcodec_VIDEOTEX_STRING(BERcodec_STRING):
tag = ASN1_Class_UNIVERSAL.VIDEOTEX_STRIN... |
class BERcodec_VIDEOTEX_STRING(BERcodec_STRING):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 27 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
24,456 | secdev/scapy | secdev_scapy/scapy/asn1/ber.py | scapy.asn1.ber.BERcodec_metaclass | from scapy.error import warning
from typing import Any, AnyStr, Dict, Generic, List, Optional, Tuple, Type, TypeVar, Union, cast
class BERcodec_metaclass(type):
def __new__(cls, name, bases, dct):
c = cast('Type[BERcodec_Object[Any]]', super(BERcodec_metaclass, cls).__new__(cls, name, bases, dct))
... |
class BERcodec_metaclass(type):
def __new__(cls, name, bases, dct):
pass | 2 | 0 | 13 | 0 | 12 | 4 | 2 | 0.31 | 1 | 2 | 0 | 1 | 1 | 0 | 1 | 14 | 14 | 0 | 13 | 7 | 7 | 4 | 8 | 3 | 6 | 2 | 2 | 1 | 2 |
24,457 | secdev/scapy | secdev_scapy/scapy/asn1/mib.py | scapy.asn1.mib.MIBDict | from scapy.dadict import DADict, fixname
from scapy.utils import do_graph
class MIBDict(DADict[str, str]):
def _findroot(self, x):
"""Internal MIBDict function used to find a partial OID"""
if x.startswith('.'):
x = x[1:]
if not x.endswith('.'):
x += '.'
max... |
class MIBDict(DADict[str, str]):
def _findroot(self, x):
'''Internal MIBDict function used to find a partial OID'''
pass
def _oidname(self, x):
'''Deduce the OID name from its OID ID'''
pass
def _oidname(self, x):
'''Parse the OID id/OID generator, and return real... | 5 | 3 | 14 | 0 | 12 | 2 | 4 | 0.15 | 1 | 1 | 0 | 0 | 4 | 0 | 4 | 24 | 58 | 3 | 48 | 18 | 43 | 7 | 48 | 17 | 43 | 7 | 2 | 3 | 17 |
24,458 | secdev/scapy | secdev_scapy/scapy/asn1fields.py | scapy.asn1fields.ASN1F_BIT_STRING | from scapy.volatile import GeneralizedTime, RandChoice, RandInt, RandNum, RandOID, RandString, RandField
from scapy.asn1.asn1 import ASN1_BIT_STRING, ASN1_BOOLEAN, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Error, ASN1_INTEGER, ASN1_NULL, ASN1_OID, ASN1_Object, ASN1_STRING
class ASN1F_BIT_STRING(ASN1F_field[str, ASN1_BIT_... |
class ASN1F_BIT_STRING(ASN1F_field[str, ASN1_BIT_STRING]):
def __init__(self, name, default, default_readable=True, context=None, implicit_tag=None, explicit_tag=None):
pass
def randval(self):
pass | 3 | 0 | 11 | 0 | 10 | 4 | 2 | 0.36 | 1 | 6 | 3 | 2 | 2 | 1 | 2 | 21 | 26 | 2 | 22 | 12 | 12 | 8 | 9 | 5 | 6 | 2 | 3 | 1 | 3 |
24,459 | secdev/scapy | secdev_scapy/scapy/asn1fields.py | scapy.asn1fields.ASN1F_BIT_STRING_ENCAPS | from scapy.asn1.ber import BER_Decoding_Error, BER_id_dec, BER_tagging_dec, BER_tagging_enc
from scapy.asn1.asn1 import ASN1_BIT_STRING, ASN1_BOOLEAN, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Error, ASN1_INTEGER, ASN1_NULL, ASN1_OID, ASN1_Object, ASN1_STRING
from scapy.compat import raw
class ASN1F_BIT_STRING_ENCAPS(ASN... |
class ASN1F_BIT_STRING_ENCAPS(ASN1F_BIT_STRING):
'''
We may emulate simple string encapsulation with explicit_tag=0x04,
but we need a specific class for bit strings because of unused bits, etc.
'''
def __init__(self, name, default, cls, context=None, implicit_tag=None, explicit_tag=None):
... | 4 | 1 | 13 | 0 | 12 | 4 | 3 | 0.46 | 1 | 4 | 2 | 0 | 3 | 1 | 3 | 24 | 47 | 3 | 37 | 15 | 26 | 17 | 19 | 8 | 15 | 4 | 4 | 1 | 8 |
24,460 | secdev/scapy | secdev_scapy/scapy/asn1fields.py | scapy.asn1fields.ASN1F_BMP_STRING | from scapy.asn1.asn1 import ASN1_BIT_STRING, ASN1_BOOLEAN, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Error, ASN1_INTEGER, ASN1_NULL, ASN1_OID, ASN1_Object, ASN1_STRING
class ASN1F_BMP_STRING(ASN1F_STRING):
ASN1_tag = ASN1_Class_UNIVERSAL.BMP_STRING |
class ASN1F_BMP_STRING(ASN1F_STRING):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 20 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
24,461 | secdev/scapy | secdev_scapy/scapy/asn1fields.py | scapy.asn1fields.ASN1F_BOOLEAN | from scapy.asn1.asn1 import ASN1_BIT_STRING, ASN1_BOOLEAN, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Error, ASN1_INTEGER, ASN1_NULL, ASN1_OID, ASN1_Object, ASN1_STRING
from scapy.volatile import GeneralizedTime, RandChoice, RandInt, RandNum, RandOID, RandString, RandField
class ASN1F_BOOLEAN(ASN1F_field[bool, ASN1_BOOLEA... |
class ASN1F_BOOLEAN(ASN1F_field[bool, ASN1_BOOLEAN]):
def randval(self):
pass | 2 | 0 | 3 | 0 | 2 | 1 | 1 | 0.25 | 1 | 1 | 1 | 0 | 1 | 0 | 1 | 20 | 6 | 1 | 4 | 3 | 2 | 1 | 4 | 3 | 2 | 1 | 3 | 0 | 1 |
24,462 | secdev/scapy | secdev_scapy/scapy/asn1fields.py | scapy.asn1fields.ASN1F_CHOICE | from scapy import packet
from scapy.asn1.ber import BER_Decoding_Error, BER_id_dec, BER_tagging_dec, BER_tagging_enc
from scapy.asn1.asn1 import ASN1_BIT_STRING, ASN1_BOOLEAN, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Error, ASN1_INTEGER, ASN1_NULL, ASN1_OID, ASN1_Object, ASN1_STRING
from scapy.compat import raw
from scap... |
class ASN1F_CHOICE(ASN1F_field[_CHOICE_T, ASN1_Object[Any]]):
'''
Multiple types are allowed: ASN1_Packet, ASN1F_field and ASN1F_PACKET(),
See layers/x509.py for examples.
Other ASN1F_field instances than ASN1F_PACKET instances must not be used.
'''
def __init__(self, name, default, *args, **k... | 5 | 2 | 24 | 0 | 20 | 5 | 6 | 0.32 | 1 | 6 | 2 | 1 | 4 | 6 | 4 | 23 | 107 | 4 | 81 | 25 | 76 | 26 | 59 | 24 | 54 | 9 | 3 | 4 | 23 |
24,463 | secdev/scapy | secdev_scapy/scapy/asn1fields.py | scapy.asn1fields.ASN1F_ENUMERATED | from scapy.asn1.asn1 import ASN1_BIT_STRING, ASN1_BOOLEAN, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Error, ASN1_INTEGER, ASN1_NULL, ASN1_OID, ASN1_Object, ASN1_STRING
class ASN1F_ENUMERATED(ASN1F_enum_INTEGER):
ASN1_tag = ASN1_Class_UNIVERSAL.ENUMERATED |
class ASN1F_ENUMERATED(ASN1F_enum_INTEGER):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 23 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
24,464 | secdev/scapy | secdev_scapy/scapy/asn1fields.py | scapy.asn1fields.ASN1F_FLAGS | from scapy.asn1.asn1 import ASN1_BIT_STRING, ASN1_BOOLEAN, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Error, ASN1_INTEGER, ASN1_NULL, ASN1_OID, ASN1_Object, ASN1_STRING
class ASN1F_FLAGS(ASN1F_BIT_STRING):
def __init__(self, name, default, mapping, context=None, implicit_tag=None, explicit_tag=None):
self.map... |
class ASN1F_FLAGS(ASN1F_BIT_STRING):
def __init__(self, name, default, mapping, context=None, implicit_tag=None, explicit_tag=None):
pass
def any2i(self, pkt, x):
pass
def get_flags(self, pkt):
pass
def i2repr(self, pkt, x):
pass | 5 | 0 | 10 | 0 | 9 | 3 | 2 | 0.31 | 1 | 4 | 1 | 0 | 4 | 1 | 4 | 25 | 43 | 3 | 35 | 18 | 23 | 11 | 21 | 10 | 16 | 4 | 4 | 3 | 8 |
24,465 | secdev/scapy | secdev_scapy/scapy/asn1fields.py | scapy.asn1fields.ASN1F_GENERALIZED_TIME | from scapy.asn1.asn1 import ASN1_BIT_STRING, ASN1_BOOLEAN, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Error, ASN1_INTEGER, ASN1_NULL, ASN1_OID, ASN1_Object, ASN1_STRING
from scapy.volatile import GeneralizedTime, RandChoice, RandInt, RandNum, RandOID, RandString, RandField
class ASN1F_GENERALIZED_TIME(ASN1F_STRING):
A... |
class ASN1F_GENERALIZED_TIME(ASN1F_STRING):
def randval(self):
pass | 2 | 0 | 3 | 0 | 2 | 2 | 1 | 0.5 | 1 | 1 | 1 | 0 | 1 | 0 | 1 | 21 | 6 | 1 | 4 | 3 | 2 | 2 | 4 | 3 | 2 | 1 | 4 | 0 | 1 |
24,466 | secdev/scapy | secdev_scapy/scapy/asn1fields.py | scapy.asn1fields.ASN1F_GENERAL_STRING | from scapy.asn1.asn1 import ASN1_BIT_STRING, ASN1_BOOLEAN, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Error, ASN1_INTEGER, ASN1_NULL, ASN1_OID, ASN1_Object, ASN1_STRING
class ASN1F_GENERAL_STRING(ASN1F_STRING):
ASN1_tag = ASN1_Class_UNIVERSAL.GENERAL_STRING |
class ASN1F_GENERAL_STRING(ASN1F_STRING):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 20 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
24,467 | secdev/scapy | secdev_scapy/scapy/asn1fields.py | scapy.asn1fields.ASN1F_IA5_STRING | from scapy.asn1.asn1 import ASN1_BIT_STRING, ASN1_BOOLEAN, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Error, ASN1_INTEGER, ASN1_NULL, ASN1_OID, ASN1_Object, ASN1_STRING
class ASN1F_IA5_STRING(ASN1F_STRING):
ASN1_tag = ASN1_Class_UNIVERSAL.IA5_STRING |
class ASN1F_IA5_STRING(ASN1F_STRING):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 20 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
24,468 | secdev/scapy | secdev_scapy/scapy/asn1fields.py | scapy.asn1fields.ASN1F_INTEGER | from scapy.volatile import GeneralizedTime, RandChoice, RandInt, RandNum, RandOID, RandString, RandField
from scapy.asn1.asn1 import ASN1_BIT_STRING, ASN1_BOOLEAN, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Error, ASN1_INTEGER, ASN1_NULL, ASN1_OID, ASN1_Object, ASN1_STRING
class ASN1F_INTEGER(ASN1F_field[int, ASN1_INTEGER... |
class ASN1F_INTEGER(ASN1F_field[int, ASN1_INTEGER]):
def randval(self):
pass | 2 | 0 | 3 | 0 | 2 | 1 | 1 | 0.25 | 1 | 1 | 1 | 3 | 1 | 0 | 1 | 20 | 6 | 1 | 4 | 3 | 2 | 1 | 4 | 3 | 2 | 1 | 3 | 0 | 1 |
24,469 | secdev/scapy | secdev_scapy/scapy/asn1fields.py | scapy.asn1fields.ASN1F_IPADDRESS | from scapy.asn1.asn1 import ASN1_BIT_STRING, ASN1_BOOLEAN, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Error, ASN1_INTEGER, ASN1_NULL, ASN1_OID, ASN1_Object, ASN1_STRING
class ASN1F_IPADDRESS(ASN1F_STRING):
ASN1_tag = ASN1_Class_UNIVERSAL.IPADDRESS |
class ASN1F_IPADDRESS(ASN1F_STRING):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 20 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
24,470 | secdev/scapy | secdev_scapy/scapy/asn1fields.py | scapy.asn1fields.ASN1F_ISO646_STRING | from scapy.asn1.asn1 import ASN1_BIT_STRING, ASN1_BOOLEAN, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Error, ASN1_INTEGER, ASN1_NULL, ASN1_OID, ASN1_Object, ASN1_STRING
class ASN1F_ISO646_STRING(ASN1F_STRING):
ASN1_tag = ASN1_Class_UNIVERSAL.ISO646_STRING |
class ASN1F_ISO646_STRING(ASN1F_STRING):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 20 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
24,471 | secdev/scapy | secdev_scapy/scapy/asn1fields.py | scapy.asn1fields.ASN1F_NULL | from scapy.asn1.asn1 import ASN1_BIT_STRING, ASN1_BOOLEAN, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Error, ASN1_INTEGER, ASN1_NULL, ASN1_OID, ASN1_Object, ASN1_STRING
class ASN1F_NULL(ASN1F_INTEGER):
ASN1_tag = ASN1_Class_UNIVERSAL.NULL |
class ASN1F_NULL(ASN1F_INTEGER):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 20 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
24,472 | secdev/scapy | secdev_scapy/scapy/asn1fields.py | scapy.asn1fields.ASN1F_NUMERIC_STRING | from scapy.asn1.asn1 import ASN1_BIT_STRING, ASN1_BOOLEAN, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Error, ASN1_INTEGER, ASN1_NULL, ASN1_OID, ASN1_Object, ASN1_STRING
class ASN1F_NUMERIC_STRING(ASN1F_STRING):
ASN1_tag = ASN1_Class_UNIVERSAL.NUMERIC_STRING |
class ASN1F_NUMERIC_STRING(ASN1F_STRING):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 20 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
24,473 | secdev/scapy | secdev_scapy/scapy/asn1fields.py | scapy.asn1fields.ASN1F_OID | from scapy.asn1.asn1 import ASN1_BIT_STRING, ASN1_BOOLEAN, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Error, ASN1_INTEGER, ASN1_NULL, ASN1_OID, ASN1_Object, ASN1_STRING
from scapy.volatile import GeneralizedTime, RandChoice, RandInt, RandNum, RandOID, RandString, RandField
class ASN1F_OID(ASN1F_field[str, ASN1_OID]):
... |
class ASN1F_OID(ASN1F_field[str, ASN1_OID]):
def randval(self):
pass | 2 | 0 | 3 | 0 | 2 | 1 | 1 | 0.25 | 1 | 1 | 1 | 0 | 1 | 0 | 1 | 20 | 6 | 1 | 4 | 3 | 2 | 1 | 4 | 3 | 2 | 1 | 3 | 0 | 1 |
24,474 | secdev/scapy | secdev_scapy/scapy/asn1fields.py | scapy.asn1fields.ASN1F_PACKET | from typing import Any, AnyStr, Callable, Dict, Generic, List, Optional, Tuple, Type, TypeVar, Union, cast, TYPE_CHECKING
from scapy.asn1.ber import BER_Decoding_Error, BER_id_dec, BER_tagging_dec, BER_tagging_enc
from scapy import packet
from scapy.compat import raw
from scapy.asn1.asn1 import ASN1_BIT_STRING, ASN1_BO... |
class ASN1F_PACKET(ASN1F_field['ASN1_Packet', Optional['ASN1_Packet']]):
def __init__(self, name, default, cls, context=None, implicit_tag=None, explicit_tag=None, next_cls_cb=None):
pass
def m2i(self, pkt, s):
pass
def i2m(self, pkt, x):
pass
def any2i(self, pkt, x):
... | 6 | 0 | 15 | 0 | 14 | 4 | 4 | 0.31 | 1 | 4 | 2 | 0 | 5 | 7 | 5 | 24 | 82 | 5 | 70 | 31 | 50 | 22 | 41 | 14 | 35 | 7 | 3 | 2 | 19 |
24,475 | secdev/scapy | secdev_scapy/scapy/asn1fields.py | scapy.asn1fields.ASN1F_PRINTABLE_STRING | from scapy.asn1.asn1 import ASN1_BIT_STRING, ASN1_BOOLEAN, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Error, ASN1_INTEGER, ASN1_NULL, ASN1_OID, ASN1_Object, ASN1_STRING
class ASN1F_PRINTABLE_STRING(ASN1F_STRING):
ASN1_tag = ASN1_Class_UNIVERSAL.PRINTABLE_STRING |
class ASN1F_PRINTABLE_STRING(ASN1F_STRING):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 20 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
24,476 | secdev/scapy | secdev_scapy/scapy/asn1fields.py | scapy.asn1fields.ASN1F_SEQUENCE | from functools import reduce
from typing import Any, AnyStr, Callable, Dict, Generic, List, Optional, Tuple, Type, TypeVar, Union, cast, TYPE_CHECKING
from scapy.asn1.asn1 import ASN1_BIT_STRING, ASN1_BOOLEAN, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Error, ASN1_INTEGER, ASN1_NULL, ASN1_OID, ASN1_Object, ASN1_STRING
from... |
class ASN1F_SEQUENCE(ASN1F_field[List[Any], List[Any]]):
def __init__(self, *seq, **kwargs):
pass
def __repr__(self):
pass
def is_empty(self, pkt):
pass
def get_fields_list(self):
pass
def m2i(self, pkt, s):
'''
ASN1F_SEQUENCE behaves transparent... | 8 | 1 | 9 | 0 | 7 | 2 | 2 | 0.52 | 1 | 3 | 2 | 16 | 7 | 5 | 7 | 26 | 83 | 7 | 50 | 23 | 42 | 26 | 40 | 20 | 32 | 9 | 3 | 3 | 15 |
24,477 | secdev/scapy | secdev_scapy/scapy/asn1fields.py | scapy.asn1fields.ASN1F_SEQUENCE_OF | from scapy.asn1.asn1 import ASN1_BIT_STRING, ASN1_BOOLEAN, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Error, ASN1_INTEGER, ASN1_NULL, ASN1_OID, ASN1_Object, ASN1_STRING
from scapy.compat import raw
from scapy.asn1.ber import BER_Decoding_Error, BER_id_dec, BER_tagging_dec, BER_tagging_enc
from typing import Any, AnyStr, Ca... |
class ASN1F_SEQUENCE_OF(ASN1F_field[List[_SEQ_T], List[ASN1_Object[Any]]]):
'''
Two types are allowed as cls: ASN1_Packet, ASN1F_field
'''
def __init__(self, name, default, cls, context=None, implicit_tag=None, explicit_tag=None):
pass
def is_empty(self, pkt):
pass
def m2i(se... | 8 | 1 | 12 | 0 | 11 | 3 | 3 | 0.27 | 1 | 7 | 3 | 1 | 7 | 7 | 7 | 26 | 100 | 7 | 83 | 37 | 62 | 22 | 51 | 22 | 43 | 7 | 3 | 2 | 20 |
24,478 | secdev/scapy | secdev_scapy/scapy/asn1fields.py | scapy.asn1fields.ASN1F_SET | from scapy.asn1.asn1 import ASN1_BIT_STRING, ASN1_BOOLEAN, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Error, ASN1_INTEGER, ASN1_NULL, ASN1_OID, ASN1_Object, ASN1_STRING
class ASN1F_SET(ASN1F_SEQUENCE):
ASN1_tag = ASN1_Class_UNIVERSAL.SET |
class ASN1F_SET(ASN1F_SEQUENCE):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 26 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
24,479 | secdev/scapy | secdev_scapy/scapy/asn1fields.py | scapy.asn1fields.ASN1F_SET_OF | from scapy.asn1.asn1 import ASN1_BIT_STRING, ASN1_BOOLEAN, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Error, ASN1_INTEGER, ASN1_NULL, ASN1_OID, ASN1_Object, ASN1_STRING
class ASN1F_SET_OF(ASN1F_SEQUENCE_OF):
ASN1_tag = ASN1_Class_UNIVERSAL.SET |
class ASN1F_SET_OF(ASN1F_SEQUENCE_OF):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 26 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
24,480 | secdev/scapy | secdev_scapy/scapy/asn1fields.py | scapy.asn1fields.ASN1F_STRING | from scapy.asn1.asn1 import ASN1_BIT_STRING, ASN1_BOOLEAN, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Error, ASN1_INTEGER, ASN1_NULL, ASN1_OID, ASN1_Object, ASN1_STRING
from scapy.volatile import GeneralizedTime, RandChoice, RandInt, RandNum, RandOID, RandString, RandField
class ASN1F_STRING(ASN1F_field[str, ASN1_STRING])... |
class ASN1F_STRING(ASN1F_field[str, ASN1_STRING]):
def randval(self):
pass | 2 | 0 | 3 | 0 | 2 | 1 | 1 | 0.25 | 1 | 2 | 2 | 21 | 1 | 0 | 1 | 20 | 6 | 1 | 4 | 3 | 2 | 1 | 4 | 3 | 2 | 1 | 3 | 0 | 1 |
24,481 | secdev/scapy | secdev_scapy/scapy/asn1fields.py | scapy.asn1fields.ASN1F_STRING_PacketField | from scapy.asn1.asn1 import ASN1_BIT_STRING, ASN1_BOOLEAN, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Error, ASN1_INTEGER, ASN1_NULL, ASN1_OID, ASN1_Object, ASN1_STRING
class ASN1F_STRING_PacketField(ASN1F_STRING):
"""
ASN1F_STRING that holds packets.
"""
holds_packets = 1
def i2m(self, pkt, val):
... |
class ASN1F_STRING_PacketField(ASN1F_STRING):
'''
ASN1F_STRING that holds packets.
'''
def i2m(self, pkt, val):
pass
def any2i(self, pkt, x):
pass | 3 | 1 | 5 | 0 | 4 | 2 | 2 | 0.6 | 1 | 3 | 1 | 11 | 2 | 0 | 2 | 22 | 17 | 2 | 10 | 4 | 7 | 6 | 10 | 4 | 7 | 2 | 4 | 1 | 4 |
24,482 | secdev/scapy | secdev_scapy/scapy/asn1fields.py | scapy.asn1fields.ASN1F_T61_STRING | from scapy.asn1.asn1 import ASN1_BIT_STRING, ASN1_BOOLEAN, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Error, ASN1_INTEGER, ASN1_NULL, ASN1_OID, ASN1_Object, ASN1_STRING
class ASN1F_T61_STRING(ASN1F_STRING):
ASN1_tag = ASN1_Class_UNIVERSAL.T61_STRING |
class ASN1F_T61_STRING(ASN1F_STRING):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 20 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
24,483 | secdev/scapy | secdev_scapy/scapy/asn1fields.py | scapy.asn1fields.ASN1F_TIME_TICKS | from scapy.asn1.asn1 import ASN1_BIT_STRING, ASN1_BOOLEAN, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Error, ASN1_INTEGER, ASN1_NULL, ASN1_OID, ASN1_Object, ASN1_STRING
class ASN1F_TIME_TICKS(ASN1F_INTEGER):
ASN1_tag = ASN1_Class_UNIVERSAL.TIME_TICKS |
class ASN1F_TIME_TICKS(ASN1F_INTEGER):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 20 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
24,484 | secdev/scapy | secdev_scapy/scapy/asn1fields.py | scapy.asn1fields.ASN1F_UNIVERSAL_STRING | from scapy.asn1.asn1 import ASN1_BIT_STRING, ASN1_BOOLEAN, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Error, ASN1_INTEGER, ASN1_NULL, ASN1_OID, ASN1_Object, ASN1_STRING
class ASN1F_UNIVERSAL_STRING(ASN1F_STRING):
ASN1_tag = ASN1_Class_UNIVERSAL.UNIVERSAL_STRING |
class ASN1F_UNIVERSAL_STRING(ASN1F_STRING):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 20 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
24,485 | secdev/scapy | secdev_scapy/scapy/asn1fields.py | scapy.asn1fields.ASN1F_UTC_TIME | from scapy.asn1.asn1 import ASN1_BIT_STRING, ASN1_BOOLEAN, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Error, ASN1_INTEGER, ASN1_NULL, ASN1_OID, ASN1_Object, ASN1_STRING
from scapy.volatile import GeneralizedTime, RandChoice, RandInt, RandNum, RandOID, RandString, RandField
class ASN1F_UTC_TIME(ASN1F_STRING):
ASN1_tag ... |
class ASN1F_UTC_TIME(ASN1F_STRING):
def randval(self):
pass | 2 | 0 | 3 | 0 | 2 | 2 | 1 | 0.5 | 1 | 1 | 1 | 0 | 1 | 0 | 1 | 21 | 6 | 1 | 4 | 3 | 2 | 2 | 4 | 3 | 2 | 1 | 4 | 0 | 1 |
24,486 | secdev/scapy | secdev_scapy/scapy/asn1fields.py | scapy.asn1fields.ASN1F_UTF8_STRING | from scapy.asn1.asn1 import ASN1_BIT_STRING, ASN1_BOOLEAN, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Error, ASN1_INTEGER, ASN1_NULL, ASN1_OID, ASN1_Object, ASN1_STRING
class ASN1F_UTF8_STRING(ASN1F_STRING):
ASN1_tag = ASN1_Class_UNIVERSAL.UTF8_STRING |
class ASN1F_UTF8_STRING(ASN1F_STRING):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 20 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
24,487 | secdev/scapy | secdev_scapy/scapy/asn1fields.py | scapy.asn1fields.ASN1F_VIDEOTEX_STRING | from scapy.asn1.asn1 import ASN1_BIT_STRING, ASN1_BOOLEAN, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Error, ASN1_INTEGER, ASN1_NULL, ASN1_OID, ASN1_Object, ASN1_STRING
class ASN1F_VIDEOTEX_STRING(ASN1F_STRING):
ASN1_tag = ASN1_Class_UNIVERSAL.VIDEOTEX_STRING |
class ASN1F_VIDEOTEX_STRING(ASN1F_STRING):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 20 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
24,488 | secdev/scapy | secdev_scapy/scapy/asn1fields.py | scapy.asn1fields.ASN1F_element | class ASN1F_element(object):
pass | class ASN1F_element(object):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 1 | 0 | 0 |
24,489 | secdev/scapy | secdev_scapy/scapy/asn1fields.py | scapy.asn1fields.ASN1F_enum_INTEGER | from scapy.asn1.asn1 import ASN1_BIT_STRING, ASN1_BOOLEAN, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Error, ASN1_INTEGER, ASN1_NULL, ASN1_OID, ASN1_Object, ASN1_STRING
class ASN1F_enum_INTEGER(ASN1F_INTEGER):
def __init__(self, name, default, enum, context=None, implicit_tag=None, explicit_tag=None):
super(A... |
class ASN1F_enum_INTEGER(ASN1F_INTEGER):
def __init__(self, name, default, enum, context=None, implicit_tag=None, explicit_tag=None):
pass
def i2m(self, pkt, s):
pass
def i2repr(self, pkt, x):
pass | 4 | 0 | 15 | 0 | 14 | 5 | 3 | 0.37 | 1 | 5 | 1 | 1 | 3 | 2 | 3 | 23 | 48 | 2 | 43 | 23 | 26 | 16 | 24 | 10 | 20 | 4 | 4 | 2 | 9 |
24,490 | secdev/scapy | secdev_scapy/scapy/asn1fields.py | scapy.asn1fields.ASN1F_field | from scapy.asn1.ber import BER_Decoding_Error, BER_id_dec, BER_tagging_dec, BER_tagging_enc
from scapy.asn1.asn1 import ASN1_BIT_STRING, ASN1_BOOLEAN, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Error, ASN1_INTEGER, ASN1_NULL, ASN1_OID, ASN1_Object, ASN1_STRING
from scapy.base_classes import BasePacket
from typing import An... |
class ASN1F_field(ASN1F_element, Generic[_I, _A]):
def __init__(self, name, default, context=None, implicit_tag=None, explicit_tag=None, flexible_tag=False, size_len=None):
pass
def register_owner(self, cls):
pass
def i2repr(self, pkt, x):
pass
def i2h(self, pkt, x):
... | 18 | 1 | 8 | 0 | 7 | 3 | 2 | 0.42 | 2 | 11 | 8 | 9 | 17 | 8 | 17 | 19 | 164 | 18 | 116 | 50 | 86 | 49 | 89 | 38 | 71 | 5 | 2 | 3 | 35 |
24,491 | secdev/scapy | secdev_scapy/scapy/asn1fields.py | scapy.asn1fields.ASN1F_optional | from scapy.asn1.ber import BER_Decoding_Error, BER_id_dec, BER_tagging_dec, BER_tagging_enc
from scapy.asn1.asn1 import ASN1_BIT_STRING, ASN1_BOOLEAN, ASN1_Class, ASN1_Class_UNIVERSAL, ASN1_Error, ASN1_INTEGER, ASN1_NULL, ASN1_OID, ASN1_Object, ASN1_STRING
class ASN1F_optional(ASN1F_element):
def __init__(self, f... |
class ASN1F_optional(ASN1F_element):
def __init__(self, field):
pass
def __getattr__(self, attr):
pass
def m2i(self, pkt, s):
pass
def dissect(self, pkt, s):
pass
def build(self, pkt):
pass
def any2i(self, pkt, x):
pass
def i2repr(self,... | 8 | 0 | 5 | 0 | 3 | 1 | 1 | 0.32 | 1 | 3 | 3 | 0 | 7 | 1 | 7 | 7 | 39 | 6 | 25 | 9 | 17 | 8 | 25 | 9 | 17 | 2 | 2 | 1 | 10 |
24,492 | secdev/scapy | secdev_scapy/scapy/asn1packet.py | scapy.asn1packet.ASN1Packet_metaclass | from scapy.base_classes import Packet_metaclass
from typing import Any, Dict, Tuple, Type, cast, TYPE_CHECKING
class ASN1Packet_metaclass(Packet_metaclass):
def __new__(cls, name, bases, dct):
if dct['ASN1_root'] is not None:
dct['fields_desc'] = dct['ASN1_root'].get_fields_list()
retu... |
class ASN1Packet_metaclass(Packet_metaclass):
def __new__(cls, name, bases, dct):
pass | 2 | 0 | 12 | 0 | 11 | 4 | 2 | 0.33 | 1 | 1 | 0 | 1 | 1 | 0 | 1 | 17 | 13 | 0 | 12 | 6 | 6 | 4 | 5 | 2 | 3 | 2 | 3 | 1 | 2 |
24,493 | secdev/scapy | secdev_scapy/scapy/asn1packet.py | scapy.asn1packet.ASN1_Packet | from scapy.packet import Packet
from typing import Any, Dict, Tuple, Type, cast, TYPE_CHECKING
class ASN1_Packet(Packet, metaclass=ASN1Packet_metaclass):
ASN1_root = cast('ASN1F_field[Any, Any]', None)
ASN1_codec = None
def self_build(self):
if self.raw_packet_cache is not None:
return... |
class ASN1_Packet(Packet, metaclass=ASN1Packet_metaclass):
def self_build(self):
pass
def do_dissect(self, x):
pass | 3 | 0 | 4 | 0 | 3 | 1 | 2 | 0.22 | 2 | 0 | 0 | 232 | 2 | 0 | 2 | 122 | 13 | 2 | 9 | 5 | 6 | 2 | 9 | 5 | 6 | 2 | 4 | 1 | 3 |
24,494 | secdev/scapy | secdev_scapy/scapy/automaton.py | scapy.automaton.ATMT | from typing import Any, Callable, Deque, Dict, Generic, Iterable, Iterator, List, Optional, Set, Tuple, Type, TypeVar, Union, cast
class ATMT:
STATE = 'State'
ACTION = 'Action'
CONDITION = 'Condition'
RECV = 'Receive condition'
TIMEOUT = 'Timeout condition'
EOF = 'EOF condition'
IOEVENT = '... |
class ATMT:
class NewStateRequested(Exception):
def __init__(self, state_func, automaton, *args, **kargs):
pass
def action_parameters(self, *args, **kargs):
pass
def run(self):
pass
def __repr__(self):
pass
@st... | 31 | 0 | 10 | 0 | 8 | 2 | 1 | 0.25 | 0 | 3 | 3 | 0 | 0 | 0 | 8 | 8 | 160 | 14 | 125 | 58 | 86 | 31 | 109 | 42 | 86 | 2 | 0 | 1 | 22 |
24,495 | secdev/scapy | secdev_scapy/scapy/automaton.py | scapy.automaton.Automaton | import traceback
from scapy.supersocket import SuperSocket, StreamSocket
import socket
from scapy.error import log_runtime, warning
import sys
import itertools
from scapy.interfaces import _GlobInterfaceType
import threading
from typing import Any, Callable, Deque, Dict, Generic, Iterable, Iterator, List, Optional, Set... |
class Automaton(metaclass=Automaton_metaclass):
def __init__(self, *args, **kargs):
pass
def parse_args(self, debug=0, store=0, session=None, **kargs):
pass
@classmethod
def spawn(cls, port: int, iface: Optional[_GlobInterfaceType]=None, local_ip: Optional[str]=None, bg: bool=False, *... | 60 | 3 | 15 | 0 | 12 | 3 | 4 | 0.29 | 1 | 33 | 16 | 12 | 31 | 26 | 32 | 48 | 741 | 73 | 566 | 183 | 487 | 163 | 490 | 160 | 430 | 25 | 3 | 8 | 170 |
24,496 | secdev/scapy | secdev_scapy/scapy/automaton.py | scapy.automaton.Automaton_metaclass | import itertools
from typing import Any, Callable, Deque, Dict, Generic, Iterable, Iterator, List, Optional, Set, Tuple, Type, TypeVar, Union, cast
from scapy.utils import do_graph
class Automaton_metaclass(type):
def __new__(cls, name, bases, dct):
cls = super(Automaton_metaclass, cls).__new__(cls, name,... |
class Automaton_metaclass(type):
def __new__(cls, name, bases, dct):
pass
def build_graph(self):
pass
def graph(self, **kargs):
pass | 4 | 0 | 54 | 4 | 48 | 9 | 16 | 0.18 | 1 | 9 | 3 | 1 | 3 | 0 | 3 | 16 | 164 | 13 | 145 | 27 | 140 | 26 | 107 | 27 | 102 | 23 | 2 | 5 | 47 |
24,497 | secdev/scapy | secdev_scapy/scapy/automaton.py | scapy.automaton.Message | class Message:
type = None
pkt = None
result = None
state = None
exc_info = None
def __init__(self, **args):
self.__dict__.update(args)
def __repr__(self):
return '<Message %s>' % ' '.join(('%s=%r' % (k, v) for k, v in self.__dict__.items() if not k.startswith('_'))) | class Message:
def __init__(self, **args):
pass
def __repr__(self):
pass | 3 | 0 | 5 | 0 | 4 | 1 | 1 | 0.5 | 0 | 0 | 0 | 0 | 2 | 0 | 2 | 2 | 18 | 2 | 14 | 8 | 11 | 7 | 10 | 8 | 7 | 1 | 0 | 0 | 2 |
24,498 | secdev/scapy | secdev_scapy/scapy/automaton.py | scapy.automaton.ObjectPipe | import ctypes
from scapy.error import log_runtime, warning
from collections import deque
from typing import Any, Callable, Deque, Dict, Generic, Iterable, Iterator, List, Optional, Set, Tuple, Type, TypeVar, Union, cast
from scapy.config import conf
import os
from scapy.consts import WINDOWS
import random
import socket... |
class ObjectPipe(Generic[_T]):
def __init__(self, name=None):
pass
def _wincreate(self):
pass
def _winset(self):
pass
def _winreset(self):
pass
def _winclose(self):
pass
def fileno(self):
pass
... | 19 | 0 | 6 | 0 | 5 | 1 | 2 | 0.26 | 1 | 5 | 0 | 3 | 16 | 6 | 17 | 19 | 115 | 16 | 80 | 27 | 61 | 21 | 76 | 26 | 58 | 5 | 1 | 3 | 35 |
24,499 | secdev/scapy | secdev_scapy/scapy/automaton.py | scapy.automaton.Timer | import time
class Timer:
def __init__(self, time, prio=0, autoreload=False):
self._timeout = float(time)
self._time = 0
self._just_expired = True
self._expired = True
self._prio = prio
self._func = _StateWrapper()
self._autoreload = autoreload
def get(s... |
class Timer:
def __init__(self, time, prio=0, autoreload=False):
pass
def get(self):
pass
def set(self, val):
pass
def _reset(self):
pass
def _reset_just_expired(self):
pass
def _running(self):
pass
def _remaining(self):
pass
... | 13 | 0 | 5 | 0 | 4 | 1 | 2 | 0.33 | 0 | 3 | 1 | 0 | 12 | 7 | 12 | 12 | 69 | 11 | 45 | 20 | 32 | 15 | 42 | 20 | 29 | 4 | 0 | 3 | 18 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.