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,300 | secdev/scapy | secdev_scapy/scapy/layers/x509.py | scapy.layers.x509.X509_TBSCertificate | from scapy.compat import plain_str
from scapy.asn1.asn1 import ASN1_Codecs, ASN1_OID, ASN1_IA5_STRING, ASN1_NULL, ASN1_PRINTABLE_STRING, ASN1_UTC_TIME, ASN1_UTF8_STRING
from scapy.asn1packet import ASN1_Packet
from scapy.asn1fields import ASN1F_BIT_STRING_ENCAPS, ASN1F_BIT_STRING, ASN1F_BMP_STRING, ASN1F_BOOLEAN, ASN1F... |
class X509_TBSCertificate(ASN1_Packet):
def get_issuer(self):
pass
def get_issuer_str(self):
'''
Returns a one-line string containing every type/value
in a rather specific order. sorted() built-in ensures unicity.
'''
pass
def get_subject(self):
pa... | 5 | 1 | 11 | 0 | 9 | 2 | 4 | 0.12 | 1 | 0 | 0 | 0 | 4 | 0 | 4 | 126 | 75 | 4 | 65 | 19 | 60 | 8 | 39 | 19 | 34 | 5 | 5 | 2 | 14 |
30,301 | secdev/scapy | secdev_scapy/scapy/layers/x509.py | scapy.layers.x509.X509_URI | from scapy.asn1.asn1 import ASN1_Codecs, ASN1_OID, ASN1_IA5_STRING, ASN1_NULL, ASN1_PRINTABLE_STRING, ASN1_UTC_TIME, ASN1_UTF8_STRING
from scapy.asn1packet import ASN1_Packet
from scapy.asn1fields import ASN1F_BIT_STRING_ENCAPS, ASN1F_BIT_STRING, ASN1F_BMP_STRING, ASN1F_BOOLEAN, ASN1F_CHOICE, ASN1F_enum_INTEGER, ASN1F_... |
class X509_URI(ASN1_Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 122 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 5 | 0 | 0 |
30,302 | secdev/scapy | secdev_scapy/scapy/layers/x509.py | scapy.layers.x509.X509_Validity | from scapy.volatile import ZuluTime, GeneralizedTime
from scapy.asn1.asn1 import ASN1_Codecs, ASN1_OID, ASN1_IA5_STRING, ASN1_NULL, ASN1_PRINTABLE_STRING, ASN1_UTC_TIME, ASN1_UTF8_STRING
from scapy.asn1packet import ASN1_Packet
from scapy.asn1fields import ASN1F_BIT_STRING_ENCAPS, ASN1F_BIT_STRING, ASN1F_BMP_STRING, AS... |
class X509_Validity(ASN1_Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 122 | 9 | 0 | 9 | 3 | 8 | 0 | 3 | 3 | 2 | 0 | 5 | 0 | 0 |
30,303 | secdev/scapy | secdev_scapy/scapy/layers/x509.py | scapy.layers.x509.X509_X400Address | from scapy.asn1packet import ASN1_Packet
from scapy.asn1fields import ASN1F_BIT_STRING_ENCAPS, ASN1F_BIT_STRING, ASN1F_BMP_STRING, ASN1F_BOOLEAN, ASN1F_CHOICE, ASN1F_enum_INTEGER, ASN1F_ENUMERATED, ASN1F_field, ASN1F_FLAGS, ASN1F_GENERALIZED_TIME, ASN1F_IA5_STRING, ASN1F_INTEGER, ASN1F_ISO646_STRING, ASN1F_NULL, ASN1F_... |
class X509_X400Address(ASN1_Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 122 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 5 | 0 | 0 |
30,304 | secdev/scapy | secdev_scapy/scapy/layers/x509.py | scapy.layers.x509._PacketFieldRaw | from scapy.fields import PacketField, MultipleTypeField
from scapy.asn1.mib import conf
class _PacketFieldRaw(PacketField):
def getfield(self, pkt, s):
i = self.m2i(pkt, s)
remain = ''
if conf.raw_layer in i:
r = i[conf.raw_layer]
del r.underlayer.payload
... |
class _PacketFieldRaw(PacketField):
def getfield(self, pkt, s):
pass | 2 | 0 | 8 | 0 | 8 | 0 | 2 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 47 | 9 | 0 | 9 | 5 | 7 | 0 | 9 | 5 | 7 | 2 | 8 | 1 | 2 |
30,305 | secdev/scapy | secdev_scapy/scapy/layers/x509.py | scapy.layers.x509._X509_ExtField | from scapy.asn1fields import ASN1F_BIT_STRING_ENCAPS, ASN1F_BIT_STRING, ASN1F_BMP_STRING, ASN1F_BOOLEAN, ASN1F_CHOICE, ASN1F_enum_INTEGER, ASN1F_ENUMERATED, ASN1F_field, ASN1F_FLAGS, ASN1F_GENERALIZED_TIME, ASN1F_IA5_STRING, ASN1F_INTEGER, ASN1F_ISO646_STRING, ASN1F_NULL, ASN1F_OID, ASN1F_optional, ASN1F_PACKET, ASN1F_... |
class _X509_ExtField(ASN1F_STRING_PacketField):
def m2i(self, pkt, s):
pass | 2 | 0 | 10 | 0 | 10 | 0 | 3 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 23 | 11 | 0 | 11 | 3 | 9 | 0 | 8 | 3 | 6 | 3 | 5 | 1 | 3 |
30,306 | secdev/scapy | secdev_scapy/scapy/layers/zigbee.py | scapy.layers.zigbee.LinkStatusEntry | from scapy.fields import BitField, ByteField, XLEIntField, ConditionalField, ByteEnumField, EnumField, BitEnumField, FieldListField, FlagsField, IntField, PacketListField, ShortField, StrField, StrFixedLenField, StrLenField, XLEShortField, XStrField
from scapy.packet import bind_layers, bind_bottom_up, Packet
class Li... |
class LinkStatusEntry(Packet):
def extract_padding(self, p):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0.18 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 120 | 15 | 2 | 11 | 4 | 9 | 2 | 5 | 4 | 3 | 1 | 4 | 0 | 1 |
30,307 | secdev/scapy | secdev_scapy/scapy/layers/zigbee.py | scapy.layers.zigbee.ZCLAttributeReport | from scapy.packet import bind_layers, bind_bottom_up, Packet
from scapy.fields import BitField, ByteField, XLEIntField, ConditionalField, ByteEnumField, EnumField, BitEnumField, FieldListField, FlagsField, IntField, PacketListField, ShortField, StrField, StrFixedLenField, StrLenField, XLEShortField, XStrField
class ZC... |
class ZCLAttributeReport(Packet):
def extract_padding(self, s):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0.33 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 120 | 13 | 1 | 9 | 4 | 7 | 3 | 5 | 4 | 3 | 1 | 4 | 0 | 1 |
30,308 | secdev/scapy | secdev_scapy/scapy/layers/zigbee.py | scapy.layers.zigbee.ZCLConfigureReportingRecord | from scapy.packet import bind_layers, bind_bottom_up, Packet
from scapy.fields import BitField, ByteField, XLEIntField, ConditionalField, ByteEnumField, EnumField, BitEnumField, FieldListField, FlagsField, IntField, PacketListField, ShortField, StrField, StrFixedLenField, StrLenField, XLEShortField, XStrField
class ZC... |
class ZCLConfigureReportingRecord(Packet):
def extract_padding(self, s):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0.25 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 120 | 36 | 1 | 28 | 4 | 26 | 7 | 5 | 4 | 3 | 1 | 4 | 0 | 1 |
30,309 | secdev/scapy | secdev_scapy/scapy/layers/zigbee.py | scapy.layers.zigbee.ZCLConfigureReportingResponseRecord | from scapy.fields import BitField, ByteField, XLEIntField, ConditionalField, ByteEnumField, EnumField, BitEnumField, FieldListField, FlagsField, IntField, PacketListField, ShortField, StrField, StrFixedLenField, StrLenField, XLEShortField, XStrField
from scapy.packet import bind_layers, bind_bottom_up, Packet
class ZC... |
class ZCLConfigureReportingResponseRecord(Packet):
def extract_padding(self, s):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0.2 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 120 | 19 | 1 | 15 | 4 | 13 | 3 | 5 | 4 | 3 | 1 | 4 | 0 | 1 |
30,310 | secdev/scapy | secdev_scapy/scapy/layers/zigbee.py | scapy.layers.zigbee.ZCLGeneralConfigureReporting | from scapy.packet import bind_layers, bind_bottom_up, Packet
from scapy.fields import BitField, ByteField, XLEIntField, ConditionalField, ByteEnumField, EnumField, BitEnumField, FieldListField, FlagsField, IntField, PacketListField, ShortField, StrField, StrFixedLenField, StrLenField, XLEShortField, XStrField
class ZC... |
class ZCLGeneralConfigureReporting(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 5 | 0 | 5 | 3 | 4 | 0 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
30,311 | secdev/scapy | secdev_scapy/scapy/layers/zigbee.py | scapy.layers.zigbee.ZCLGeneralConfigureReportingResponse | from scapy.packet import bind_layers, bind_bottom_up, Packet
from scapy.fields import BitField, ByteField, XLEIntField, ConditionalField, ByteEnumField, EnumField, BitEnumField, FieldListField, FlagsField, IntField, PacketListField, ShortField, StrField, StrFixedLenField, StrLenField, XLEShortField, XStrField
class ZC... |
class ZCLGeneralConfigureReportingResponse(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 5 | 0 | 5 | 3 | 4 | 2 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
30,312 | secdev/scapy | secdev_scapy/scapy/layers/zigbee.py | scapy.layers.zigbee.ZCLGeneralDefaultResponse | from scapy.fields import BitField, ByteField, XLEIntField, ConditionalField, ByteEnumField, EnumField, BitEnumField, FieldListField, FlagsField, IntField, PacketListField, ShortField, StrField, StrFixedLenField, StrLenField, XLEShortField, XStrField
from scapy.packet import bind_layers, bind_bottom_up, Packet
class ZC... |
class ZCLGeneralDefaultResponse(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.33 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 8 | 0 | 6 | 3 | 5 | 2 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
30,313 | secdev/scapy | secdev_scapy/scapy/layers/zigbee.py | scapy.layers.zigbee.ZCLGeneralReadAttributes | from scapy.packet import bind_layers, bind_bottom_up, Packet
from scapy.fields import BitField, ByteField, XLEIntField, ConditionalField, ByteEnumField, EnumField, BitEnumField, FieldListField, FlagsField, IntField, PacketListField, ShortField, StrField, StrFixedLenField, StrLenField, XLEShortField, XStrField
class ZC... |
class ZCLGeneralReadAttributes(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 5 | 0 | 5 | 3 | 4 | 0 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
30,314 | secdev/scapy | secdev_scapy/scapy/layers/zigbee.py | scapy.layers.zigbee.ZCLGeneralReadAttributesResponse | from scapy.fields import BitField, ByteField, XLEIntField, ConditionalField, ByteEnumField, EnumField, BitEnumField, FieldListField, FlagsField, IntField, PacketListField, ShortField, StrField, StrFixedLenField, StrLenField, XLEShortField, XStrField
from scapy.packet import bind_layers, bind_bottom_up, Packet
class ZC... |
class ZCLGeneralReadAttributesResponse(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 5 | 0 | 5 | 3 | 4 | 1 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
30,315 | secdev/scapy | secdev_scapy/scapy/layers/zigbee.py | scapy.layers.zigbee.ZCLGeneralReportAttributes | from scapy.fields import BitField, ByteField, XLEIntField, ConditionalField, ByteEnumField, EnumField, BitEnumField, FieldListField, FlagsField, IntField, PacketListField, ShortField, StrField, StrFixedLenField, StrLenField, XLEShortField, XStrField
from scapy.packet import bind_layers, bind_bottom_up, Packet
class ZC... |
class ZCLGeneralReportAttributes(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 5 | 0 | 5 | 3 | 4 | 0 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
30,316 | secdev/scapy | secdev_scapy/scapy/layers/zigbee.py | scapy.layers.zigbee.ZCLGeneralWriteAttributes | from scapy.fields import BitField, ByteField, XLEIntField, ConditionalField, ByteEnumField, EnumField, BitEnumField, FieldListField, FlagsField, IntField, PacketListField, ShortField, StrField, StrFixedLenField, StrLenField, XLEShortField, XStrField
from scapy.packet import bind_layers, bind_bottom_up, Packet
class ZC... |
class ZCLGeneralWriteAttributes(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 5 | 0 | 5 | 3 | 4 | 0 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
30,317 | secdev/scapy | secdev_scapy/scapy/layers/zigbee.py | scapy.layers.zigbee.ZCLGeneralWriteAttributesResponse | from scapy.fields import BitField, ByteField, XLEIntField, ConditionalField, ByteEnumField, EnumField, BitEnumField, FieldListField, FlagsField, IntField, PacketListField, ShortField, StrField, StrFixedLenField, StrLenField, XLEShortField, XStrField
from scapy.packet import bind_layers, bind_bottom_up, Packet
class ZC... |
class ZCLGeneralWriteAttributesResponse(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 5 | 0 | 5 | 3 | 4 | 0 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
30,318 | secdev/scapy | secdev_scapy/scapy/layers/zigbee.py | scapy.layers.zigbee.ZCLIASZoneZoneEnrollRequest | from scapy.fields import BitField, ByteField, XLEIntField, ConditionalField, ByteEnumField, EnumField, BitEnumField, FieldListField, FlagsField, IntField, PacketListField, ShortField, StrField, StrFixedLenField, StrLenField, XLEShortField, XStrField
from scapy.packet import bind_layers, bind_bottom_up, Packet
class ZC... |
class ZCLIASZoneZoneEnrollRequest(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.33 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 8 | 0 | 6 | 3 | 5 | 2 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
30,319 | secdev/scapy | secdev_scapy/scapy/layers/zigbee.py | scapy.layers.zigbee.ZCLIASZoneZoneEnrollResponse | from scapy.packet import bind_layers, bind_bottom_up, Packet
from scapy.fields import BitField, ByteField, XLEIntField, ConditionalField, ByteEnumField, EnumField, BitEnumField, FieldListField, FlagsField, IntField, PacketListField, ShortField, StrField, StrFixedLenField, StrLenField, XLEShortField, XStrField
class ZC... |
class ZCLIASZoneZoneEnrollResponse(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.33 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 8 | 0 | 6 | 3 | 5 | 2 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
30,320 | secdev/scapy | secdev_scapy/scapy/layers/zigbee.py | scapy.layers.zigbee.ZCLIASZoneZoneStatusChangeNotification | from scapy.packet import bind_layers, bind_bottom_up, Packet
from scapy.fields import BitField, ByteField, XLEIntField, ConditionalField, ByteEnumField, EnumField, BitEnumField, FieldListField, FlagsField, IntField, PacketListField, ShortField, StrField, StrFixedLenField, StrLenField, XLEShortField, XStrField
class ZC... |
class ZCLIASZoneZoneStatusChangeNotification(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.63 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 12 | 0 | 8 | 3 | 7 | 5 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
30,321 | secdev/scapy | secdev_scapy/scapy/layers/zigbee.py | scapy.layers.zigbee.ZCLMeteringGetProfile | from scapy.packet import bind_layers, bind_bottom_up, Packet
from scapy.fields import BitField, ByteField, XLEIntField, ConditionalField, ByteEnumField, EnumField, BitEnumField, FieldListField, FlagsField, IntField, PacketListField, ShortField, StrField, StrFixedLenField, StrLenField, XLEShortField, XStrField
class ZC... |
class ZCLMeteringGetProfile(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.71 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 10 | 0 | 7 | 3 | 6 | 5 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
30,322 | secdev/scapy | secdev_scapy/scapy/layers/zigbee.py | scapy.layers.zigbee.ZCLPriceGetCurrentPrice | from scapy.fields import BitField, ByteField, XLEIntField, ConditionalField, ByteEnumField, EnumField, BitEnumField, FieldListField, FlagsField, IntField, PacketListField, ShortField, StrField, StrFixedLenField, StrLenField, XLEShortField, XStrField
from scapy.packet import bind_layers, bind_bottom_up, Packet
class ZC... |
class ZCLPriceGetCurrentPrice(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 6 | 0 | 6 | 3 | 5 | 0 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
30,323 | secdev/scapy | secdev_scapy/scapy/layers/zigbee.py | scapy.layers.zigbee.ZCLPriceGetScheduledPrices | from scapy.packet import bind_layers, bind_bottom_up, Packet
from scapy.fields import BitField, ByteField, XLEIntField, ConditionalField, ByteEnumField, EnumField, BitEnumField, FieldListField, FlagsField, IntField, PacketListField, ShortField, StrField, StrFixedLenField, StrLenField, XLEShortField, XStrField
class ZC... |
class ZCLPriceGetScheduledPrices(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.33 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 6 | 0 | 6 | 3 | 5 | 2 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
30,324 | secdev/scapy | secdev_scapy/scapy/layers/zigbee.py | scapy.layers.zigbee.ZCLPricePublishPrice | from scapy.fields import BitField, ByteField, XLEIntField, ConditionalField, ByteEnumField, EnumField, BitEnumField, FieldListField, FlagsField, IntField, PacketListField, ShortField, StrField, StrFixedLenField, StrLenField, XLEShortField, XStrField
from scapy.packet import bind_layers, bind_bottom_up, Packet
class ZC... |
class ZCLPricePublishPrice(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.87 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 119 | 24 | 0 | 23 | 3 | 22 | 20 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
30,325 | secdev/scapy | secdev_scapy/scapy/layers/zigbee.py | scapy.layers.zigbee.ZCLReadAttributeStatusRecord | from scapy.packet import bind_layers, bind_bottom_up, Packet
from scapy.fields import BitField, ByteField, XLEIntField, ConditionalField, ByteEnumField, EnumField, BitEnumField, FieldListField, FlagsField, IntField, PacketListField, ShortField, StrField, StrFixedLenField, StrLenField, XLEShortField, XStrField
class ZC... |
class ZCLReadAttributeStatusRecord(Packet):
def extract_padding(self, s):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0.25 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 120 | 21 | 1 | 16 | 4 | 14 | 4 | 5 | 4 | 3 | 1 | 4 | 0 | 1 |
30,326 | secdev/scapy | secdev_scapy/scapy/layers/zigbee.py | scapy.layers.zigbee.ZCLWriteAttributeRecord | from scapy.packet import bind_layers, bind_bottom_up, Packet
from scapy.fields import BitField, ByteField, XLEIntField, ConditionalField, ByteEnumField, EnumField, BitEnumField, FieldListField, FlagsField, IntField, PacketListField, ShortField, StrField, StrFixedLenField, StrLenField, XLEShortField, XStrField
class ZC... |
class ZCLWriteAttributeRecord(Packet):
def extract_padding(self, s):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0.33 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 120 | 13 | 1 | 9 | 4 | 7 | 3 | 5 | 4 | 3 | 1 | 4 | 0 | 1 |
30,327 | secdev/scapy | secdev_scapy/scapy/layers/zigbee.py | scapy.layers.zigbee.ZCLWriteAttributeStatusRecord | from scapy.fields import BitField, ByteField, XLEIntField, ConditionalField, ByteEnumField, EnumField, BitEnumField, FieldListField, FlagsField, IntField, PacketListField, ShortField, StrField, StrFixedLenField, StrLenField, XLEShortField, XStrField
from scapy.packet import bind_layers, bind_bottom_up, Packet
class ZC... |
class ZCLWriteAttributeStatusRecord(Packet):
def extract_padding(self, s):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0.18 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 120 | 14 | 1 | 11 | 4 | 9 | 2 | 5 | 4 | 3 | 1 | 4 | 0 | 1 |
30,328 | secdev/scapy | secdev_scapy/scapy/layers/zigbee.py | scapy.layers.zigbee.ZDPActiveEPReq | from scapy.packet import bind_layers, bind_bottom_up, Packet
from scapy.fields import BitField, ByteField, XLEIntField, ConditionalField, ByteEnumField, EnumField, BitEnumField, FieldListField, FlagsField, IntField, PacketListField, ShortField, StrField, StrFixedLenField, StrLenField, XLEShortField, XStrField
class ZD... |
class ZDPActiveEPReq(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 6 | 0 | 5 | 3 | 4 | 1 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
30,329 | secdev/scapy | secdev_scapy/scapy/layers/zigbee.py | scapy.layers.zigbee.ZDPDeviceAnnce | from scapy.layers.dot15d4 import dot15d4AddressField, Dot15d4Beacon, Dot15d4, Dot15d4FCS
from scapy.packet import bind_layers, bind_bottom_up, Packet
from scapy.fields import BitField, ByteField, XLEIntField, ConditionalField, ByteEnumField, EnumField, BitEnumField, FieldListField, FlagsField, IntField, PacketListField... |
class ZDPDeviceAnnce(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.21 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 17 | 0 | 14 | 3 | 13 | 3 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
30,330 | secdev/scapy | secdev_scapy/scapy/layers/zigbee.py | scapy.layers.zigbee.ZEP1 | from scapy.fields import BitField, ByteField, XLEIntField, ConditionalField, ByteEnumField, EnumField, BitEnumField, FieldListField, FlagsField, IntField, PacketListField, ShortField, StrField, StrFixedLenField, StrLenField, XLEShortField, XStrField
class ZEP1(ZEP2):
name = 'Zigbee Encapsulation Protocol (V1)'
... |
class ZEP1(ZEP2):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 121 | 12 | 0 | 12 | 3 | 11 | 1 | 3 | 3 | 2 | 0 | 5 | 0 | 0 |
30,331 | secdev/scapy | secdev_scapy/scapy/layers/zigbee.py | scapy.layers.zigbee.ZEP2 | from scapy.layers.ntp import TimeStampField
from scapy.layers.dot15d4 import dot15d4AddressField, Dot15d4Beacon, Dot15d4, Dot15d4FCS
from scapy.compat import orb
from scapy.fields import BitField, ByteField, XLEIntField, ConditionalField, ByteEnumField, EnumField, BitEnumField, FieldListField, FlagsField, IntField, Pac... |
class ZEP2(Packet):
@classmethod
def dispatch_hook(cls, _pkt=b'', *args, **kargs):
pass
def guess_payload_class(self, payload):
pass | 4 | 0 | 7 | 0 | 7 | 0 | 3 | 0.03 | 1 | 3 | 3 | 1 | 1 | 0 | 2 | 121 | 31 | 2 | 29 | 7 | 25 | 1 | 14 | 6 | 11 | 4 | 4 | 2 | 6 |
30,332 | secdev/scapy | secdev_scapy/scapy/layers/zigbee.py | scapy.layers.zigbee.ZigBeeBeacon | from scapy.layers.dot15d4 import dot15d4AddressField, Dot15d4Beacon, Dot15d4, Dot15d4FCS
from scapy.packet import bind_layers, bind_bottom_up, Packet
from scapy.fields import BitField, ByteField, XLEIntField, ConditionalField, ByteEnumField, EnumField, BitEnumField, FieldListField, FlagsField, IntField, PacketListField... |
class ZigBeeBeacon(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.79 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 25 | 0 | 14 | 3 | 13 | 11 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
30,333 | secdev/scapy | secdev_scapy/scapy/layers/zigbee.py | scapy.layers.zigbee.ZigbeeAppCommandPayload | from scapy.layers.dot15d4 import dot15d4AddressField, Dot15d4Beacon, Dot15d4, Dot15d4FCS
from scapy.fields import BitField, ByteField, XLEIntField, ConditionalField, ByteEnumField, EnumField, BitEnumField, FieldListField, FlagsField, IntField, PacketListField, ShortField, StrField, StrFixedLenField, StrLenField, XLESho... |
class ZigbeeAppCommandPayload(Packet):
def guess_payload_class(self, payload):
pass | 2 | 0 | 6 | 0 | 5 | 1 | 2 | 0.1 | 1 | 1 | 1 | 0 | 1 | 0 | 1 | 120 | 119 | 1 | 107 | 4 | 105 | 11 | 7 | 4 | 5 | 2 | 4 | 1 | 2 |
30,334 | secdev/scapy | secdev_scapy/scapy/layers/zigbee.py | scapy.layers.zigbee.ZigbeeAppDataPayload | from scapy.packet import bind_layers, bind_bottom_up, Packet
from scapy.fields import BitField, ByteField, XLEIntField, ConditionalField, ByteEnumField, EnumField, BitEnumField, FieldListField, FlagsField, IntField, PacketListField, ShortField, StrField, StrFixedLenField, StrLenField, XLEShortField, XStrField
class Zi... |
class ZigbeeAppDataPayload(Packet):
def guess_payload_class(self, payload):
pass | 2 | 0 | 12 | 0 | 12 | 3 | 5 | 0.23 | 1 | 4 | 4 | 0 | 1 | 0 | 1 | 120 | 84 | 1 | 70 | 4 | 68 | 16 | 11 | 4 | 9 | 5 | 4 | 2 | 5 |
30,335 | secdev/scapy | secdev_scapy/scapy/layers/zigbee.py | scapy.layers.zigbee.ZigbeeAppDataPayloadStub | from scapy.packet import bind_layers, bind_bottom_up, Packet
from scapy.fields import BitField, ByteField, XLEIntField, ConditionalField, ByteEnumField, EnumField, BitEnumField, FieldListField, FlagsField, IntField, PacketListField, ShortField, StrField, StrFixedLenField, StrLenField, XLEShortField, XStrField
class Zi... |
class ZigbeeAppDataPayloadStub(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.47 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 21 | 0 | 17 | 3 | 16 | 8 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
30,336 | secdev/scapy | secdev_scapy/scapy/layers/zigbee.py | scapy.layers.zigbee.ZigbeeClusterLibrary | from scapy.packet import bind_layers, bind_bottom_up, Packet
from scapy.fields import BitField, ByteField, XLEIntField, ConditionalField, ByteEnumField, EnumField, BitEnumField, FieldListField, FlagsField, IntField, PacketListField, ShortField, StrField, StrFixedLenField, StrLenField, XLEShortField, XStrField
class Zi... |
class ZigbeeClusterLibrary(Packet):
def guess_payload_class(self, payload):
pass | 2 | 0 | 34 | 0 | 25 | 9 | 16 | 0.52 | 1 | 6 | 6 | 0 | 1 | 1 | 1 | 120 | 60 | 1 | 42 | 6 | 40 | 22 | 22 | 5 | 20 | 16 | 4 | 4 | 16 |
30,337 | secdev/scapy | secdev_scapy/scapy/layers/zigbee.py | scapy.layers.zigbee.ZigbeeDeviceProfile | from scapy.packet import bind_layers, bind_bottom_up, Packet
from scapy.fields import BitField, ByteField, XLEIntField, ConditionalField, ByteEnumField, EnumField, BitEnumField, FieldListField, FlagsField, IntField, PacketListField, ShortField, StrField, StrFixedLenField, StrLenField, XLEShortField, XStrField
class Zi... |
class ZigbeeDeviceProfile(Packet):
def guess_payload_class(self, payload):
pass | 2 | 0 | 6 | 0 | 6 | 0 | 3 | 0.09 | 1 | 2 | 2 | 0 | 1 | 0 | 1 | 120 | 13 | 1 | 11 | 4 | 9 | 1 | 8 | 4 | 6 | 3 | 4 | 1 | 3 |
30,338 | secdev/scapy | secdev_scapy/scapy/layers/zigbee.py | scapy.layers.zigbee.ZigbeeNWK | from scapy.layers.dot15d4 import dot15d4AddressField, Dot15d4Beacon, Dot15d4, Dot15d4FCS
from scapy.packet import bind_layers, bind_bottom_up, Packet
from scapy.fields import BitField, ByteField, XLEIntField, ConditionalField, ByteEnumField, EnumField, BitEnumField, FieldListField, FlagsField, IntField, PacketListField... |
class ZigbeeNWK(Packet):
@classmethod
def dispatch_hook(cls, _pkt=None, *args, **kargs):
pass
def guess_payload_class(self, payload):
pass | 4 | 0 | 8 | 0 | 8 | 0 | 4 | 0.21 | 1 | 4 | 4 | 0 | 1 | 0 | 2 | 121 | 40 | 5 | 34 | 7 | 30 | 7 | 15 | 6 | 12 | 4 | 4 | 2 | 7 |
30,339 | secdev/scapy | secdev_scapy/scapy/layers/zigbee.py | scapy.layers.zigbee.ZigbeeNWKCommandPayload | from scapy.packet import bind_layers, bind_bottom_up, Packet
from scapy.fields import BitField, ByteField, XLEIntField, ConditionalField, ByteEnumField, EnumField, BitEnumField, FieldListField, FlagsField, IntField, PacketListField, ShortField, StrField, StrFixedLenField, StrLenField, XLEShortField, XStrField
from scap... |
class ZigbeeNWKCommandPayload(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.65 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 212 | 13 | 148 | 3 | 147 | 96 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
30,340 | secdev/scapy | secdev_scapy/scapy/layers/zigbee.py | scapy.layers.zigbee.ZigbeeNWKStub | from scapy.packet import bind_layers, bind_bottom_up, Packet
from scapy.fields import BitField, ByteField, XLEIntField, ConditionalField, ByteEnumField, EnumField, BitEnumField, FieldListField, FlagsField, IntField, PacketListField, ShortField, StrField, StrFixedLenField, StrLenField, XLEShortField, XStrField
class Zi... |
class ZigbeeNWKStub(Packet):
def guess_payload_class(self, payload):
pass | 2 | 0 | 5 | 0 | 5 | 0 | 2 | 0.31 | 1 | 1 | 1 | 0 | 1 | 0 | 1 | 120 | 15 | 1 | 13 | 4 | 11 | 4 | 7 | 4 | 5 | 2 | 4 | 1 | 2 |
30,341 | secdev/scapy | secdev_scapy/scapy/layers/zigbee.py | scapy.layers.zigbee.ZigbeeSecurityHeader | from scapy.fields import BitField, ByteField, XLEIntField, ConditionalField, ByteEnumField, EnumField, BitEnumField, FieldListField, FlagsField, IntField, PacketListField, ShortField, StrField, StrFixedLenField, StrLenField, XLEShortField, XStrField
from scapy.packet import bind_layers, bind_bottom_up, Packet
from scap... |
class ZigbeeSecurityHeader(Packet):
def post_dissect(self, s):
pass | 2 | 0 | 7 | 0 | 6 | 2 | 2 | 0.48 | 1 | 0 | 0 | 0 | 1 | 2 | 1 | 120 | 44 | 1 | 33 | 7 | 31 | 16 | 9 | 7 | 7 | 2 | 4 | 1 | 2 |
30,342 | secdev/scapy | secdev_scapy/scapy/layers/zigbee.py | scapy.layers.zigbee._DiscreteString | from scapy.fields import BitField, ByteField, XLEIntField, ConditionalField, ByteEnumField, EnumField, BitEnumField, FieldListField, FlagsField, IntField, PacketListField, ShortField, StrField, StrFixedLenField, StrLenField, XLEShortField, XStrField
import struct
class _DiscreteString(StrLenField):
def getfield(s... |
class _DiscreteString(StrLenField):
def getfield(self, pkt, s):
pass | 2 | 0 | 13 | 0 | 12 | 2 | 4 | 0.15 | 1 | 2 | 0 | 0 | 1 | 1 | 1 | 44 | 14 | 0 | 13 | 6 | 11 | 2 | 12 | 6 | 10 | 4 | 7 | 1 | 4 |
30,343 | secdev/scapy | secdev_scapy/scapy/libs/extcap.py | scapy.libs.extcap._ExtcapInterfaceProvider | from scapy.supersocket import SuperSocket
import functools
from typing import cast, Any, Dict, List, NoReturn, Optional, Tuple, Type, Union
from scapy.interfaces import network_name, resolve_iface, InterfaceProvider, NetworkInterface
import re
from scapy.error import warning
class _ExtcapInterfaceProvider(InterfacePro... |
class _ExtcapInterfaceProvider(InterfaceProvider):
'''
Interface provider made to hook on a extcap binary
'''
def __init__(self, *args: Any, **kwargs: Any) -> None:
pass
def load(self) -> Dict[str, NetworkInterface]:
pass
def _l2listen(self, _: Any) -> Type[SuperSocket]:
... | 7 | 2 | 7 | 0 | 7 | 0 | 2 | 0.13 | 1 | 12 | 4 | 1 | 6 | 1 | 6 | 14 | 59 | 8 | 47 | 21 | 37 | 6 | 30 | 17 | 23 | 4 | 2 | 2 | 9 |
30,344 | secdev/scapy | secdev_scapy/scapy/libs/extcap.py | scapy.libs.extcap._ExtcapNetworkInterface | from scapy.interfaces import network_name, resolve_iface, InterfaceProvider, NetworkInterface
from typing import cast, Any, Dict, List, NoReturn, Optional, Tuple, Type, Union
class _ExtcapNetworkInterface(NetworkInterface):
"""
Extcap NetworkInterface
"""
def get_extcap_config(self) -> Dict[str, Tuple... |
class _ExtcapNetworkInterface(NetworkInterface):
'''
Extcap NetworkInterface
'''
def get_extcap_config(self) -> Dict[str, Tuple[str, ...]]:
'''
Return a list of available configuration options on an extcap interface
'''
pass
def get_extcap_cmd(self, **kwarg: Dict[s... | 3 | 3 | 19 | 0 | 15 | 6 | 4 | 0.45 | 1 | 2 | 0 | 0 | 2 | 0 | 2 | 15 | 44 | 2 | 31 | 6 | 28 | 14 | 16 | 6 | 13 | 6 | 2 | 3 | 7 |
30,345 | secdev/scapy | secdev_scapy/scapy/libs/extcap.py | scapy.libs.extcap._ExtcapSocket | from scapy.utils import PcapReader, _create_fifo, _open_fifo
from scapy.packet import Packet
from typing import cast, Any, Dict, List, NoReturn, Optional, Tuple, Type, Union
import subprocess
from scapy.data import MTU
from scapy.interfaces import network_name, resolve_iface, InterfaceProvider, NetworkInterface
from sc... |
class _ExtcapSocket(SuperSocket):
'''
Read packets at layer 2 using an extcap command
'''
@staticmethod
def select(sockets: List[SuperSocket], remain: Optional[float]=None) -> List[SuperSocket]:
pass
def __init__(self, *_: Any, **kwarg: Any) -> None:
pass
def recv(self, x:... | 6 | 1 | 8 | 0 | 7 | 1 | 2 | 0.22 | 1 | 8 | 2 | 0 | 3 | 5 | 4 | 35 | 41 | 5 | 32 | 17 | 25 | 7 | 28 | 15 | 23 | 3 | 4 | 1 | 6 |
30,346 | secdev/scapy | secdev_scapy/scapy/libs/rfc3961.py | scapy.libs.rfc3961.ChecksumType | import enum
class ChecksumType(enum.IntEnum):
CRC32 = 1
RSA_MD4 = 2
RSA_MD4_DES = 3
RSA_MD5_DES = 8
HMAC_SHA1_DES3_KD = 12
HMAC_SHA1_96_AES128 = 15
HMAC_SHA1_96_AES256 = 16
HMAC_SHA256_128_AES128 = 19
HMAC_SHA384_192_AES256 = 20
HMAC_MD5 = -138 |
class ChecksumType(enum.IntEnum):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 55 | 18 | 0 | 10 | 10 | 9 | 8 | 10 | 10 | 9 | 0 | 3 | 0 | 0 |
30,347 | secdev/scapy | secdev_scapy/scapy/libs/rfc3961.py | scapy.libs.rfc3961.EncryptionType | import enum
class EncryptionType(enum.IntEnum):
DES_CBC_CRC = 1
DES_CBC_MD4 = 2
DES_CBC_MD5 = 3
DES3_CBC_SHA1_KD = 16
AES128_CTS_HMAC_SHA1_96 = 17
AES256_CTS_HMAC_SHA1_96 = 18
AES128_CTS_HMAC_SHA256_128 = 19
AES256_CTS_HMAC_SHA384_192 = 20
RC4_HMAC = 23
RC4_HMAC_EXP = 24 |
class EncryptionType(enum.IntEnum):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 55 | 12 | 0 | 11 | 11 | 10 | 1 | 11 | 11 | 10 | 0 | 3 | 0 | 0 |
30,348 | secdev/scapy | secdev_scapy/scapy/libs/rfc3961.py | scapy.libs.rfc3961.InvalidChecksum | class InvalidChecksum(ValueError):
pass | class InvalidChecksum(ValueError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 4 | 0 | 0 |
30,349 | secdev/scapy | secdev_scapy/scapy/libs/rfc3961.py | scapy.libs.rfc3961.Key | import os
from typing import Any, Callable, List, Optional, Type, Union
class Key(object):
def __init__(self, etype: Union[EncryptionType, int, None]=None, key: bytes=b'', cksumtype: Union[ChecksumType, int, None]=None) -> None:
"""
Kerberos Key object.
:param etype: the EncryptionType
... |
class Key(object):
def __init__(self, etype: Union[EncryptionType, int, None]=None, key: bytes=b'', cksumtype: Union[ChecksumType, int, None]=None) -> None:
'''
Kerberos Key object.
:param etype: the EncryptionType
:param cksumtype: the ChecksumType
:param key: the bytes co... | 14 | 8 | 15 | 1 | 9 | 6 | 3 | 0.62 | 1 | 6 | 3 | 0 | 7 | 5 | 10 | 10 | 166 | 16 | 93 | 28 | 74 | 58 | 71 | 20 | 60 | 10 | 1 | 2 | 29 |
30,350 | secdev/scapy | secdev_scapy/scapy/libs/rfc3961.py | scapy.libs.rfc3961._AES128CTS_SHA1_96 | class _AES128CTS_SHA1_96(_AESEncryptionType_SHA1_96):
etype = EncryptionType.AES128_CTS_HMAC_SHA1_96
keysize = 16
seedsize = 16
reqcksum = ChecksumType.HMAC_SHA1_96_AES128 | class _AES128CTS_SHA1_96(_AESEncryptionType_SHA1_96):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 35 | 5 | 0 | 5 | 5 | 4 | 0 | 5 | 5 | 4 | 0 | 6 | 0 | 0 |
30,351 | secdev/scapy | secdev_scapy/scapy/libs/rfc3961.py | scapy.libs.rfc3961._AES128CTS_SHA256_128 | from scapy.layers.tls.crypto.hash import _GenericHash, Hash_MD4, Hash_MD5, Hash_SHA, Hash_SHA256, Hash_SHA384
class _AES128CTS_SHA256_128(_AESEncryptionType_SHA256_SHA384):
etype = EncryptionType.AES128_CTS_HMAC_SHA256_128
keysize = 16
seedsize = 16
macsize = 16
reqcksum = ChecksumType.HMAC_SHA256_... |
class _AES128CTS_SHA256_128(_AESEncryptionType_SHA256_SHA384):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 38 | 10 | 0 | 9 | 9 | 8 | 1 | 9 | 9 | 8 | 0 | 7 | 0 | 0 |
30,352 | secdev/scapy | secdev_scapy/scapy/libs/rfc3961.py | scapy.libs.rfc3961._AES256CTS_SHA1_96 | class _AES256CTS_SHA1_96(_AESEncryptionType_SHA1_96):
etype = EncryptionType.AES256_CTS_HMAC_SHA1_96
keysize = 32
seedsize = 32
reqcksum = ChecksumType.HMAC_SHA1_96_AES256 | class _AES256CTS_SHA1_96(_AESEncryptionType_SHA1_96):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 35 | 5 | 0 | 5 | 5 | 4 | 0 | 5 | 5 | 4 | 0 | 6 | 0 | 0 |
30,353 | secdev/scapy | secdev_scapy/scapy/libs/rfc3961.py | scapy.libs.rfc3961._AES256CTS_SHA384_192 | from scapy.layers.tls.crypto.hash import _GenericHash, Hash_MD4, Hash_MD5, Hash_SHA, Hash_SHA256, Hash_SHA384
class _AES256CTS_SHA384_192(_AESEncryptionType_SHA256_SHA384):
etype = EncryptionType.AES256_CTS_HMAC_SHA384_192
keysize = 32
seedsize = 32
macsize = 24
reqcksum = ChecksumType.HMAC_SHA384_... |
class _AES256CTS_SHA384_192(_AESEncryptionType_SHA256_SHA384):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 38 | 10 | 0 | 9 | 9 | 8 | 1 | 9 | 9 | 8 | 0 | 7 | 0 | 0 |
30,354 | secdev/scapy | secdev_scapy/scapy/libs/rfc3961.py | scapy.libs.rfc3961._AESEncryptionType_SHA1_96 | import abc
import struct
from scapy.layers.tls.crypto.hash import _GenericHash, Hash_MD4, Hash_MD5, Hash_SHA, Hash_SHA256, Hash_SHA384
class _AESEncryptionType_SHA1_96(_SimplifiedEncryptionProfile, abc.ABCMeta):
blocksize = 16
padsize = 1
macsize = 12
hashmod = Hash_SHA
@classmethod
def string... |
class _AESEncryptionType_SHA1_96(_SimplifiedEncryptionProfile, abc.ABCMeta):
@classmethod
def string_to_key(cls, string, salt, params):
pass
@classmethod
def basic_encrypt(cls, key, plaintext):
pass
@classmethod
def basic_decrypt(cls, key, ciphertext):
pass | 7 | 0 | 19 | 0 | 14 | 5 | 2 | 0.3 | 2 | 4 | 1 | 3 | 0 | 0 | 3 | 35 | 69 | 4 | 50 | 25 | 43 | 15 | 35 | 22 | 31 | 3 | 5 | 1 | 6 |
30,355 | secdev/scapy | secdev_scapy/scapy/libs/rfc3961.py | scapy.libs.rfc3961._AESEncryptionType_SHA256_SHA384 | from scapy.layers.tls.crypto.hash import _GenericHash, Hash_MD4, Hash_MD5, Hash_SHA, Hash_SHA256, Hash_SHA384
import struct
import abc
class _AESEncryptionType_SHA256_SHA384(_AESEncryptionType_SHA1_96, abc.ABCMeta):
enctypename = None
hashmod: _GenericHash = None
_hashmod: hashes.HashAlgorithm = None
r... |
class _AESEncryptionType_SHA256_SHA384(_AESEncryptionType_SHA1_96, abc.ABCMeta):
@classmethod
def derive(cls, key, label, k, context=b''):
'''
Also known as "KDF-HMAC-SHA2" in RFC8009.
'''
pass
@classmethod
def string_to_key(cls, string, salt, params):
pass
... | 7 | 1 | 11 | 0 | 8 | 3 | 1 | 0.41 | 2 | 1 | 1 | 2 | 0 | 0 | 3 | 38 | 45 | 4 | 32 | 15 | 25 | 13 | 15 | 12 | 11 | 1 | 6 | 0 | 3 |
30,356 | secdev/scapy | secdev_scapy/scapy/libs/rfc3961.py | scapy.libs.rfc3961._CRC32 | class _CRC32(_ChecksumProfile):
macsize = 4
@classmethod
def checksum(cls, key, keyusage, text):
c = 0
for i in range(len(text)):
idx = text[i] ^ c
idx &= 255
c >>= 8
c ^= CRC32_TABLE[idx]
return c.to_bytes(4, 'little') | class _CRC32(_ChecksumProfile):
@classmethod
def checksum(cls, key, keyusage, text):
pass | 3 | 0 | 9 | 0 | 8 | 1 | 2 | 0.27 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 3 | 16 | 2 | 11 | 7 | 8 | 3 | 10 | 6 | 8 | 2 | 2 | 1 | 2 |
30,357 | secdev/scapy | secdev_scapy/scapy/libs/rfc3961.py | scapy.libs.rfc3961._ChecksumProfile | import abc
class _ChecksumProfile(object):
"""
Base class for checksum profiles.
Usable checksum classes must define:
:func checksum:
:attr macsize: Size of checksum in bytes
:func verify: (if verification is not just checksum-and-compare)
"""
macsize = None
@classmethod
@abc.... |
class _ChecksumProfile(object):
'''
Base class for checksum profiles.
Usable checksum classes must define:
:func checksum:
:attr macsize: Size of checksum in bytes
:func verify: (if verification is not just checksum-and-compare)
'''
@classmethod
@abc.abstractmethod
def checksum(... | 6 | 1 | 4 | 0 | 3 | 1 | 2 | 0.91 | 1 | 1 | 1 | 3 | 0 | 0 | 2 | 2 | 24 | 4 | 11 | 7 | 5 | 10 | 8 | 5 | 5 | 2 | 1 | 1 | 3 |
30,358 | secdev/scapy | secdev_scapy/scapy/libs/rfc3961.py | scapy.libs.rfc3961._DES3CBC | from scapy.layers.tls.crypto.hash import _GenericHash, Hash_MD4, Hash_MD5, Hash_SHA, Hash_SHA256, Hash_SHA384
class _DES3CBC(_SimplifiedEncryptionProfile):
etype = EncryptionType.DES3_CBC_SHA1_KD
keysize = 24
seedsize = 21
blocksize = 8
padsize = 8
macsize = 20
hashmod = Hash_SHA
reqcks... |
class _DES3CBC(_SimplifiedEncryptionProfile):
@classmethod
def random_to_key(cls, seed):
pass
def expand(seed):
pass
def parity(b):
pass
@classmethod
def string_to_key(cls, string, salt, params):
pass
@classmethod
de... | 11 | 0 | 11 | 1 | 8 | 3 | 2 | 0.2 | 1 | 5 | 1 | 0 | 0 | 0 | 4 | 36 | 65 | 6 | 49 | 26 | 38 | 10 | 38 | 22 | 31 | 2 | 5 | 1 | 10 |
30,359 | secdev/scapy | secdev_scapy/scapy/libs/rfc3961.py | scapy.libs.rfc3961._DESCBC | from scapy.layers.tls.crypto.hash import _GenericHash, Hash_MD4, Hash_MD5, Hash_SHA, Hash_SHA256, Hash_SHA384
from scapy.compat import orb, chb, int_bytes, bytes_int, plain_str
import os
class _DESCBC(_SimplifiedEncryptionProfile):
keysize = 8
seedsize = 8
blocksize = 8
padsize = 8
macsize = 16
... |
class _DESCBC(_SimplifiedEncryptionProfile):
@classmethod
def encrypt(cls, key, keyusage, plaintext, confounder, signtext=None):
pass
@classmethod
def decrypt(cls, key, keyusage, ciphertext, presignfunc=None):
pass
@classmethod
def mit_des_string_to_key(cls, string, salt):
... | 16 | 0 | 15 | 2 | 12 | 2 | 3 | 0.11 | 1 | 9 | 2 | 2 | 0 | 0 | 6 | 38 | 131 | 19 | 101 | 51 | 85 | 11 | 87 | 45 | 77 | 8 | 5 | 3 | 25 |
30,360 | secdev/scapy | secdev_scapy/scapy/libs/rfc3961.py | scapy.libs.rfc3961._DESMD4 | from scapy.layers.tls.crypto.hash import _GenericHash, Hash_MD4, Hash_MD5, Hash_SHA, Hash_SHA256, Hash_SHA384
class _DESMD4(_DESCBC):
etype = EncryptionType.DES_CBC_MD4
hashmod = Hash_MD4
reqcksum = ChecksumType.RSA_MD4_DES |
class _DESMD4(_DESCBC):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 38 | 4 | 0 | 4 | 4 | 3 | 0 | 4 | 4 | 3 | 0 | 6 | 0 | 0 |
30,361 | secdev/scapy | secdev_scapy/scapy/libs/rfc3961.py | scapy.libs.rfc3961._DESMD5 | from scapy.layers.tls.crypto.hash import _GenericHash, Hash_MD4, Hash_MD5, Hash_SHA, Hash_SHA256, Hash_SHA384
class _DESMD5(_DESCBC):
etype = EncryptionType.DES_CBC_MD5
hashmod = Hash_MD5
reqcksum = ChecksumType.RSA_MD5_DES |
class _DESMD5(_DESCBC):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 38 | 4 | 0 | 4 | 4 | 3 | 0 | 4 | 4 | 3 | 0 | 6 | 0 | 0 |
30,362 | secdev/scapy | secdev_scapy/scapy/libs/rfc3961.py | scapy.libs.rfc3961._EncryptionAlgorithmProfile | import abc
class _EncryptionAlgorithmProfile(abc.ABCMeta):
"""
Base class for etype profiles.
Usable etype classes must define:
:attr etype: etype number
:attr keysize: protocol size of key in bytes
:attr seedsize: random_to_key input size in bytes
:attr reqcksum: 'required checksum mechan... |
class _EncryptionAlgorithmProfile(abc.ABCMeta):
'''
Base class for etype profiles.
Usable etype classes must define:
:attr etype: etype number
:attr keysize: protocol size of key in bytes
:attr seedsize: random_to_key input size in bytes
:attr reqcksum: 'required checksum mechanism' per RFC... | 18 | 1 | 3 | 0 | 2 | 1 | 1 | 0.8 | 1 | 2 | 1 | 2 | 0 | 0 | 6 | 26 | 58 | 8 | 30 | 17 | 12 | 24 | 19 | 11 | 12 | 2 | 3 | 1 | 7 |
30,363 | secdev/scapy | secdev_scapy/scapy/libs/rfc3961.py | scapy.libs.rfc3961._HMACMD5 | from scapy.layers.tls.crypto.hash import _GenericHash, Hash_MD4, Hash_MD5, Hash_SHA, Hash_SHA256, Hash_SHA384
from scapy.layers.tls.crypto.h_mac import Hmac, Hmac_MD5, Hmac_SHA
class _HMACMD5(_ChecksumProfile):
macsize = 16
@classmethod
def checksum(cls, key, keyusage, text):
ksign = Hmac_MD5(key.... |
class _HMACMD5(_ChecksumProfile):
@classmethod
def checksum(cls, key, keyusage, text):
pass
@classmethod
def verify(cls, key, keyusage, text, cksum):
pass | 5 | 0 | 5 | 0 | 4 | 1 | 2 | 0.17 | 1 | 6 | 4 | 0 | 0 | 0 | 2 | 4 | 16 | 2 | 12 | 8 | 7 | 2 | 10 | 6 | 7 | 2 | 2 | 1 | 3 |
30,364 | secdev/scapy | secdev_scapy/scapy/libs/rfc3961.py | scapy.libs.rfc3961._RC4 | from scapy.compat import orb, chb, int_bytes, bytes_int, plain_str
from scapy.layers.tls.crypto.h_mac import Hmac, Hmac_MD5, Hmac_SHA
import os
import struct
from scapy.layers.tls.crypto.hash import _GenericHash, Hash_MD4, Hash_MD5, Hash_SHA, Hash_SHA256, Hash_SHA384
class _RC4(_EncryptionAlgorithmProfile):
etype ... |
class _RC4(_EncryptionAlgorithmProfile):
@staticmethod
def usage_str(keyusage):
pass
@classmethod
def string_to_key(cls, string, salt, params):
pass
@classmethod
def encrypt(cls, key, keyusage, plaintext, confounder):
pass
@classmethod
def decrypt(cls, key, keyu... | 11 | 0 | 11 | 0 | 10 | 2 | 3 | 0.15 | 1 | 7 | 5 | 1 | 0 | 0 | 5 | 31 | 73 | 5 | 59 | 31 | 48 | 9 | 51 | 26 | 45 | 6 | 4 | 1 | 15 |
30,365 | secdev/scapy | secdev_scapy/scapy/libs/rfc3961.py | scapy.libs.rfc3961._RC4_EXPORT | class _RC4_EXPORT(_RC4):
etype = EncryptionType.RC4_HMAC_EXP
export = True | class _RC4_EXPORT(_RC4):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 31 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 5 | 0 | 0 |
30,366 | secdev/scapy | secdev_scapy/scapy/libs/rfc3961.py | scapy.libs.rfc3961._SHA1DES3 | class _SHA1DES3(_SimplifiedChecksum):
macsize = 20
enc = _DES3CBC | class _SHA1DES3(_SimplifiedChecksum):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 3 | 0 | 0 |
30,367 | secdev/scapy | secdev_scapy/scapy/libs/rfc3961.py | scapy.libs.rfc3961._SHA1_96_AES128 | class _SHA1_96_AES128(_SimplifiedChecksum):
macsize = 12
enc = _AES128CTS_SHA1_96 | class _SHA1_96_AES128(_SimplifiedChecksum):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 3 | 0 | 0 |
30,368 | secdev/scapy | secdev_scapy/scapy/libs/rfc3961.py | scapy.libs.rfc3961._SHA1_96_AES256 | class _SHA1_96_AES256(_SimplifiedChecksum):
macsize = 12
enc = _AES256CTS_SHA1_96 | class _SHA1_96_AES256(_SimplifiedChecksum):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 3 | 0 | 0 |
30,369 | secdev/scapy | secdev_scapy/scapy/libs/rfc3961.py | scapy.libs.rfc3961._SHA256_128_AES128 | class _SHA256_128_AES128(_SimplifiedChecksum):
macsize = 16
enc = _AES128CTS_SHA256_128
rfc8009 = True | class _SHA256_128_AES128(_SimplifiedChecksum):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 4 | 0 | 4 | 4 | 3 | 0 | 4 | 4 | 3 | 0 | 3 | 0 | 0 |
30,370 | secdev/scapy | secdev_scapy/scapy/libs/rfc3961.py | scapy.libs.rfc3961._SHA384_182_AES256 | class _SHA384_182_AES256(_SimplifiedChecksum):
macsize = 24
enc = _AES256CTS_SHA384_192
rfc8009 = True | class _SHA384_182_AES256(_SimplifiedChecksum):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 4 | 0 | 4 | 4 | 3 | 0 | 4 | 4 | 3 | 0 | 3 | 0 | 0 |
30,371 | secdev/scapy | secdev_scapy/scapy/libs/rfc3961.py | scapy.libs.rfc3961._SimplifiedChecksum | import struct
from scapy.layers.tls.crypto.h_mac import Hmac, Hmac_MD5, Hmac_SHA
class _SimplifiedChecksum(_ChecksumProfile):
"""
Base class for checksums using the RFC 3961 simplified profile.
Defines the checksum and verify methods.
Subclasses must define:
:attr enc: Profile of associated etype
... |
class _SimplifiedChecksum(_ChecksumProfile):
'''
Base class for checksums using the RFC 3961 simplified profile.
Defines the checksum and verify methods.
Subclasses must define:
:attr enc: Profile of associated etype
'''
@classmethod
def checksum(cls, key, keyusage, text):
pass
... | 5 | 1 | 9 | 0 | 7 | 3 | 2 | 0.78 | 1 | 2 | 0 | 5 | 0 | 0 | 2 | 4 | 35 | 5 | 18 | 9 | 13 | 14 | 13 | 7 | 10 | 2 | 2 | 1 | 4 |
30,372 | secdev/scapy | secdev_scapy/scapy/libs/rfc3961.py | scapy.libs.rfc3961._SimplifiedEncryptionProfile | import struct
import abc
from scapy.layers.tls.crypto.h_mac import Hmac, Hmac_MD5, Hmac_SHA
import os
class _SimplifiedEncryptionProfile(_EncryptionAlgorithmProfile):
"""
Base class for etypes using the RFC 3961 simplified profile.
Defines the encrypt, decrypt, and prf methods.
Subclasses must define:... |
class _SimplifiedEncryptionProfile(_EncryptionAlgorithmProfile):
'''
Base class for etypes using the RFC 3961 simplified profile.
Defines the encrypt, decrypt, and prf methods.
Subclasses must define:
:param blocksize: Underlying cipher block size in bytes
:param padsize: Underlying cipher padd... | 15 | 5 | 20 | 0 | 12 | 8 | 3 | 0.74 | 1 | 2 | 0 | 3 | 0 | 0 | 6 | 32 | 154 | 11 | 88 | 35 | 73 | 65 | 70 | 29 | 63 | 9 | 4 | 2 | 20 |
30,373 | secdev/scapy | secdev_scapy/scapy/libs/structures.py | scapy.libs.structures.bpf_insn | import ctypes
class bpf_insn(ctypes.Structure):
""""The BPF instruction data structure"""
_fields_ = [('code', ctypes.c_ushort), ('jt', ctypes.c_ubyte), ('jf', ctypes.c_ubyte), ('k', ctypes.c_int)] |
class bpf_insn(ctypes.Structure):
'''"The BPF instruction data structure'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 | 0 | 5 | 2 | 4 | 1 | 2 | 2 | 1 | 0 | 0 | 0 | 0 |
30,374 | secdev/scapy | secdev_scapy/scapy/libs/structures.py | scapy.libs.structures.bpf_program | import ctypes
class bpf_program(ctypes.Structure):
""""Structure for BIOCSETF"""
_fields_ = [('bf_len', ctypes.c_int), ('bf_insns', ctypes.POINTER(bpf_insn))] |
class bpf_program(ctypes.Structure):
'''"Structure for BIOCSETF'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.33 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0 | 3 | 2 | 2 | 1 | 2 | 2 | 1 | 0 | 0 | 0 | 0 |
30,375 | secdev/scapy | secdev_scapy/scapy/libs/structures.py | scapy.libs.structures.sock_fprog | import ctypes
class sock_fprog(ctypes.Structure):
""""Structure for SO_ATTACH_FILTER"""
_fields_ = [('len', ctypes.c_ushort), ('filter', ctypes.POINTER(bpf_insn))] |
class sock_fprog(ctypes.Structure):
'''"Structure for SO_ATTACH_FILTER'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.33 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0 | 3 | 2 | 2 | 1 | 2 | 2 | 1 | 0 | 0 | 0 | 0 |
30,376 | secdev/scapy | secdev_scapy/scapy/libs/winpcapy.py | scapy.libs.winpcapy.timeval | class timeval(Structure):
_fields_ = [('tv_sec', c_long), ('tv_usec', c_long)] | class timeval(Structure):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 2 | 2 | 0 | 2 | 2 | 1 | 0 | 1 | 0 | 0 |
30,377 | secdev/scapy | secdev_scapy/scapy/modules/krack/automaton.py | scapy.modules.krack.automaton.DHCPOverWPA | from scapy.layers.dhcp import DHCP_am
class DHCPOverWPA(DHCP_am):
"""Wrapper over DHCP_am to send and recv inside a WPA channel"""
def __init__(self, send_func, *args, **kwargs):
super(DHCPOverWPA, self).__init__(*args, **kwargs)
self.send_function = send_func
def sniff(self, *args, **kwa... |
class DHCPOverWPA(DHCP_am):
'''Wrapper over DHCP_am to send and recv inside a WPA channel'''
def __init__(self, send_func, *args, **kwargs):
pass
def sniff(self, *args, **kwargs):
pass | 3 | 1 | 3 | 0 | 3 | 1 | 1 | 0.33 | 1 | 1 | 0 | 0 | 2 | 1 | 2 | 38 | 10 | 2 | 6 | 4 | 3 | 2 | 6 | 4 | 3 | 1 | 6 | 0 | 2 |
30,378 | secdev/scapy | secdev_scapy/scapy/modules/krack/automaton.py | scapy.modules.krack.automaton.KrackAP | from scapy.compat import raw, chb
import hashlib
from scapy.automaton import ATMT, Automaton
from cryptography.hazmat.backends import default_backend
import struct
from scapy.layers.dot11 import AKMSuite, Dot11, Dot11AssoReq, Dot11AssoResp, Dot11Auth, Dot11Beacon, Dot11Elt, Dot11EltDSSSet, Dot11EltRSN, Dot11EltRates, D... |
class KrackAP(Automaton):
'''Tiny WPA AP for detecting client vulnerable to KRACK attacks defined in:
"Key Reinstallation Attacks: Forcing Nonce Reuse in WPA2"
Example of use:
KrackAP(
iface="mon0", # A monitor interface
ap_mac='11:22:33:44:55:66', # MAC to use
ssi... | 92 | 10 | 14 | 2 | 10 | 3 | 2 | 0.3 | 1 | 29 | 25 | 0 | 50 | 35 | 52 | 100 | 853 | 147 | 559 | 201 | 446 | 165 | 364 | 141 | 311 | 7 | 4 | 3 | 102 |
30,379 | secdev/scapy | secdev_scapy/scapy/modules/krack/crypto.py | scapy.modules.krack.crypto.ICVError | class ICVError(Exception):
"""The expected ICV is not the computed one"""
pass | class ICVError(Exception):
'''The expected ICV is not the computed one'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 3 | 0 | 2 | 1 | 1 | 1 | 2 | 1 | 1 | 0 | 3 | 0 | 0 |
30,380 | secdev/scapy | secdev_scapy/scapy/modules/krack/crypto.py | scapy.modules.krack.crypto.MICError | class MICError(Exception):
"""The expected MIC is not the computed one"""
pass | class MICError(Exception):
'''The expected MIC is not the computed one'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 3 | 0 | 2 | 1 | 1 | 1 | 2 | 1 | 1 | 0 | 3 | 0 | 0 |
30,381 | secdev/scapy | secdev_scapy/scapy/modules/nmap.py | scapy.modules.nmap.NmapKnowledgeBase | from scapy.compat import plain_str, raw
from scapy.error import warning
from typing import Dict, List, Tuple, Optional, cast, Union
from scapy.config import conf
from scapy.data import KnowledgeBase
class NmapKnowledgeBase(KnowledgeBase):
"""A KnowledgeBase specialized in Nmap first-generation OS
fingerprints data... |
class NmapKnowledgeBase(KnowledgeBase):
'''A KnowledgeBase specialized in Nmap first-generation OS
fingerprints database. Loads from conf.nmap_base when self.filename is
None.
'''
def lazy_init(self):
pass
def get_base(self):
pass | 3 | 1 | 20 | 1 | 19 | 2 | 6 | 0.21 | 1 | 4 | 0 | 0 | 2 | 2 | 2 | 6 | 48 | 4 | 38 | 12 | 35 | 8 | 35 | 12 | 32 | 11 | 2 | 3 | 12 |
30,382 | secdev/scapy | secdev_scapy/scapy/modules/p0f.py | scapy.modules.p0f.HTTP_Record | class HTTP_Record(object):
__slots__ = ['label_id', 'sig']
def __init__(self, label_id, sig_line):
self.label_id = label_id
self.sig = HTTP_Signature.from_raw_sig(sig_line) | class HTTP_Record(object):
def __init__(self, label_id, sig_line):
pass | 2 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 2 | 1 | 1 | 6 | 1 | 5 | 5 | 3 | 0 | 5 | 5 | 3 | 1 | 1 | 0 | 1 |
30,383 | secdev/scapy | secdev_scapy/scapy/modules/p0f.py | scapy.modules.p0f.HTTP_Signature | from scapy.compat import raw, orb
import re
from scapy.layers.inet import IP, TCP, TCPOptions
class HTTP_Signature(object):
__slots__ = ['http_ver', 'hdr', 'hdr_set', 'habsent', 'sw']
def __init__(self, http_ver, hdr, hdr_set, habsent, sw):
self.http_ver = http_ver
self.hdr = hdr
self.... |
class HTTP_Signature(object):
def __init__(self, http_ver, hdr, hdr_set, habsent, sw):
pass
@classmethod
def from_packet(cls, pkt):
'''
Receives an HTTP packet (assuming it's valid), and returns
a HTTP_Signature object
'''
pass
@classmethod
def from_... | 7 | 2 | 17 | 1 | 14 | 3 | 4 | 0.22 | 1 | 6 | 1 | 0 | 2 | 5 | 4 | 4 | 76 | 8 | 59 | 36 | 52 | 13 | 53 | 34 | 48 | 7 | 1 | 3 | 14 |
30,384 | secdev/scapy | secdev_scapy/scapy/modules/p0f.py | scapy.modules.p0f.MTU_Record | class MTU_Record(object):
__slots__ = ['label_id', 'mtu']
def __init__(self, label_id, sig_line):
self.label_id = label_id
self.mtu = int(sig_line) | class MTU_Record(object):
def __init__(self, label_id, sig_line):
pass | 2 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 2 | 1 | 1 | 6 | 1 | 5 | 5 | 3 | 0 | 5 | 5 | 3 | 1 | 1 | 0 | 1 |
30,385 | secdev/scapy | secdev_scapy/scapy/modules/p0f.py | scapy.modules.p0f.TCP_Record | class TCP_Record(object):
__slots__ = ['label_id', 'bad_ttl', 'sig']
def __init__(self, label_id, sig_line):
self.label_id = label_id
sig, bad_ttl = TCP_Signature.from_raw_sig(sig_line)
self.bad_ttl = bad_ttl
self.sig = sig | class TCP_Record(object):
def __init__(self, label_id, sig_line):
pass | 2 | 0 | 5 | 0 | 5 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 3 | 1 | 1 | 8 | 1 | 7 | 7 | 5 | 0 | 7 | 7 | 5 | 1 | 1 | 0 | 1 |
30,386 | secdev/scapy | secdev_scapy/scapy/modules/p0f.py | scapy.modules.p0f.TCP_Signature | from scapy.compat import raw, orb
from scapy.layers.inet import IP, TCP, TCPOptions
import struct
class TCP_Signature(object):
__slots__ = ['olayout', 'quirks', 'ip_opt_len', 'ip_ver', 'ttl', 'mss', 'win', 'win_type', 'wscale', 'pay_class', 'ts1']
def __init__(self, olayout, quirks, ip_opt_len, ip_ver, ttl, m... |
class TCP_Signature(object):
def __init__(self, olayout, quirks, ip_opt_len, ip_ver, ttl, mss, win, win_type, wscale, pay_class, ts1):
pass
@classmethod
def from_packet(cls, pkt):
'''
Receives a TCP packet (assuming it's valid), and returns
a TCP_Signature object
''... | 8 | 2 | 34 | 2 | 30 | 5 | 10 | 0.16 | 1 | 5 | 1 | 0 | 2 | 11 | 4 | 4 | 179 | 13 | 155 | 51 | 146 | 25 | 136 | 48 | 130 | 38 | 1 | 5 | 52 |
30,387 | secdev/scapy | secdev_scapy/scapy/modules/p0f.py | scapy.modules.p0f.p0fKnowledgeBase | from scapy.error import warning
from scapy.data import KnowledgeBase, select_path
class p0fKnowledgeBase(KnowledgeBase):
"""
.. code::
self.base = {
"mtu" (str): [sig(tuple), ...]
"tcp"/"http" (str): {
direction (str): [sig(tuple), ...]
}
}
... |
class p0fKnowledgeBase(KnowledgeBase):
'''
.. code::
self.base = {
"mtu" (str): [sig(tuple), ...]
"tcp"/"http" (str): {
direction (str): [sig(tuple), ...]
}
}
self.labels = (label(tuple), ...)
'''
def lazy_init(self):
... | 8 | 6 | 37 | 5 | 26 | 7 | 10 | 0.33 | 1 | 5 | 3 | 0 | 6 | 2 | 6 | 10 | 245 | 34 | 163 | 46 | 155 | 54 | 145 | 46 | 137 | 26 | 2 | 4 | 67 |
30,388 | secdev/scapy | secdev_scapy/scapy/modules/p0fv2.py | scapy.modules.p0fv2.p0fKnowledgeBase | from scapy.error import warning, Scapy_Exception, log_runtime
from scapy.data import KnowledgeBase, select_path
class p0fKnowledgeBase(KnowledgeBase):
def __init__(self, filename):
KnowledgeBase.__init__(self, filename)
def lazy_init(self):
try:
f = open(self.filename)
exc... |
class p0fKnowledgeBase(KnowledgeBase):
def __init__(self, filename):
pass
def lazy_init(self):
pass
def a2i(x):
pass | 4 | 0 | 12 | 0 | 10 | 1 | 3 | 0.18 | 1 | 3 | 0 | 0 | 2 | 1 | 2 | 6 | 34 | 2 | 28 | 8 | 24 | 5 | 27 | 8 | 23 | 6 | 2 | 3 | 9 |
30,389 | secdev/scapy | secdev_scapy/scapy/modules/ticketer.py | scapy.modules.ticketer.CCAddress | from scapy.config import conf
from scapy.fields import ByteField, ConditionalField, FieldLenField, FlagsField, IntEnumField, IntField, MayEnd, PacketField, PacketListField, ShortEnumField, ShortField, StrLenField, UTCTimeField
from scapy.layers.kerberos import AuthorizationData, AuthorizationDataItem, EncTicketPart, En... |
class CCAddress(Packet):
def guess_payload_class(self, payload):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 120 | 8 | 1 | 7 | 3 | 5 | 0 | 4 | 3 | 2 | 1 | 4 | 0 | 1 |
30,390 | secdev/scapy | secdev_scapy/scapy/modules/ticketer.py | scapy.modules.ticketer.CCAuthData | from scapy.packet import Packet
from scapy.layers.kerberos import AuthorizationData, AuthorizationDataItem, EncTicketPart, EncryptedData, EncryptionKey, KRB_Ticket, KerberosClient, KerberosSSP, PrincipalName, TransitedEncoding, _ADDR_TYPES, _AD_TYPES, _KRB_E_TYPES, _KRB_S_TYPES, _PRINCIPAL_NAME_TYPES, _TICKET_FLAGS, _p... |
class CCAuthData(Packet):
def guess_payload_class(self, payload):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 120 | 8 | 1 | 7 | 3 | 5 | 0 | 4 | 3 | 2 | 1 | 4 | 0 | 1 |
30,391 | secdev/scapy | secdev_scapy/scapy/modules/ticketer.py | scapy.modules.ticketer.CCCountedOctetString | from scapy.packet import Packet
from scapy.fields import ByteField, ConditionalField, FieldLenField, FlagsField, IntEnumField, IntField, MayEnd, PacketField, PacketListField, ShortEnumField, ShortField, StrLenField, UTCTimeField
from scapy.config import conf
class CCCountedOctetString(Packet):
fields_desc = [Field... |
class CCCountedOctetString(Packet):
def guess_payload_class(self, payload):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 120 | 8 | 1 | 7 | 3 | 5 | 0 | 4 | 3 | 2 | 1 | 4 | 0 | 1 |
30,392 | secdev/scapy | secdev_scapy/scapy/modules/ticketer.py | scapy.modules.ticketer.CCCredential | from scapy.packet import Packet
from scapy.fields import ByteField, ConditionalField, FieldLenField, FlagsField, IntEnumField, IntField, MayEnd, PacketField, PacketListField, ShortEnumField, ShortField, StrLenField, UTCTimeField
from scapy.layers.kerberos import AuthorizationData, AuthorizationDataItem, EncTicketPart, ... |
class CCCredential(Packet):
def guess_payload_class(self, payload):
pass
def set_from_krb(self, tkt, clientpart, sessionkey, kdcrep):
pass | 3 | 0 | 18 | 3 | 13 | 3 | 2 | 0.14 | 1 | 4 | 2 | 0 | 2 | 6 | 2 | 121 | 63 | 7 | 50 | 10 | 47 | 7 | 20 | 10 | 17 | 3 | 4 | 1 | 4 |
30,393 | secdev/scapy | secdev_scapy/scapy/modules/ticketer.py | scapy.modules.ticketer.CCDeltaTime | from scapy.fields import ByteField, ConditionalField, FieldLenField, FlagsField, IntEnumField, IntField, MayEnd, PacketField, PacketListField, ShortEnumField, ShortField, StrLenField, UTCTimeField
from scapy.config import conf
from scapy.packet import Packet
class CCDeltaTime(Packet):
fields_desc = [IntField('time... |
class CCDeltaTime(Packet):
def guess_payload_class(self, payload):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 120 | 8 | 1 | 7 | 3 | 5 | 0 | 4 | 3 | 2 | 1 | 4 | 0 | 1 |
30,394 | secdev/scapy | secdev_scapy/scapy/modules/ticketer.py | scapy.modules.ticketer.CCHeader | from scapy.fields import ByteField, ConditionalField, FieldLenField, FlagsField, IntEnumField, IntField, MayEnd, PacketField, PacketListField, ShortEnumField, ShortField, StrLenField, UTCTimeField
from scapy.config import conf
from scapy.packet import Packet
class CCHeader(Packet):
fields_desc = [ShortEnumField('t... |
class CCHeader(Packet):
def guess_payload_class(self, payload):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 120 | 9 | 1 | 8 | 3 | 6 | 0 | 4 | 3 | 2 | 1 | 4 | 0 | 1 |
30,395 | secdev/scapy | secdev_scapy/scapy/modules/ticketer.py | scapy.modules.ticketer.CCKeyBlock | from scapy.fields import ByteField, ConditionalField, FieldLenField, FlagsField, IntEnumField, IntField, MayEnd, PacketField, PacketListField, ShortEnumField, ShortField, StrLenField, UTCTimeField
from scapy.layers.kerberos import AuthorizationData, AuthorizationDataItem, EncTicketPart, EncryptedData, EncryptionKey, KR... |
class CCKeyBlock(Packet):
def toKey(self):
pass
def guess_payload_class(self, payload):
pass | 3 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 2 | 1 | 2 | 121 | 13 | 2 | 11 | 5 | 8 | 0 | 6 | 4 | 3 | 1 | 4 | 0 | 2 |
30,396 | secdev/scapy | secdev_scapy/scapy/modules/ticketer.py | scapy.modules.ticketer.CCPrincipal | from scapy.config import conf
from scapy.packet import Packet
from scapy.fields import ByteField, ConditionalField, FieldLenField, FlagsField, IntEnumField, IntField, MayEnd, PacketField, PacketListField, ShortEnumField, ShortField, StrLenField, UTCTimeField
from scapy.layers.kerberos import AuthorizationData, Authoriz... |
class CCPrincipal(Packet):
def toPN(self):
pass
def guess_payload_class(self, payload):
pass | 3 | 0 | 4 | 0 | 4 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 2 | 0 | 2 | 121 | 21 | 2 | 19 | 4 | 16 | 0 | 6 | 4 | 3 | 1 | 4 | 0 | 2 |
30,397 | secdev/scapy | secdev_scapy/scapy/modules/ticketer.py | scapy.modules.ticketer.CCache | from scapy.fields import ByteField, ConditionalField, FieldLenField, FlagsField, IntEnumField, IntField, MayEnd, PacketField, PacketListField, ShortEnumField, ShortField, StrLenField, UTCTimeField
from scapy.packet import Packet
class CCache(Packet):
fields_desc = [ShortField('file_format_version', 1284), ShortFie... |
class CCache(Packet):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 8 | 0 | 8 | 2 | 7 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
30,398 | secdev/scapy | secdev_scapy/scapy/modules/ticketer.py | scapy.modules.ticketer.Ticketer | from scapy.config import conf
import collections
from scapy.libs.rfc3961 import EncryptionType, Key, _checksums
import struct
from scapy.utils import pretty_list
from scapy.compat import bytes_hex, hex_bytes
import re
from scapy.layers.smb2 import WINNT_SID, WINNT_SID_IDENTIFIER_AUTHORITY
from datetime import datetime,... | null | 64 | 22 | 34 | 1 | 30 | 3 | 3 | 0.09 | 0 | 72 | 46 | 0 | 44 | 4 | 44 | 44 | 1,885 | 126 | 1,617 | 206 | 1,536 | 150 | 473 | 176 | 413 | 18 | 0 | 3 | 156 |
30,399 | secdev/scapy | secdev_scapy/scapy/packet.py | scapy.packet.NoPayload | from typing import Any, Callable, Dict, Iterator, List, NoReturn, Optional, Set, Tuple, Type, TypeVar, Union, Sequence, cast
from scapy.config import conf, _version_checker
from scapy.error import Scapy_Exception, log_runtime, warning
class NoPayload(Packet):
def __new__(cls, *args, **kargs):
singl = cls.... |
class NoPayload(Packet):
def __new__(cls, *args, **kargs):
pass
def __init__(self, *args, **kargs):
pass
def dissection_done(self, pkt):
pass
def add_payload(self, payload):
pass
def remove_payload(self):
pass
def add_underlayer(self, underlayer):
... | 41 | 0 | 3 | 0 | 2 | 1 | 1 | 0.46 | 1 | 2 | 1 | 0 | 40 | 0 | 40 | 159 | 178 | 39 | 99 | 49 | 52 | 46 | 92 | 43 | 51 | 2 | 4 | 1 | 44 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.