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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
30,000 | secdev/scapy | secdev_scapy/scapy/layers/tls/crypto/suites.py | scapy.layers.tls.crypto.suites.TLS_RSA_WITH_CAMELLIA_128_GCM_SHA256 | class TLS_RSA_WITH_CAMELLIA_128_GCM_SHA256(_GenericCipherSuite):
val = 49274 | class TLS_RSA_WITH_CAMELLIA_128_GCM_SHA256(_GenericCipherSuite):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 15 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
30,001 | secdev/scapy | secdev_scapy/scapy/layers/tls/crypto/suites.py | scapy.layers.tls.crypto.suites.TLS_RSA_WITH_CAMELLIA_256_CBC_SHA | class TLS_RSA_WITH_CAMELLIA_256_CBC_SHA(_GenericCipherSuite):
val = 132 | class TLS_RSA_WITH_CAMELLIA_256_CBC_SHA(_GenericCipherSuite):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 15 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
30,002 | secdev/scapy | secdev_scapy/scapy/layers/tls/crypto/suites.py | scapy.layers.tls.crypto.suites.TLS_RSA_WITH_CAMELLIA_256_CBC_SHA256 | class TLS_RSA_WITH_CAMELLIA_256_CBC_SHA256(_GenericCipherSuite):
val = 192 | class TLS_RSA_WITH_CAMELLIA_256_CBC_SHA256(_GenericCipherSuite):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 15 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
30,003 | secdev/scapy | secdev_scapy/scapy/layers/tls/crypto/suites.py | scapy.layers.tls.crypto.suites.TLS_RSA_WITH_CAMELLIA_256_GCM_SHA384 | class TLS_RSA_WITH_CAMELLIA_256_GCM_SHA384(_GenericCipherSuite):
val = 49275 | class TLS_RSA_WITH_CAMELLIA_256_GCM_SHA384(_GenericCipherSuite):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 15 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
30,004 | secdev/scapy | secdev_scapy/scapy/layers/tls/crypto/suites.py | scapy.layers.tls.crypto.suites.TLS_RSA_WITH_DES_CBC_SHA | class TLS_RSA_WITH_DES_CBC_SHA(_GenericCipherSuite):
val = 9 | class TLS_RSA_WITH_DES_CBC_SHA(_GenericCipherSuite):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 15 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
30,005 | secdev/scapy | secdev_scapy/scapy/layers/tls/crypto/suites.py | scapy.layers.tls.crypto.suites.TLS_RSA_WITH_IDEA_CBC_SHA | class TLS_RSA_WITH_IDEA_CBC_SHA(_GenericCipherSuite):
val = 7 | class TLS_RSA_WITH_IDEA_CBC_SHA(_GenericCipherSuite):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 15 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
30,006 | secdev/scapy | secdev_scapy/scapy/layers/tls/crypto/suites.py | scapy.layers.tls.crypto.suites.TLS_RSA_WITH_NULL_MD5 | class TLS_RSA_WITH_NULL_MD5(_GenericCipherSuite):
val = 1 | class TLS_RSA_WITH_NULL_MD5(_GenericCipherSuite):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 15 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
30,007 | secdev/scapy | secdev_scapy/scapy/layers/tls/crypto/suites.py | scapy.layers.tls.crypto.suites.TLS_RSA_WITH_NULL_SHA | class TLS_RSA_WITH_NULL_SHA(_GenericCipherSuite):
val = 2 | class TLS_RSA_WITH_NULL_SHA(_GenericCipherSuite):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 15 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
30,008 | secdev/scapy | secdev_scapy/scapy/layers/tls/crypto/suites.py | scapy.layers.tls.crypto.suites.TLS_RSA_WITH_NULL_SHA256 | class TLS_RSA_WITH_NULL_SHA256(_GenericCipherSuite):
val = 59 | class TLS_RSA_WITH_NULL_SHA256(_GenericCipherSuite):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 15 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
30,009 | secdev/scapy | secdev_scapy/scapy/layers/tls/crypto/suites.py | scapy.layers.tls.crypto.suites.TLS_RSA_WITH_RC4_128_MD5 | class TLS_RSA_WITH_RC4_128_MD5(_GenericCipherSuite):
val = 4 | class TLS_RSA_WITH_RC4_128_MD5(_GenericCipherSuite):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 15 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
30,010 | secdev/scapy | secdev_scapy/scapy/layers/tls/crypto/suites.py | scapy.layers.tls.crypto.suites.TLS_RSA_WITH_RC4_128_SHA | class TLS_RSA_WITH_RC4_128_SHA(_GenericCipherSuite):
val = 5 | class TLS_RSA_WITH_RC4_128_SHA(_GenericCipherSuite):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 15 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
30,011 | secdev/scapy | secdev_scapy/scapy/layers/tls/crypto/suites.py | scapy.layers.tls.crypto.suites.TLS_RSA_WITH_SEED_CBC_SHA | class TLS_RSA_WITH_SEED_CBC_SHA(_GenericCipherSuite):
val = 150 | class TLS_RSA_WITH_SEED_CBC_SHA(_GenericCipherSuite):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 15 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
30,012 | secdev/scapy | secdev_scapy/scapy/layers/tls/crypto/suites.py | scapy.layers.tls.crypto.suites.TLS_SRP_SHA_DSS_WITH_3DES_EDE_CBC_SHA | class TLS_SRP_SHA_DSS_WITH_3DES_EDE_CBC_SHA(_GenericCipherSuite):
val = 49180 | class TLS_SRP_SHA_DSS_WITH_3DES_EDE_CBC_SHA(_GenericCipherSuite):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 15 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
30,013 | secdev/scapy | secdev_scapy/scapy/layers/tls/crypto/suites.py | scapy.layers.tls.crypto.suites.TLS_SRP_SHA_DSS_WITH_AES_128_CBC_SHA | class TLS_SRP_SHA_DSS_WITH_AES_128_CBC_SHA(_GenericCipherSuite):
val = 49183 | class TLS_SRP_SHA_DSS_WITH_AES_128_CBC_SHA(_GenericCipherSuite):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 15 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
30,014 | secdev/scapy | secdev_scapy/scapy/layers/tls/crypto/suites.py | scapy.layers.tls.crypto.suites.TLS_SRP_SHA_DSS_WITH_AES_256_CBC_SHA | class TLS_SRP_SHA_DSS_WITH_AES_256_CBC_SHA(_GenericCipherSuite):
val = 49186 | class TLS_SRP_SHA_DSS_WITH_AES_256_CBC_SHA(_GenericCipherSuite):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 15 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
30,015 | secdev/scapy | secdev_scapy/scapy/layers/tls/crypto/suites.py | scapy.layers.tls.crypto.suites.TLS_SRP_SHA_RSA_WITH_3DES_EDE_CBC_SHA | class TLS_SRP_SHA_RSA_WITH_3DES_EDE_CBC_SHA(_GenericCipherSuite):
val = 49179 | class TLS_SRP_SHA_RSA_WITH_3DES_EDE_CBC_SHA(_GenericCipherSuite):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 15 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
30,016 | secdev/scapy | secdev_scapy/scapy/layers/tls/crypto/suites.py | scapy.layers.tls.crypto.suites.TLS_SRP_SHA_RSA_WITH_AES_128_CBC_SHA | class TLS_SRP_SHA_RSA_WITH_AES_128_CBC_SHA(_GenericCipherSuite):
val = 49182 | class TLS_SRP_SHA_RSA_WITH_AES_128_CBC_SHA(_GenericCipherSuite):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 15 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
30,017 | secdev/scapy | secdev_scapy/scapy/layers/tls/crypto/suites.py | scapy.layers.tls.crypto.suites.TLS_SRP_SHA_RSA_WITH_AES_256_CBC_SHA | class TLS_SRP_SHA_RSA_WITH_AES_256_CBC_SHA(_GenericCipherSuite):
val = 49185 | class TLS_SRP_SHA_RSA_WITH_AES_256_CBC_SHA(_GenericCipherSuite):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 15 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
30,018 | secdev/scapy | secdev_scapy/scapy/layers/tls/crypto/suites.py | scapy.layers.tls.crypto.suites.TLS_SRP_SHA_WITH_3DES_EDE_CBC_SHA | class TLS_SRP_SHA_WITH_3DES_EDE_CBC_SHA(_GenericCipherSuite):
val = 49178 | class TLS_SRP_SHA_WITH_3DES_EDE_CBC_SHA(_GenericCipherSuite):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 15 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
30,019 | secdev/scapy | secdev_scapy/scapy/layers/tls/crypto/suites.py | scapy.layers.tls.crypto.suites.TLS_SRP_SHA_WITH_AES_128_CBC_SHA | class TLS_SRP_SHA_WITH_AES_128_CBC_SHA(_GenericCipherSuite):
val = 49181 | class TLS_SRP_SHA_WITH_AES_128_CBC_SHA(_GenericCipherSuite):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 15 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
30,020 | secdev/scapy | secdev_scapy/scapy/layers/tls/crypto/suites.py | scapy.layers.tls.crypto.suites.TLS_SRP_SHA_WITH_AES_256_CBC_SHA | class TLS_SRP_SHA_WITH_AES_256_CBC_SHA(_GenericCipherSuite):
val = 49184 | class TLS_SRP_SHA_WITH_AES_256_CBC_SHA(_GenericCipherSuite):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 15 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
30,021 | secdev/scapy | secdev_scapy/scapy/layers/tls/crypto/suites.py | scapy.layers.tls.crypto.suites._GenericCipherSuiteMetaclass | class _GenericCipherSuiteMetaclass(type):
"""
Cipher suite classes are automatically registered through this metaclass.
Their name attribute equates their respective class name.
We also pre-compute every expected length of the key block to be generated,
which may vary according to the current tls_v... | class _GenericCipherSuiteMetaclass(type):
'''
Cipher suite classes are automatically registered through this metaclass.
Their name attribute equates their respective class name.
We also pre-compute every expected length of the key block to be generated,
which may vary according to the current tls_ve... | 2 | 1 | 41 | 7 | 33 | 1 | 8 | 0.29 | 1 | 1 | 0 | 1 | 1 | 0 | 1 | 14 | 53 | 9 | 34 | 7 | 32 | 10 | 29 | 7 | 27 | 8 | 2 | 4 | 8 |
30,022 | secdev/scapy | secdev_scapy/scapy/layers/tls/extensions.py | scapy.layers.tls.extensions.OCSPStatusRequest | from scapy.fields import ByteEnumField, ByteField, EnumField, FieldLenField, FieldListField, IntField, MayEnd, PacketField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, XStrLenField
from scapy.packet import Packet, Raw, Padding
from scapy.layers.x509 import X509_Extensions
class OCSPStat... |
class OCSPStatusRequest(Packet):
'''
This is the structure defined in RFC 6066, not in RFC 6960!
'''
def guess_payload_class(self, p):
pass | 2 | 1 | 2 | 0 | 2 | 0 | 1 | 0.33 | 1 | 1 | 1 | 0 | 1 | 0 | 1 | 120 | 13 | 1 | 9 | 4 | 7 | 3 | 5 | 4 | 3 | 1 | 4 | 0 | 1 |
30,023 | secdev/scapy | secdev_scapy/scapy/layers/tls/extensions.py | scapy.layers.tls.extensions.ProtocolListField | from scapy.fields import ByteEnumField, ByteField, EnumField, FieldLenField, FieldListField, IntField, MayEnd, PacketField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, XStrLenField
class ProtocolListField(PacketListField):
def i2repr(self, pkt, x):
res = [p.protocol for p i... |
class ProtocolListField(PacketListField):
def i2repr(self, pkt, x):
pass | 2 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 51 | 4 | 0 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 7 | 0 | 1 |
30,024 | secdev/scapy | secdev_scapy/scapy/layers/tls/extensions.py | scapy.layers.tls.extensions.ProtocolName | from scapy.fields import ByteEnumField, ByteField, EnumField, FieldLenField, FieldListField, IntField, MayEnd, PacketField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, XStrLenField
from scapy.packet import Packet, Raw, Padding
class ProtocolName(Packet):
name = 'Protocol Name'
f... |
class ProtocolName(Packet):
def guess_payload_class(self, p):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 1 | 120 | 8 | 1 | 7 | 4 | 5 | 0 | 5 | 4 | 3 | 1 | 4 | 0 | 1 |
30,025 | secdev/scapy | secdev_scapy/scapy/layers/tls/extensions.py | scapy.layers.tls.extensions.ResponderID | from scapy.packet import Packet, Raw, Padding
from scapy.fields import ByteEnumField, ByteField, EnumField, FieldLenField, FieldListField, IntField, MayEnd, PacketField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, XStrLenField
class ResponderID(Packet):
name = 'Responder ID structur... |
class ResponderID(Packet):
def guess_payload_class(self, p):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 1 | 120 | 8 | 1 | 7 | 4 | 5 | 0 | 5 | 4 | 3 | 1 | 4 | 0 | 1 |
30,026 | secdev/scapy | secdev_scapy/scapy/layers/tls/extensions.py | scapy.layers.tls.extensions.ServerLenField | from scapy.fields import ByteEnumField, ByteField, EnumField, FieldLenField, FieldListField, IntField, MayEnd, PacketField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, XStrLenField
class ServerLenField(FieldLenField):
"""
There is no length when there are no servernames (as in a... |
class ServerLenField(FieldLenField):
'''
There is no length when there are no servernames (as in a ServerHello).
'''
def addfield(self, pkt, s, val):
pass | 2 | 1 | 5 | 0 | 5 | 0 | 3 | 0.5 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 35 | 10 | 1 | 6 | 2 | 4 | 3 | 6 | 2 | 4 | 3 | 5 | 2 | 3 |
30,027 | secdev/scapy | secdev_scapy/scapy/layers/tls/extensions.py | scapy.layers.tls.extensions.ServerListField | from scapy.fields import ByteEnumField, ByteField, EnumField, FieldLenField, FieldListField, IntField, MayEnd, PacketField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, XStrLenField
class ServerListField(PacketListField):
def i2repr(self, pkt, x):
res = [p.servername for p i... |
class ServerListField(PacketListField):
def i2repr(self, pkt, x):
pass | 2 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 51 | 4 | 0 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 7 | 0 | 1 |
30,028 | secdev/scapy | secdev_scapy/scapy/layers/tls/extensions.py | scapy.layers.tls.extensions.ServerName | from scapy.fields import ByteEnumField, ByteField, EnumField, FieldLenField, FieldListField, IntField, MayEnd, PacketField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, XStrLenField
from scapy.packet import Packet, Raw, Padding
class ServerName(Packet):
name = 'HostName'
fields_d... |
class ServerName(Packet):
def guess_payload_class(self, p):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 1 | 120 | 9 | 1 | 8 | 4 | 6 | 0 | 5 | 4 | 3 | 1 | 4 | 0 | 1 |
30,029 | secdev/scapy | secdev_scapy/scapy/layers/tls/extensions.py | scapy.layers.tls.extensions.TACertSHA1Hash | from scapy.packet import Packet, Raw, Padding
from scapy.fields import ByteEnumField, ByteField, EnumField, FieldLenField, FieldListField, IntField, MayEnd, PacketField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, XStrLenField
class TACertSHA1Hash(Packet):
name = 'Trusted authority ... |
class TACertSHA1Hash(Packet):
def guess_payload_class(self, p):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 1 | 120 | 7 | 1 | 6 | 4 | 4 | 0 | 5 | 4 | 3 | 1 | 4 | 0 | 1 |
30,030 | secdev/scapy | secdev_scapy/scapy/layers/tls/extensions.py | scapy.layers.tls.extensions.TAKeySHA1Hash | from scapy.packet import Packet, Raw, Padding
from scapy.fields import ByteEnumField, ByteField, EnumField, FieldLenField, FieldListField, IntField, MayEnd, PacketField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, XStrLenField
class TAKeySHA1Hash(Packet):
name = 'Trusted authority -... |
class TAKeySHA1Hash(Packet):
def guess_payload_class(self, p):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 1 | 120 | 7 | 1 | 6 | 4 | 4 | 0 | 5 | 4 | 3 | 1 | 4 | 0 | 1 |
30,031 | secdev/scapy | secdev_scapy/scapy/layers/tls/extensions.py | scapy.layers.tls.extensions.TAPreAgreed | from scapy.fields import ByteEnumField, ByteField, EnumField, FieldLenField, FieldListField, IntField, MayEnd, PacketField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, XStrLenField
from scapy.packet import Packet, Raw, Padding
class TAPreAgreed(Packet):
name = 'Trusted authority - p... |
class TAPreAgreed(Packet):
def guess_payload_class(self, p):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 1 | 120 | 6 | 1 | 5 | 4 | 3 | 0 | 5 | 4 | 3 | 1 | 4 | 0 | 1 |
30,032 | secdev/scapy | secdev_scapy/scapy/layers/tls/extensions.py | scapy.layers.tls.extensions.TAX509Name | from scapy.fields import ByteEnumField, ByteField, EnumField, FieldLenField, FieldListField, IntField, MayEnd, PacketField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, XStrLenField
from scapy.packet import Packet, Raw, Padding
class TAX509Name(Packet):
"""
XXX Section 3.4 of RFC... |
class TAX509Name(Packet):
'''
XXX Section 3.4 of RFC 4366. Implement a more specific DNField
rather than current StrLenField.
'''
def guess_payload_class(self, p):
pass | 2 | 1 | 2 | 0 | 2 | 0 | 1 | 0.57 | 1 | 1 | 1 | 0 | 1 | 0 | 1 | 120 | 12 | 1 | 7 | 4 | 5 | 4 | 5 | 4 | 3 | 1 | 4 | 0 | 1 |
30,033 | secdev/scapy | secdev_scapy/scapy/layers/tls/extensions.py | scapy.layers.tls.extensions.TLS_Ext_ALPN | from scapy.fields import ByteEnumField, ByteField, EnumField, FieldLenField, FieldListField, IntField, MayEnd, PacketField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, XStrLenField
class TLS_Ext_ALPN(TLS_Ext_PrettyPacketList):
name = 'TLS Extension - Application Layer Protocol Negot... |
class TLS_Ext_ALPN(TLS_Ext_PrettyPacketList):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 134 | 7 | 0 | 7 | 3 | 6 | 1 | 3 | 3 | 2 | 0 | 7 | 0 | 0 |
30,034 | secdev/scapy | secdev_scapy/scapy/layers/tls/extensions.py | scapy.layers.tls.extensions.TLS_Ext_CSR | from scapy.packet import Packet, Raw, Padding
from scapy.fields import ByteEnumField, ByteField, EnumField, FieldLenField, FieldListField, IntField, MayEnd, PacketField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, XStrLenField
class TLS_Ext_CSR(TLS_Ext_Unknown):
name = 'TLS Extensio... |
class TLS_Ext_CSR(TLS_Ext_Unknown):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 133 | 7 | 0 | 7 | 3 | 6 | 1 | 3 | 3 | 2 | 0 | 6 | 0 | 0 |
30,035 | secdev/scapy | secdev_scapy/scapy/layers/tls/extensions.py | scapy.layers.tls.extensions.TLS_Ext_ClientAuthz | from scapy.fields import ByteEnumField, ByteField, EnumField, FieldLenField, FieldListField, IntField, MayEnd, PacketField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, XStrLenField
class TLS_Ext_ClientAuthz(TLS_Ext_Unknown):
""" XXX Unsupported """
name = 'TLS Extension - Client... |
class TLS_Ext_ClientAuthz(TLS_Ext_Unknown):
''' XXX Unsupported '''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 133 | 6 | 0 | 5 | 3 | 4 | 2 | 3 | 3 | 2 | 0 | 6 | 0 | 0 |
30,036 | secdev/scapy | secdev_scapy/scapy/layers/tls/extensions.py | scapy.layers.tls.extensions.TLS_Ext_ClientCertType | from scapy.fields import ByteEnumField, ByteField, EnumField, FieldLenField, FieldListField, IntField, MayEnd, PacketField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, XStrLenField
class TLS_Ext_ClientCertType(TLS_Ext_Unknown):
name = 'TLS Extension - Certificate Type (client versio... |
class TLS_Ext_ClientCertType(TLS_Ext_Unknown):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 133 | 9 | 0 | 9 | 3 | 8 | 1 | 3 | 3 | 2 | 0 | 6 | 0 | 0 |
30,037 | secdev/scapy | secdev_scapy/scapy/layers/tls/extensions.py | scapy.layers.tls.extensions.TLS_Ext_ClientCertURL | from scapy.fields import ByteEnumField, ByteField, EnumField, FieldLenField, FieldListField, IntField, MayEnd, PacketField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, XStrLenField
class TLS_Ext_ClientCertURL(TLS_Ext_Unknown):
name = 'TLS Extension - Client Certificate URL'
fiel... |
class TLS_Ext_ClientCertURL(TLS_Ext_Unknown):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 133 | 4 | 0 | 4 | 3 | 3 | 1 | 3 | 3 | 2 | 0 | 6 | 0 | 0 |
30,038 | secdev/scapy | secdev_scapy/scapy/layers/tls/extensions.py | scapy.layers.tls.extensions.TLS_Ext_Cookie | import os
from scapy.fields import ByteEnumField, ByteField, EnumField, FieldLenField, FieldListField, IntField, MayEnd, PacketField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, XStrLenField
class TLS_Ext_Cookie(TLS_Ext_Unknown):
name = 'TLS Extension - Cookie'
fields_desc = [Sh... |
class TLS_Ext_Cookie(TLS_Ext_Unknown):
def build(self):
pass | 2 | 0 | 5 | 0 | 5 | 0 | 2 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 134 | 13 | 1 | 12 | 6 | 10 | 0 | 8 | 6 | 6 | 2 | 6 | 1 | 2 |
30,039 | secdev/scapy | secdev_scapy/scapy/layers/tls/extensions.py | scapy.layers.tls.extensions.TLS_Ext_EarlyDataIndication | from scapy.fields import ByteEnumField, ByteField, EnumField, FieldLenField, FieldListField, IntField, MayEnd, PacketField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, XStrLenField
class TLS_Ext_EarlyDataIndication(TLS_Ext_Unknown):
name = 'TLS Extension - Early Data'
fields_des... |
class TLS_Ext_EarlyDataIndication(TLS_Ext_Unknown):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 133 | 4 | 0 | 4 | 3 | 3 | 0 | 3 | 3 | 2 | 0 | 6 | 0 | 0 |
30,040 | secdev/scapy | secdev_scapy/scapy/layers/tls/extensions.py | scapy.layers.tls.extensions.TLS_Ext_EarlyDataIndicationTicket | from scapy.fields import ByteEnumField, ByteField, EnumField, FieldLenField, FieldListField, IntField, MayEnd, PacketField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, XStrLenField
class TLS_Ext_EarlyDataIndicationTicket(TLS_Ext_Unknown):
name = 'TLS Extension - Early Data Indicatio... |
class TLS_Ext_EarlyDataIndicationTicket(TLS_Ext_Unknown):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 133 | 5 | 0 | 5 | 3 | 4 | 0 | 3 | 3 | 2 | 0 | 6 | 0 | 0 |
30,041 | secdev/scapy | secdev_scapy/scapy/layers/tls/extensions.py | scapy.layers.tls.extensions.TLS_Ext_EncryptThenMAC | from scapy.fields import ByteEnumField, ByteField, EnumField, FieldLenField, FieldListField, IntField, MayEnd, PacketField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, XStrLenField
class TLS_Ext_EncryptThenMAC(TLS_Ext_Unknown):
name = 'TLS Extension - Encrypt-then-MAC'
fields_de... |
class TLS_Ext_EncryptThenMAC(TLS_Ext_Unknown):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 133 | 4 | 0 | 4 | 3 | 3 | 1 | 3 | 3 | 2 | 0 | 6 | 0 | 0 |
30,042 | secdev/scapy | secdev_scapy/scapy/layers/tls/extensions.py | scapy.layers.tls.extensions.TLS_Ext_EncryptedServerName | from scapy.fields import ByteEnumField, ByteField, EnumField, FieldLenField, FieldListField, IntField, MayEnd, PacketField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, XStrLenField
from scapy.layers.tls.crypto.suites import _tls_cipher_suites
from scapy.layers.tls.crypto.groups import _t... |
class TLS_Ext_EncryptedServerName(TLS_Ext_PrettyPacketList):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 134 | 19 | 0 | 19 | 3 | 18 | 0 | 3 | 3 | 2 | 0 | 7 | 0 | 0 |
30,043 | secdev/scapy | secdev_scapy/scapy/layers/tls/extensions.py | scapy.layers.tls.extensions.TLS_Ext_ExtendedMasterSecret | from scapy.fields import ByteEnumField, ByteField, EnumField, FieldLenField, FieldListField, IntField, MayEnd, PacketField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, XStrLenField
class TLS_Ext_ExtendedMasterSecret(TLS_Ext_Unknown):
name = 'TLS Extension - Extended Master Secret'
... |
class TLS_Ext_ExtendedMasterSecret(TLS_Ext_Unknown):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 133 | 4 | 0 | 4 | 3 | 3 | 1 | 3 | 3 | 2 | 0 | 6 | 0 | 0 |
30,044 | secdev/scapy | secdev_scapy/scapy/layers/tls/extensions.py | scapy.layers.tls.extensions.TLS_Ext_Heartbeat | from scapy.fields import ByteEnumField, ByteField, EnumField, FieldLenField, FieldListField, IntField, MayEnd, PacketField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, XStrLenField
class TLS_Ext_Heartbeat(TLS_Ext_Unknown):
name = 'TLS Extension - Heartbeat'
fields_desc = [ShortE... |
class TLS_Ext_Heartbeat(TLS_Ext_Unknown):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 133 | 7 | 0 | 7 | 3 | 6 | 1 | 3 | 3 | 2 | 0 | 6 | 0 | 0 |
30,045 | secdev/scapy | secdev_scapy/scapy/layers/tls/extensions.py | scapy.layers.tls.extensions.TLS_Ext_KeyShare | from scapy.fields import ByteEnumField, ByteField, EnumField, FieldLenField, FieldListField, IntField, MayEnd, PacketField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, XStrLenField
class TLS_Ext_KeyShare(TLS_Ext_Unknown):
name = 'TLS Extension - Key Share (dummy class)'
fields_d... |
class TLS_Ext_KeyShare(TLS_Ext_Unknown):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 133 | 4 | 0 | 4 | 3 | 3 | 0 | 3 | 3 | 2 | 0 | 6 | 0 | 0 |
30,046 | secdev/scapy | secdev_scapy/scapy/layers/tls/extensions.py | scapy.layers.tls.extensions.TLS_Ext_MaxFragLen | from scapy.fields import ByteEnumField, ByteField, EnumField, FieldLenField, FieldListField, IntField, MayEnd, PacketField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, XStrLenField
class TLS_Ext_MaxFragLen(TLS_Ext_Unknown):
name = 'TLS Extension - Max Fragment Length'
fields_des... |
class TLS_Ext_MaxFragLen(TLS_Ext_Unknown):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 133 | 8 | 0 | 8 | 3 | 7 | 1 | 3 | 3 | 2 | 0 | 6 | 0 | 0 |
30,047 | secdev/scapy | secdev_scapy/scapy/layers/tls/extensions.py | scapy.layers.tls.extensions.TLS_Ext_NPN | from scapy.fields import ByteEnumField, ByteField, EnumField, FieldLenField, FieldListField, IntField, MayEnd, PacketField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, XStrLenField
class TLS_Ext_NPN(TLS_Ext_PrettyPacketList):
"""
Defined in RFC-draft-agl-tls-nextprotoneg-03. Dep... |
class TLS_Ext_NPN(TLS_Ext_PrettyPacketList):
'''
Defined in RFC-draft-agl-tls-nextprotoneg-03. Deprecated in favour of ALPN.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 134 | 9 | 0 | 6 | 3 | 5 | 3 | 3 | 3 | 2 | 0 | 7 | 0 | 0 |
30,048 | secdev/scapy | secdev_scapy/scapy/layers/tls/extensions.py | scapy.layers.tls.extensions.TLS_Ext_PSKKeyExchangeModes | from scapy.fields import ByteEnumField, ByteField, EnumField, FieldLenField, FieldListField, IntField, MayEnd, PacketField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, XStrLenField
class TLS_Ext_PSKKeyExchangeModes(TLS_Ext_Unknown):
name = 'TLS Extension - PSK Key Exchange Modes'
... |
class TLS_Ext_PSKKeyExchangeModes(TLS_Ext_Unknown):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 133 | 10 | 0 | 10 | 3 | 9 | 0 | 3 | 3 | 2 | 0 | 6 | 0 | 0 |
30,049 | secdev/scapy | secdev_scapy/scapy/layers/tls/extensions.py | scapy.layers.tls.extensions.TLS_Ext_Padding | from scapy.fields import ByteEnumField, ByteField, EnumField, FieldLenField, FieldListField, IntField, MayEnd, PacketField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, XStrLenField
class TLS_Ext_Padding(TLS_Ext_Unknown):
name = 'TLS Extension - Padding'
fields_desc = [ShortEnumF... |
class TLS_Ext_Padding(TLS_Ext_Unknown):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 133 | 6 | 0 | 6 | 3 | 5 | 1 | 3 | 3 | 2 | 0 | 6 | 0 | 0 |
30,050 | secdev/scapy | secdev_scapy/scapy/layers/tls/extensions.py | scapy.layers.tls.extensions.TLS_Ext_PostHandshakeAuth | from scapy.fields import ByteEnumField, ByteField, EnumField, FieldLenField, FieldListField, IntField, MayEnd, PacketField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, XStrLenField
class TLS_Ext_PostHandshakeAuth(TLS_Ext_Unknown):
name = 'TLS Extension - Post Handshake Auth'
fie... |
class TLS_Ext_PostHandshakeAuth(TLS_Ext_Unknown):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 133 | 4 | 0 | 4 | 3 | 3 | 1 | 3 | 3 | 2 | 0 | 6 | 0 | 0 |
30,051 | secdev/scapy | secdev_scapy/scapy/layers/tls/extensions.py | scapy.layers.tls.extensions.TLS_Ext_PreSharedKey | from scapy.fields import ByteEnumField, ByteField, EnumField, FieldLenField, FieldListField, IntField, MayEnd, PacketField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, XStrLenField
class TLS_Ext_PreSharedKey(TLS_Ext_Unknown):
name = 'TLS Extension - Pre Shared Key (dummy class)'
... |
class TLS_Ext_PreSharedKey(TLS_Ext_Unknown):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 133 | 4 | 0 | 4 | 3 | 3 | 0 | 3 | 3 | 2 | 0 | 6 | 0 | 0 |
30,052 | secdev/scapy | secdev_scapy/scapy/layers/tls/extensions.py | scapy.layers.tls.extensions.TLS_Ext_PrettyPacketList | from scapy.config import conf
from scapy.themes import AnsiColorTheme
class TLS_Ext_PrettyPacketList(TLS_Ext_Unknown):
"""
Dummy extension used for server_name/ALPN/NPN for a lighter representation:
the final field is showed as a 1-line list rather than as lots of packets.
XXX Define a new condition fo... |
class TLS_Ext_PrettyPacketList(TLS_Ext_Unknown):
'''
Dummy extension used for server_name/ALPN/NPN for a lighter representation:
the final field is showed as a 1-line list rather than as lots of packets.
XXX Define a new condition for packet lists in Packet._show_or_dump?
'''
def _show_or_dump... | 2 | 2 | 40 | 1 | 38 | 5 | 7 | 0.26 | 1 | 2 | 1 | 4 | 1 | 1 | 1 | 134 | 47 | 2 | 39 | 12 | 36 | 10 | 27 | 10 | 25 | 7 | 6 | 2 | 7 |
30,053 | secdev/scapy | secdev_scapy/scapy/layers/tls/extensions.py | scapy.layers.tls.extensions.TLS_Ext_RecordSizeLimit | from scapy.fields import ByteEnumField, ByteField, EnumField, FieldLenField, FieldListField, IntField, MayEnd, PacketField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, XStrLenField
class TLS_Ext_RecordSizeLimit(TLS_Ext_Unknown):
name = 'TLS Extension - Record Size Limit'
fields_... |
class TLS_Ext_RecordSizeLimit(TLS_Ext_Unknown):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 133 | 5 | 0 | 5 | 3 | 4 | 1 | 3 | 3 | 2 | 0 | 6 | 0 | 0 |
30,054 | secdev/scapy | secdev_scapy/scapy/layers/tls/extensions.py | scapy.layers.tls.extensions.TLS_Ext_RenegotiationInfo | from scapy.fields import ByteEnumField, ByteField, EnumField, FieldLenField, FieldListField, IntField, MayEnd, PacketField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, XStrLenField
class TLS_Ext_RenegotiationInfo(TLS_Ext_Unknown):
name = 'TLS Extension - Renegotiation Indication'
... |
class TLS_Ext_RenegotiationInfo(TLS_Ext_Unknown):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 133 | 8 | 0 | 8 | 3 | 7 | 1 | 3 | 3 | 2 | 0 | 6 | 0 | 0 |
30,055 | secdev/scapy | secdev_scapy/scapy/layers/tls/extensions.py | scapy.layers.tls.extensions.TLS_Ext_ServerAuthz | from scapy.fields import ByteEnumField, ByteField, EnumField, FieldLenField, FieldListField, IntField, MayEnd, PacketField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, XStrLenField
class TLS_Ext_ServerAuthz(TLS_Ext_Unknown):
""" XXX Unsupported """
name = 'TLS Extension - Server... |
class TLS_Ext_ServerAuthz(TLS_Ext_Unknown):
''' XXX Unsupported '''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 133 | 6 | 0 | 5 | 3 | 4 | 2 | 3 | 3 | 2 | 0 | 6 | 0 | 0 |
30,056 | secdev/scapy | secdev_scapy/scapy/layers/tls/extensions.py | scapy.layers.tls.extensions.TLS_Ext_ServerCertType | from scapy.fields import ByteEnumField, ByteField, EnumField, FieldLenField, FieldListField, IntField, MayEnd, PacketField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, XStrLenField
class TLS_Ext_ServerCertType(TLS_Ext_Unknown):
name = 'TLS Extension - Certificate Type (server versio... |
class TLS_Ext_ServerCertType(TLS_Ext_Unknown):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 133 | 5 | 0 | 5 | 3 | 4 | 1 | 3 | 3 | 2 | 0 | 6 | 0 | 0 |
30,057 | secdev/scapy | secdev_scapy/scapy/layers/tls/extensions.py | scapy.layers.tls.extensions.TLS_Ext_ServerName | from scapy.fields import ByteEnumField, ByteField, EnumField, FieldLenField, FieldListField, IntField, MayEnd, PacketField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, XStrLenField
class TLS_Ext_ServerName(TLS_Ext_PrettyPacketList):
name = 'TLS Extension - Server Name'
fields_de... |
class TLS_Ext_ServerName(TLS_Ext_PrettyPacketList):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 134 | 9 | 0 | 9 | 3 | 8 | 1 | 3 | 3 | 2 | 0 | 7 | 0 | 0 |
30,058 | secdev/scapy | secdev_scapy/scapy/layers/tls/extensions.py | scapy.layers.tls.extensions.TLS_Ext_SessionTicket | from scapy.fields import ByteEnumField, ByteField, EnumField, FieldLenField, FieldListField, IntField, MayEnd, PacketField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, XStrLenField
class TLS_Ext_SessionTicket(TLS_Ext_Unknown):
"""
RFC 5077 updates RFC 4507 according to most impl... |
class TLS_Ext_SessionTicket(TLS_Ext_Unknown):
'''
RFC 5077 updates RFC 4507 according to most implementations, which do not
use another (useless) 'ticketlen' field after the global 'len' field.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.83 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 133 | 10 | 0 | 6 | 3 | 5 | 5 | 3 | 3 | 2 | 0 | 6 | 0 | 0 |
30,059 | secdev/scapy | secdev_scapy/scapy/layers/tls/extensions.py | scapy.layers.tls.extensions.TLS_Ext_SignatureAlgorithms | from scapy.fields import ByteEnumField, ByteField, EnumField, FieldLenField, FieldListField, IntField, MayEnd, PacketField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, XStrLenField
from scapy.layers.tls.keyexchange import SigAndHashAlgsLenField, SigAndHashAlgsField, _tls_hash_sig
class ... |
class TLS_Ext_SignatureAlgorithms(TLS_Ext_Unknown):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 133 | 10 | 0 | 10 | 3 | 9 | 2 | 3 | 3 | 2 | 0 | 6 | 0 | 0 |
30,060 | secdev/scapy | secdev_scapy/scapy/layers/tls/extensions.py | scapy.layers.tls.extensions.TLS_Ext_SignatureAlgorithmsCert | from scapy.layers.tls.keyexchange import SigAndHashAlgsLenField, SigAndHashAlgsField, _tls_hash_sig
from scapy.fields import ByteEnumField, ByteField, EnumField, FieldLenField, FieldListField, IntField, MayEnd, PacketField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, XStrLenField
class ... |
class TLS_Ext_SignatureAlgorithmsCert(TLS_Ext_Unknown):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 133 | 10 | 0 | 10 | 3 | 9 | 2 | 3 | 3 | 2 | 0 | 6 | 0 | 0 |
30,061 | secdev/scapy | secdev_scapy/scapy/layers/tls/extensions.py | scapy.layers.tls.extensions.TLS_Ext_SupportedEllipticCurves | class TLS_Ext_SupportedEllipticCurves(TLS_Ext_SupportedGroups):
pass | class TLS_Ext_SupportedEllipticCurves(TLS_Ext_SupportedGroups):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 133 | 2 | 0 | 2 | 1 | 1 | 1 | 2 | 1 | 1 | 0 | 7 | 0 | 0 |
30,062 | secdev/scapy | secdev_scapy/scapy/layers/tls/extensions.py | scapy.layers.tls.extensions.TLS_Ext_SupportedGroups | from scapy.fields import ByteEnumField, ByteField, EnumField, FieldLenField, FieldListField, IntField, MayEnd, PacketField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, XStrLenField
from scapy.layers.tls.crypto.groups import _tls_named_groups
class TLS_Ext_SupportedGroups(TLS_Ext_Unknown... |
class TLS_Ext_SupportedGroups(TLS_Ext_Unknown):
'''
This extension was known as 'Supported Elliptic Curves' before TLS 1.3
merged both group selection mechanisms for ECDH and FFDH.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.44 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 133 | 13 | 0 | 9 | 3 | 8 | 4 | 3 | 3 | 2 | 0 | 6 | 0 | 0 |
30,063 | secdev/scapy | secdev_scapy/scapy/layers/tls/extensions.py | scapy.layers.tls.extensions.TLS_Ext_SupportedPointFormat | from scapy.fields import ByteEnumField, ByteField, EnumField, FieldLenField, FieldListField, IntField, MayEnd, PacketField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, XStrLenField
class TLS_Ext_SupportedPointFormat(TLS_Ext_Unknown):
name = 'TLS Extension - Supported Point Format'
... |
class TLS_Ext_SupportedPointFormat(TLS_Ext_Unknown):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 133 | 9 | 0 | 9 | 3 | 8 | 1 | 3 | 3 | 2 | 0 | 6 | 0 | 0 |
30,064 | secdev/scapy | secdev_scapy/scapy/layers/tls/extensions.py | scapy.layers.tls.extensions.TLS_Ext_SupportedVersion_CH | from scapy.layers.tls.basefields import _tls_version
from scapy.fields import ByteEnumField, ByteField, EnumField, FieldLenField, FieldListField, IntField, MayEnd, PacketField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, XStrLenField
class TLS_Ext_SupportedVersion_CH(TLS_Ext_Unknown):
... |
class TLS_Ext_SupportedVersion_CH(TLS_Ext_Unknown):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 133 | 10 | 0 | 10 | 3 | 9 | 0 | 3 | 3 | 2 | 0 | 6 | 0 | 0 |
30,065 | secdev/scapy | secdev_scapy/scapy/layers/tls/extensions.py | scapy.layers.tls.extensions.TLS_Ext_SupportedVersion_SH | from scapy.fields import ByteEnumField, ByteField, EnumField, FieldLenField, FieldListField, IntField, MayEnd, PacketField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, XStrLenField
from scapy.layers.tls.basefields import _tls_version
class TLS_Ext_SupportedVersion_SH(TLS_Ext_Unknown):
... |
class TLS_Ext_SupportedVersion_SH(TLS_Ext_Unknown):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 133 | 5 | 0 | 5 | 3 | 4 | 0 | 3 | 3 | 2 | 0 | 6 | 0 | 0 |
30,066 | secdev/scapy | secdev_scapy/scapy/layers/tls/extensions.py | scapy.layers.tls.extensions.TLS_Ext_SupportedVersions | from scapy.fields import ByteEnumField, ByteField, EnumField, FieldLenField, FieldListField, IntField, MayEnd, PacketField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, XStrLenField
class TLS_Ext_SupportedVersions(TLS_Ext_Unknown):
name = 'TLS Extension - Supported Versions (dummy cl... |
class TLS_Ext_SupportedVersions(TLS_Ext_Unknown):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 133 | 4 | 0 | 4 | 3 | 3 | 0 | 3 | 3 | 2 | 0 | 6 | 0 | 0 |
30,067 | secdev/scapy | secdev_scapy/scapy/layers/tls/extensions.py | scapy.layers.tls.extensions.TLS_Ext_TicketEarlyDataInfo | from scapy.fields import ByteEnumField, ByteField, EnumField, FieldLenField, FieldListField, IntField, MayEnd, PacketField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, XStrLenField
class TLS_Ext_TicketEarlyDataInfo(TLS_Ext_Unknown):
name = 'TLS Extension - Ticket Early Data Info'
... |
class TLS_Ext_TicketEarlyDataInfo(TLS_Ext_Unknown):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 133 | 5 | 0 | 5 | 3 | 4 | 0 | 3 | 3 | 2 | 0 | 6 | 0 | 0 |
30,068 | secdev/scapy | secdev_scapy/scapy/layers/tls/extensions.py | scapy.layers.tls.extensions.TLS_Ext_TruncatedHMAC | from scapy.fields import ByteEnumField, ByteField, EnumField, FieldLenField, FieldListField, IntField, MayEnd, PacketField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, XStrLenField
class TLS_Ext_TruncatedHMAC(TLS_Ext_Unknown):
name = 'TLS Extension - Truncated HMAC'
fields_desc ... |
class TLS_Ext_TruncatedHMAC(TLS_Ext_Unknown):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 133 | 4 | 0 | 4 | 3 | 3 | 1 | 3 | 3 | 2 | 0 | 6 | 0 | 0 |
30,069 | secdev/scapy | secdev_scapy/scapy/layers/tls/extensions.py | scapy.layers.tls.extensions.TLS_Ext_TrustedCAInd | from scapy.packet import Packet, Raw, Padding
from scapy.fields import ByteEnumField, ByteField, EnumField, FieldLenField, FieldListField, IntField, MayEnd, PacketField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, XStrLenField
class TLS_Ext_TrustedCAInd(TLS_Ext_Unknown):
name = 'TLS... |
class TLS_Ext_TrustedCAInd(TLS_Ext_Unknown):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 133 | 7 | 0 | 7 | 3 | 6 | 1 | 3 | 3 | 2 | 0 | 6 | 0 | 0 |
30,070 | secdev/scapy | secdev_scapy/scapy/layers/tls/extensions.py | scapy.layers.tls.extensions.TLS_Ext_Unknown | import struct
from scapy.layers.tls.session import _GenericTLSSessionInheritance
from scapy.fields import ByteEnumField, ByteField, EnumField, FieldLenField, FieldListField, IntField, MayEnd, PacketField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, XStrLenField
class TLS_Ext_Unknown(_Ge... |
class TLS_Ext_Unknown(_GenericTLSSessionInheritance):
'''
We put this here rather than in extensions.py in order to avoid
circular imports...
'''
def post_build(self, p, pay):
pass | 2 | 1 | 5 | 0 | 5 | 0 | 2 | 0.36 | 1 | 0 | 0 | 38 | 1 | 0 | 1 | 133 | 16 | 1 | 11 | 5 | 9 | 4 | 8 | 5 | 6 | 2 | 5 | 1 | 2 |
30,071 | secdev/scapy | secdev_scapy/scapy/layers/tls/extensions.py | scapy.layers.tls.extensions.TLS_Ext_UserMapping | from scapy.fields import ByteEnumField, ByteField, EnumField, FieldLenField, FieldListField, IntField, MayEnd, PacketField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, XStrLenField
class TLS_Ext_UserMapping(TLS_Ext_Unknown):
name = 'TLS Extension - User Mapping'
fields_desc = [S... |
class TLS_Ext_UserMapping(TLS_Ext_Unknown):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 133 | 8 | 0 | 8 | 3 | 7 | 1 | 3 | 3 | 2 | 0 | 6 | 0 | 0 |
30,072 | secdev/scapy | secdev_scapy/scapy/layers/tls/extensions.py | scapy.layers.tls.extensions._ExtensionsField | from scapy.layers.tls.session import _GenericTLSSessionInheritance
from scapy.compat import raw
import struct
from scapy.config import conf
from scapy.fields import ByteEnumField, ByteField, EnumField, FieldLenField, FieldListField, IntField, MayEnd, PacketField, PacketListField, ShortEnumField, ShortField, StrFixedLen... |
class _ExtensionsField(StrLenField):
def i2len(self, pkt, i):
pass
def getfield(self, pkt, s):
pass
def i2m(self, pkt, i):
pass
def m2i(self, pkt, m):
pass | 5 | 0 | 15 | 0 | 12 | 4 | 5 | 0.27 | 1 | 7 | 6 | 0 | 4 | 0 | 4 | 47 | 65 | 4 | 52 | 17 | 44 | 14 | 45 | 16 | 38 | 8 | 7 | 4 | 18 |
30,073 | secdev/scapy | secdev_scapy/scapy/layers/tls/extensions.py | scapy.layers.tls.extensions._ExtensionsLenField | from scapy.fields import ByteEnumField, ByteField, EnumField, FieldLenField, FieldListField, IntField, MayEnd, PacketField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, XStrLenField
import struct
class _ExtensionsLenField(FieldLenField):
def getfield(self, pkt, s):
"""
... |
class _ExtensionsLenField(FieldLenField):
def getfield(self, pkt, s):
'''
We try to compute a length, usually from a msglen parsed earlier.
If we can not find any length, we consider 'extensions_present'
(from RFC 5246) to be False.
'''
pass
def addfield(self, ... | 3 | 2 | 21 | 2 | 12 | 8 | 4 | 0.6 | 1 | 1 | 0 | 0 | 2 | 0 | 2 | 36 | 43 | 4 | 25 | 10 | 22 | 15 | 24 | 10 | 21 | 5 | 5 | 4 | 8 |
30,074 | secdev/scapy | secdev_scapy/scapy/layers/tls/extensions.py | scapy.layers.tls.extensions._StatusReqField | from scapy.fields import ByteEnumField, ByteField, EnumField, FieldLenField, FieldListField, IntField, MayEnd, PacketField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, XStrLenField
class _StatusReqField(PacketListField):
def m2i(self, pkt, m):
idtype = pkt.stype
cls... |
class _StatusReqField(PacketListField):
def m2i(self, pkt, m):
pass | 2 | 0 | 6 | 0 | 6 | 0 | 2 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 51 | 7 | 0 | 7 | 4 | 5 | 0 | 7 | 4 | 5 | 2 | 7 | 1 | 2 |
30,075 | secdev/scapy | secdev_scapy/scapy/layers/tls/extensions.py | scapy.layers.tls.extensions._TAListField | from scapy.fields import ByteEnumField, ByteField, EnumField, FieldLenField, FieldListField, IntField, MayEnd, PacketField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, XStrLenField
class _TAListField(PacketListField):
"""
Specific version that selects the right Trusted Authority... |
class _TAListField(PacketListField):
'''
Specific version that selects the right Trusted Authority (previous TA*)
class to be used for dissection based on idtype.
'''
def m2i(self, pkt, m):
pass | 2 | 1 | 6 | 0 | 6 | 0 | 2 | 0.57 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 51 | 12 | 1 | 7 | 4 | 5 | 4 | 7 | 4 | 5 | 2 | 7 | 1 | 2 |
30,076 | secdev/scapy | secdev_scapy/scapy/layers/tls/handshake.py | scapy.layers.tls.handshake.SupDataEntry | from scapy.fields import ByteEnumField, ByteField, Field, FieldLenField, IntField, PacketField, PacketLenField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, ThreeBytesField, UTCTimeField
from scapy.packet import Packet, Raw, Padding
class SupDataEntry(Packet):
name = 'Supplemental Da... |
class SupDataEntry(Packet):
def guess_payload_class(self, p):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 1 | 120 | 9 | 1 | 8 | 4 | 6 | 0 | 5 | 4 | 3 | 1 | 4 | 0 | 1 |
30,077 | secdev/scapy | secdev_scapy/scapy/layers/tls/handshake.py | scapy.layers.tls.handshake.SupDataEntryUM | from scapy.packet import Packet, Raw, Padding
from scapy.fields import ByteEnumField, ByteField, Field, FieldLenField, IntField, PacketField, PacketLenField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, ThreeBytesField, UTCTimeField
class SupDataEntryUM(Packet):
name = 'Supplemental ... |
class SupDataEntryUM(Packet):
def guess_payload_class(self, p):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 1 | 120 | 11 | 1 | 10 | 4 | 8 | 0 | 5 | 4 | 3 | 1 | 4 | 0 | 1 |
30,078 | secdev/scapy | secdev_scapy/scapy/layers/tls/handshake.py | scapy.layers.tls.handshake.TLS13Certificate | from scapy.fields import ByteEnumField, ByteField, Field, FieldLenField, IntField, PacketField, PacketLenField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, ThreeBytesField, UTCTimeField
class TLS13Certificate(_TLSHandshake):
name = 'TLS 1.3 Handshake - Certificate'
fields_desc =... |
class TLS13Certificate(_TLSHandshake):
def post_dissection_tls_session_update(self, msg_str):
pass | 2 | 0 | 11 | 0 | 11 | 0 | 4 | 0.05 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 136 | 23 | 1 | 22 | 7 | 20 | 1 | 13 | 7 | 11 | 4 | 6 | 2 | 4 |
30,079 | secdev/scapy | secdev_scapy/scapy/layers/tls/handshake.py | scapy.layers.tls.handshake.TLS13CertificateRequest | from scapy.layers.tls.extensions import _ExtensionsLenField, _ExtensionsField, _cert_status_type, TLS_Ext_PostHandshakeAuth, TLS_Ext_SupportedVersion_CH, TLS_Ext_SignatureAlgorithms, TLS_Ext_SupportedVersion_SH, TLS_Ext_EarlyDataIndication, _tls_hello_retry_magic, TLS_Ext_ExtendedMasterSecret, TLS_Ext_EncryptThenMAC
fr... |
class TLS13CertificateRequest(_TLSHandshake):
def tls_session_update(self, msg_str):
pass | 2 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 136 | 16 | 1 | 15 | 4 | 13 | 0 | 6 | 4 | 4 | 1 | 6 | 0 | 1 |
30,080 | secdev/scapy | secdev_scapy/scapy/layers/tls/handshake.py | scapy.layers.tls.handshake.TLS13ClientHello | from scapy.layers.tls.crypto.suites import _tls_cipher_suites, _tls_cipher_suites_cls, _GenericCipherSuite, _GenericCipherSuiteMetaclass
from scapy.fields import ByteEnumField, ByteField, Field, FieldLenField, IntField, PacketField, PacketLenField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenFi... |
class TLS13ClientHello(_TLSHandshake):
'''
TLS 1.3 ClientHello, with abilities to handle extensions.
The Random structure is 32 random bytes without any GMT time
'''
def post_build(self, p, pay):
pass
def tls_session_update(self, msg_str):
'''
Either for parsing or bui... | 3 | 2 | 45 | 4 | 25 | 17 | 9 | 0.54 | 1 | 6 | 5 | 0 | 2 | 1 | 2 | 137 | 128 | 15 | 76 | 21 | 73 | 41 | 51 | 21 | 48 | 9 | 6 | 5 | 18 |
30,081 | secdev/scapy | secdev_scapy/scapy/layers/tls/handshake.py | scapy.layers.tls.handshake.TLS13EndOfEarlyData | from scapy.fields import ByteEnumField, ByteField, Field, FieldLenField, IntField, PacketField, PacketLenField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, ThreeBytesField, UTCTimeField
class TLS13EndOfEarlyData(_TLSHandshake):
name = 'TLS 1.3 Handshake - End Of Early Data'
fiel... |
class TLS13EndOfEarlyData(_TLSHandshake):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 135 | 5 | 1 | 4 | 3 | 3 | 0 | 3 | 3 | 2 | 0 | 6 | 0 | 0 |
30,082 | secdev/scapy | secdev_scapy/scapy/layers/tls/handshake.py | scapy.layers.tls.handshake.TLS13HelloRetryRequest | import struct
from scapy.layers.tls.extensions import _ExtensionsLenField, _ExtensionsField, _cert_status_type, TLS_Ext_PostHandshakeAuth, TLS_Ext_SupportedVersion_CH, TLS_Ext_SignatureAlgorithms, TLS_Ext_SupportedVersion_SH, TLS_Ext_EarlyDataIndication, _tls_hello_retry_magic, TLS_Ext_ExtendedMasterSecret, TLS_Ext_Enc... |
class TLS13HelloRetryRequest(_TLSHandshake):
def build(self):
pass
def tls_session_update(self, msg_str):
pass | 3 | 0 | 16 | 1 | 14 | 2 | 3 | 0.1 | 1 | 2 | 1 | 0 | 2 | 2 | 2 | 137 | 38 | 4 | 31 | 14 | 28 | 3 | 30 | 14 | 27 | 3 | 6 | 1 | 5 |
30,083 | secdev/scapy | secdev_scapy/scapy/layers/tls/handshake.py | scapy.layers.tls.handshake.TLS13KeyUpdate | from scapy.fields import ByteEnumField, ByteField, Field, FieldLenField, IntField, PacketField, PacketLenField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, ThreeBytesField, UTCTimeField
from scapy.layers.tls.session import _GenericTLSSessionInheritance, readConnState, writeConnState
cla... |
class TLS13KeyUpdate(_TLSHandshake):
def post_build_tls_session_update(self, msg_str):
pass
def post_dissection_tls_session_update(self, msg_str):
pass | 3 | 0 | 9 | 0 | 9 | 0 | 2 | 0 | 1 | 1 | 1 | 0 | 2 | 0 | 2 | 137 | 24 | 2 | 22 | 7 | 19 | 0 | 15 | 7 | 12 | 3 | 6 | 1 | 4 |
30,084 | secdev/scapy | secdev_scapy/scapy/layers/tls/handshake.py | scapy.layers.tls.handshake.TLS13NewSessionTicket | import os
from scapy.layers.tls.extensions import _ExtensionsLenField, _ExtensionsField, _cert_status_type, TLS_Ext_PostHandshakeAuth, TLS_Ext_SupportedVersion_CH, TLS_Ext_SignatureAlgorithms, TLS_Ext_SupportedVersion_SH, TLS_Ext_EarlyDataIndication, _tls_hello_retry_magic, TLS_Ext_ExtendedMasterSecret, TLS_Ext_Encrypt... |
class TLS13NewSessionTicket(_TLSHandshake):
'''
Uncomment the TicketField line for parsing a RFC 5077 ticket.
'''
def build(self):
pass
def post_dissection_tls_session_update(self, msg_str):
pass | 3 | 1 | 14 | 2 | 9 | 3 | 4 | 0.34 | 1 | 0 | 0 | 0 | 2 | 4 | 2 | 137 | 51 | 6 | 35 | 10 | 32 | 12 | 20 | 10 | 17 | 5 | 6 | 1 | 7 |
30,085 | secdev/scapy | secdev_scapy/scapy/layers/tls/handshake.py | scapy.layers.tls.handshake.TLS13ServerHello | from scapy.error import log_runtime, warning
from scapy.layers.tls.crypto.suites import _tls_cipher_suites, _tls_cipher_suites_cls, _GenericCipherSuite, _GenericCipherSuiteMetaclass
from scapy.layers.tls.session import _GenericTLSSessionInheritance, readConnState, writeConnState
from scapy.utils import randstring, repr... |
class TLS13ServerHello(TLSServerHello):
''' TLS 1.3 ServerHello '''
@classmethod
def dispatch_hook(cls, _pkt=None, *args, **kargs):
pass
def post_build(self, p, pay):
pass
def tls_session_update(self, msg_str):
'''
Either for parsing or building, we store the serve... | 5 | 2 | 24 | 2 | 18 | 5 | 6 | 0.3 | 1 | 5 | 4 | 0 | 2 | 0 | 3 | 142 | 82 | 8 | 57 | 14 | 52 | 17 | 48 | 13 | 44 | 14 | 7 | 3 | 19 |
30,086 | secdev/scapy | secdev_scapy/scapy/layers/tls/handshake.py | scapy.layers.tls.handshake.TLSCertificate | from scapy.fields import ByteEnumField, ByteField, Field, FieldLenField, IntField, PacketField, PacketLenField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, ThreeBytesField, UTCTimeField
class TLSCertificate(_TLSHandshake):
"""
XXX We do not support RFC 5081, i.e. OpenPGP certifi... |
class TLSCertificate(_TLSHandshake):
'''
XXX We do not support RFC 5081, i.e. OpenPGP certificates.
'''
@classmethod
def dispatch_hook(cls, _pkt=None, *args, **kargs):
pass
def post_dissection_tls_session_update(self, msg_str):
pass | 4 | 1 | 7 | 0 | 7 | 0 | 3 | 0.14 | 1 | 1 | 1 | 0 | 1 | 0 | 2 | 137 | 26 | 2 | 21 | 8 | 17 | 3 | 15 | 7 | 12 | 3 | 6 | 2 | 5 |
30,087 | secdev/scapy | secdev_scapy/scapy/layers/tls/handshake.py | scapy.layers.tls.handshake.TLSCertificateRequest | from scapy.fields import ByteEnumField, ByteField, Field, FieldLenField, IntField, PacketField, PacketLenField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, ThreeBytesField, UTCTimeField
from scapy.layers.tls.keyexchange import _TLSSignature, _TLSServerParamsField, _TLSSignatureField, Ser... |
class TLSCertificateRequest(_TLSHandshake):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 135 | 19 | 0 | 19 | 3 | 18 | 3 | 3 | 3 | 2 | 0 | 6 | 0 | 0 |
30,088 | secdev/scapy | secdev_scapy/scapy/layers/tls/handshake.py | scapy.layers.tls.handshake.TLSCertificateStatus | from scapy.layers.tls.extensions import _ExtensionsLenField, _ExtensionsField, _cert_status_type, TLS_Ext_PostHandshakeAuth, TLS_Ext_SupportedVersion_CH, TLS_Ext_SignatureAlgorithms, TLS_Ext_SupportedVersion_SH, TLS_Ext_EarlyDataIndication, _tls_hello_retry_magic, TLS_Ext_ExtendedMasterSecret, TLS_Ext_EncryptThenMAC
fr... |
class TLSCertificateStatus(_TLSHandshake):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 135 | 9 | 0 | 9 | 3 | 8 | 0 | 3 | 3 | 2 | 0 | 6 | 0 | 0 |
30,089 | secdev/scapy | secdev_scapy/scapy/layers/tls/handshake.py | scapy.layers.tls.handshake.TLSCertificateURL | from scapy.fields import ByteEnumField, ByteField, Field, FieldLenField, IntField, PacketField, PacketLenField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, ThreeBytesField, UTCTimeField
class TLSCertificateURL(_TLSHandshake):
"""
Defined in RFC 4366. PkiPath structure of section... |
class TLSCertificateURL(_TLSHandshake):
'''
Defined in RFC 4366. PkiPath structure of section 8 is not implemented yet.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.38 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 135 | 11 | 0 | 8 | 3 | 7 | 3 | 3 | 3 | 2 | 0 | 6 | 0 | 0 |
30,090 | secdev/scapy | secdev_scapy/scapy/layers/tls/handshake.py | scapy.layers.tls.handshake.TLSCertificateVerify | from scapy.fields import ByteEnumField, ByteField, Field, FieldLenField, IntField, PacketField, PacketLenField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, ThreeBytesField, UTCTimeField
from scapy.layers.tls.keyexchange import _TLSSignature, _TLSServerParamsField, _TLSSignatureField, Ser... |
class TLSCertificateVerify(_TLSHandshake):
def build(self, *args, **kargs):
pass
def post_dissection(self, pkt):
pass | 3 | 0 | 26 | 1 | 24 | 3 | 11 | 0.13 | 1 | 1 | 1 | 0 | 2 | 1 | 2 | 137 | 62 | 4 | 54 | 17 | 51 | 7 | 47 | 17 | 44 | 12 | 6 | 3 | 21 |
30,091 | secdev/scapy | secdev_scapy/scapy/layers/tls/handshake.py | scapy.layers.tls.handshake.TLSClientHello | from scapy.layers.tls.crypto.suites import _tls_cipher_suites, _tls_cipher_suites_cls, _GenericCipherSuite, _GenericCipherSuiteMetaclass
from scapy.utils import randstring, repr_hex
from scapy.layers.tls.extensions import _ExtensionsLenField, _ExtensionsField, _cert_status_type, TLS_Ext_PostHandshakeAuth, TLS_Ext_Suppo... |
class TLSClientHello(_TLSHandshake):
'''
TLS ClientHello, with abilities to handle extensions.
The Random structure follows the RFC 5246: while it is 32-byte long,
many implementations use the first 4 bytes as a gmt_unix_time, and then
the remaining 28 byts should be completely random. This was des... | 3 | 2 | 27 | 2 | 19 | 7 | 7 | 0.41 | 1 | 4 | 3 | 0 | 2 | 1 | 2 | 137 | 97 | 11 | 64 | 16 | 61 | 26 | 39 | 16 | 36 | 10 | 6 | 5 | 14 |
30,092 | secdev/scapy | secdev_scapy/scapy/layers/tls/handshake.py | scapy.layers.tls.handshake.TLSClientKeyExchange | from scapy.fields import ByteEnumField, ByteField, Field, FieldLenField, IntField, PacketField, PacketLenField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, ThreeBytesField, UTCTimeField
from scapy.packet import Packet, Raw, Padding
class TLSClientKeyExchange(_TLSHandshake):
"""
... |
class TLSClientKeyExchange(_TLSHandshake):
'''
This class mostly works like TLSServerKeyExchange and its 'params' field.
'''
def build(self, *args, **kargs):
pass
def tls_session_update(self, msg_str):
'''
Finalize the EXTMS messages and compute the hash
'''
... | 3 | 2 | 21 | 1 | 16 | 4 | 5 | 0.3 | 1 | 4 | 3 | 0 | 2 | 1 | 2 | 137 | 52 | 4 | 37 | 13 | 32 | 11 | 28 | 13 | 23 | 6 | 6 | 2 | 9 |
30,093 | secdev/scapy | secdev_scapy/scapy/layers/tls/handshake.py | scapy.layers.tls.handshake.TLSEncryptedExtensions | from scapy.fields import ByteEnumField, ByteField, Field, FieldLenField, IntField, PacketField, PacketLenField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, ThreeBytesField, UTCTimeField
from scapy.layers.tls.session import _GenericTLSSessionInheritance, readConnState, writeConnState
from... |
class TLSEncryptedExtensions(_TLSHandshake):
def post_build_tls_session_update(self, msg_str):
pass
def post_dissection_tls_session_update(self, msg_str):
pass | 3 | 0 | 31 | 4 | 21 | 7 | 7 | 0.29 | 1 | 3 | 3 | 0 | 2 | 0 | 2 | 137 | 70 | 9 | 49 | 15 | 46 | 14 | 39 | 15 | 36 | 7 | 6 | 3 | 14 |
30,094 | secdev/scapy | secdev_scapy/scapy/layers/tls/handshake.py | scapy.layers.tls.handshake.TLSFinished | from scapy.error import log_runtime, warning
from scapy.fields import ByteEnumField, ByteField, Field, FieldLenField, IntField, PacketField, PacketLenField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, ThreeBytesField, UTCTimeField
from scapy.layers.tls.session import _GenericTLSSessionIn... |
class TLSFinished(_TLSHandshake):
def build(self, *args, **kargs):
pass
def post_dissection(self, pkt):
pass
def post_build_tls_session_update(self, msg_str):
pass
def post_dissection_tls_session_update(self, msg_str):
pass | 5 | 0 | 20 | 0 | 20 | 1 | 6 | 0.02 | 1 | 2 | 2 | 0 | 4 | 1 | 4 | 139 | 90 | 4 | 86 | 25 | 81 | 2 | 72 | 25 | 67 | 8 | 6 | 3 | 25 |
30,095 | secdev/scapy | secdev_scapy/scapy/layers/tls/handshake.py | scapy.layers.tls.handshake.TLSHelloRequest | from scapy.fields import ByteEnumField, ByteField, Field, FieldLenField, IntField, PacketField, PacketLenField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, ThreeBytesField, UTCTimeField
class TLSHelloRequest(_TLSHandshake):
name = 'TLS Handshake - Hello Request'
fields_desc = [B... |
class TLSHelloRequest(_TLSHandshake):
def tls_session_update(self, msg_str):
'''
Message should not be added to the list of handshake messages
that will be hashed in the finished and certificate verify messages.
'''
pass | 2 | 1 | 6 | 0 | 2 | 4 | 1 | 0.67 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 136 | 11 | 1 | 6 | 4 | 4 | 4 | 5 | 4 | 3 | 1 | 6 | 0 | 1 |
30,096 | secdev/scapy | secdev_scapy/scapy/layers/tls/handshake.py | scapy.layers.tls.handshake.TLSHelloVerifyRequest | from scapy.fields import ByteEnumField, ByteField, Field, FieldLenField, IntField, PacketField, PacketLenField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, ThreeBytesField, UTCTimeField
class TLSHelloVerifyRequest(_TLSHandshake):
"""
Defined for DTLS, see RFC 6347.
"""
n... |
class TLSHelloVerifyRequest(_TLSHandshake):
'''
Defined for DTLS, see RFC 6347.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.38 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 135 | 11 | 0 | 8 | 3 | 7 | 3 | 3 | 3 | 2 | 0 | 6 | 0 | 0 |
30,097 | secdev/scapy | secdev_scapy/scapy/layers/tls/handshake.py | scapy.layers.tls.handshake.TLSNewSessionTicket | from scapy.fields import ByteEnumField, ByteField, Field, FieldLenField, IntField, PacketField, PacketLenField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, ThreeBytesField, UTCTimeField
class TLSNewSessionTicket(_TLSHandshake):
"""
XXX When knowing the right secret, we should be... |
class TLSNewSessionTicket(_TLSHandshake):
'''
XXX When knowing the right secret, we should be able to read the ticket.
'''
@classmethod
def dispatch_hook(cls, _pkt=None, *args, **kargs):
pass
def post_dissection_tls_session_update(self, msg_str):
pass | 4 | 1 | 5 | 0 | 5 | 0 | 2 | 0.17 | 1 | 1 | 1 | 0 | 1 | 0 | 2 | 137 | 23 | 2 | 18 | 7 | 14 | 3 | 12 | 6 | 9 | 2 | 6 | 1 | 4 |
30,098 | secdev/scapy | secdev_scapy/scapy/layers/tls/handshake.py | scapy.layers.tls.handshake.TLSServerHello | from scapy.layers.tls.session import _GenericTLSSessionInheritance, readConnState, writeConnState
from scapy.layers.tls.crypto.suites import _tls_cipher_suites, _tls_cipher_suites_cls, _GenericCipherSuite, _GenericCipherSuiteMetaclass
from scapy.utils import randstring, repr_hex
from scapy.layers.tls.extensions import ... |
class TLSServerHello(_TLSHandshake):
'''
TLS ServerHello, with abilities to handle extensions.
The Random structure follows the RFC 5246: while it is 32-byte long,
many implementations use the first 4 bytes as a gmt_unix_time, and then
the remaining 28 byts should be completely random. This was des... | 6 | 2 | 18 | 1 | 14 | 3 | 4 | 0.25 | 1 | 7 | 6 | 1 | 3 | 2 | 4 | 139 | 109 | 14 | 76 | 19 | 70 | 19 | 49 | 18 | 44 | 10 | 6 | 3 | 17 |
30,099 | secdev/scapy | secdev_scapy/scapy/layers/tls/handshake.py | scapy.layers.tls.handshake.TLSServerHelloDone | from scapy.fields import ByteEnumField, ByteField, Field, FieldLenField, IntField, PacketField, PacketLenField, PacketListField, ShortEnumField, ShortField, StrFixedLenField, StrLenField, ThreeBytesField, UTCTimeField
class TLSServerHelloDone(_TLSHandshake):
name = 'TLS Handshake - Server Hello Done'
fields_de... |
class TLSServerHelloDone(_TLSHandshake):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 135 | 4 | 0 | 4 | 3 | 3 | 0 | 3 | 3 | 2 | 0 | 6 | 0 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.