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
26,400
secdev/scapy
secdev_scapy/scapy/contrib/mqttsn.py
scapy.contrib.mqttsn.MQTTSNWillTopicResp
from scapy.packet import Packet, bind_layers, bind_bottom_up from scapy.fields import BitField, BitEnumField, ByteField, ByteEnumField, ConditionalField, FieldLenField, ShortField, StrFixedLenField, StrLenField, XByteEnumField class MQTTSNWillTopicResp(Packet): name = 'MQTT-SN will topic response' fields_desc ...
class MQTTSNWillTopicResp(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
26,401
secdev/scapy
secdev_scapy/scapy/contrib/mqttsn.py
scapy.contrib.mqttsn.MQTTSNWillTopicUpd
from scapy.fields import BitField, BitEnumField, ByteField, ByteEnumField, ConditionalField, FieldLenField, ShortField, StrFixedLenField, StrLenField, XByteEnumField from scapy.packet import Packet, bind_layers, bind_bottom_up class MQTTSNWillTopicUpd(Packet): name = 'MQTT-SN will topic update' fields_desc = F...
class MQTTSNWillTopicUpd(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
26,402
secdev/scapy
secdev_scapy/scapy/contrib/mqttsn.py
scapy.contrib.mqttsn.RandVariableFieldLen
from scapy.volatile import RandNum class RandVariableFieldLen(RandNum): def __init__(self): super(RandVariableFieldLen, self).__init__(0, 65535)
class RandVariableFieldLen(RandNum): def __init__(self): pass
2
0
2
0
2
0
1
0
1
1
0
0
1
0
1
37
3
0
3
2
1
0
3
2
1
1
5
0
1
26,403
secdev/scapy
secdev_scapy/scapy/contrib/mqttsn.py
scapy.contrib.mqttsn.VariableFieldLenField
import struct from scapy.error import Scapy_Exception from scapy.compat import chb, orb from scapy.fields import BitField, BitEnumField, ByteField, ByteEnumField, ConditionalField, FieldLenField, ShortField, StrFixedLenField, StrLenField, XByteEnumField class VariableFieldLenField(FieldLenField): """ MQTT-SN l...
class VariableFieldLenField(FieldLenField): ''' MQTT-SN length field either has 1 byte for values [0x02, 0xff] or 3 bytes for values [0x0100, 0xffff]. If the first byte is 0x01 the length value comes in network byte-order in the next 2 bytes. MQTT-SN packets are at least 2 bytes long (length field ...
5
1
5
0
5
0
2
0.27
1
3
2
0
4
0
4
38
31
3
22
5
17
6
17
5
12
3
5
2
8
26,404
secdev/scapy
secdev_scapy/scapy/contrib/nfs.py
scapy.contrib.nfs.ACCESS_Call
from scapy.fields import IntField, IntEnumField, FieldListField, LongField, XIntField, XLongField, ConditionalField, PacketListField, StrLenField, PacketField from scapy.packet import Packet, bind_layers class ACCESS_Call(Packet): name = 'ACCESS Call' fields_desc = [PacketField('filehandle', File_Object(), Fil...
class ACCESS_Call(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
26,405
secdev/scapy
secdev_scapy/scapy/contrib/nfs.py
scapy.contrib.nfs.ACCESS_Reply
from scapy.fields import IntField, IntEnumField, FieldListField, LongField, XIntField, XLongField, ConditionalField, PacketListField, StrLenField, PacketField from scapy.packet import Packet, bind_layers class ACCESS_Reply(Packet): name = 'ACCESS Reply' fields_desc = [IntEnumField('status', 0, nfsstat3), IntFi...
class ACCESS_Reply(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
13
0
13
3
12
0
3
3
2
0
4
0
0
26,406
secdev/scapy
secdev_scapy/scapy/contrib/nfs.py
scapy.contrib.nfs.COMMIT_Call
from scapy.packet import Packet, bind_layers from scapy.fields import IntField, IntEnumField, FieldListField, LongField, XIntField, XLongField, ConditionalField, PacketListField, StrLenField, PacketField class COMMIT_Call(Packet): name = 'COMMIT Call' fields_desc = [PacketField('filehandle', File_Object(), Fil...
class COMMIT_Call(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
7
0
7
3
6
0
3
3
2
0
4
0
0
26,407
secdev/scapy
secdev_scapy/scapy/contrib/nfs.py
scapy.contrib.nfs.COMMIT_Reply
from scapy.packet import Packet, bind_layers from scapy.fields import IntField, IntEnumField, FieldListField, LongField, XIntField, XLongField, ConditionalField, PacketListField, StrLenField, PacketField class COMMIT_Reply(Packet): name = 'COMMIT Reply' fields_desc = [IntEnumField('status', 0, nfsstat3), IntFi...
class COMMIT_Reply(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
18
0
18
3
17
0
3
3
2
0
4
0
0
26,408
secdev/scapy
secdev_scapy/scapy/contrib/nfs.py
scapy.contrib.nfs.CREATE_Call
from scapy.contrib.oncrpc import RPC, RPC_Call, Object_Name from scapy.fields import IntField, IntEnumField, FieldListField, LongField, XIntField, XLongField, ConditionalField, PacketListField, StrLenField, PacketField from scapy.packet import Packet, bind_layers class CREATE_Call(Packet): name = 'CREATE Call' ...
class CREATE_Call(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
16
0
16
3
15
0
3
3
2
0
4
0
0
26,409
secdev/scapy
secdev_scapy/scapy/contrib/nfs.py
scapy.contrib.nfs.CREATE_Reply
from scapy.packet import Packet, bind_layers from scapy.fields import IntField, IntEnumField, FieldListField, LongField, XIntField, XLongField, ConditionalField, PacketListField, StrLenField, PacketField class CREATE_Reply(Packet): name = 'CREATE Reply' fields_desc = [IntEnumField('status', 0, nfsstat3), Condi...
class CREATE_Reply(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
29
0
29
3
28
0
3
3
2
0
4
0
0
26,410
secdev/scapy
secdev_scapy/scapy/contrib/nfs.py
scapy.contrib.nfs.FSINFO_Call
from scapy.fields import IntField, IntEnumField, FieldListField, LongField, XIntField, XLongField, ConditionalField, PacketListField, StrLenField, PacketField from scapy.packet import Packet, bind_layers class FSINFO_Call(Packet): name = 'FSINFO Call' fields_desc = [PacketField('filehandle', File_Object(), Fil...
class FSINFO_Call(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
26,411
secdev/scapy
secdev_scapy/scapy/contrib/nfs.py
scapy.contrib.nfs.FSINFO_Reply
from scapy.packet import Packet, bind_layers from scapy.fields import IntField, IntEnumField, FieldListField, LongField, XIntField, XLongField, ConditionalField, PacketListField, StrLenField, PacketField class FSINFO_Reply(Packet): name = 'FSINFO Reply' fields_desc = [IntEnumField('status', 0, nfsstat3), IntFi...
class FSINFO_Reply(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
29
0
29
3
28
0
3
3
2
0
4
0
0
26,412
secdev/scapy
secdev_scapy/scapy/contrib/nfs.py
scapy.contrib.nfs.FSSTAT_Call
from scapy.packet import Packet, bind_layers from scapy.fields import IntField, IntEnumField, FieldListField, LongField, XIntField, XLongField, ConditionalField, PacketListField, StrLenField, PacketField class FSSTAT_Call(Packet): name = 'FSSTAT Call' fields_desc = [PacketField('filehandle', File_Object(), Fil...
class FSSTAT_Call(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
26,413
secdev/scapy
secdev_scapy/scapy/contrib/nfs.py
scapy.contrib.nfs.FSSTAT_Reply
from scapy.fields import IntField, IntEnumField, FieldListField, LongField, XIntField, XLongField, ConditionalField, PacketListField, StrLenField, PacketField from scapy.packet import Packet, bind_layers class FSSTAT_Reply(Packet): name = 'FSSTAT Reply' fields_desc = [IntEnumField('status', 0, nfsstat3), IntFi...
class FSSTAT_Reply(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
17
0
17
3
16
0
3
3
2
0
4
0
0
26,414
secdev/scapy
secdev_scapy/scapy/contrib/nfs.py
scapy.contrib.nfs.Fattr3
from scapy.fields import IntField, IntEnumField, FieldListField, LongField, XIntField, XLongField, ConditionalField, PacketListField, StrLenField, PacketField from scapy.packet import Packet, bind_layers class Fattr3(Packet): name = 'File Attributes' fields_desc = [IntEnumField('type', 0, ftype3), OIntField('m...
class Fattr3(Packet): def extract_padding(self, s): pass
2
0
2
0
2
0
1
0
1
0
0
0
1
0
1
120
25
1
24
4
22
0
5
4
3
1
4
0
1
26,415
secdev/scapy
secdev_scapy/scapy/contrib/nfs.py
scapy.contrib.nfs.File_From_Dir
from scapy.fields import IntField, IntEnumField, FieldListField, LongField, XIntField, XLongField, ConditionalField, PacketListField, StrLenField, PacketField from scapy.contrib.oncrpc import RPC, RPC_Call, Object_Name from scapy.packet import Packet, bind_layers class File_From_Dir(Packet): name = 'File' fiel...
class File_From_Dir(Packet): def extract_padding(self, s): pass
2
0
2
0
2
0
1
0
1
0
0
0
1
0
1
120
11
1
10
4
8
0
5
4
3
1
4
0
1
26,416
secdev/scapy
secdev_scapy/scapy/contrib/nfs.py
scapy.contrib.nfs.File_From_Dir_Plus
from scapy.packet import Packet, bind_layers from scapy.fields import IntField, IntEnumField, FieldListField, LongField, XIntField, XLongField, ConditionalField, PacketListField, StrLenField, PacketField from scapy.contrib.oncrpc import RPC, RPC_Call, Object_Name class File_From_Dir_Plus(Packet): name = 'File' ...
class File_From_Dir_Plus(Packet): def extract_padding(self, s): pass
2
0
2
0
2
0
1
0
1
0
0
0
1
0
1
120
21
1
20
4
18
0
5
4
3
1
4
0
1
26,417
secdev/scapy
secdev_scapy/scapy/contrib/nfs.py
scapy.contrib.nfs.File_Object
from scapy.packet import Packet, bind_layers from scapy.fields import IntField, IntEnumField, FieldListField, LongField, XIntField, XLongField, ConditionalField, PacketListField, StrLenField, PacketField from binascii import unhexlify class File_Object(Packet): name = 'File Object' fields_desc = [IntField('len...
class File_Object(Packet): def set(self, new_filehandle, length=None, fill=None): pass def extract_padding(self, s): pass
3
0
8
1
6
1
3
0.05
1
0
0
0
2
3
2
121
24
4
19
8
16
1
15
8
12
4
4
1
5
26,418
secdev/scapy
secdev_scapy/scapy/contrib/nfs.py
scapy.contrib.nfs.GETATTR_Call
from scapy.fields import IntField, IntEnumField, FieldListField, LongField, XIntField, XLongField, ConditionalField, PacketListField, StrLenField, PacketField from scapy.packet import Packet, bind_layers class GETATTR_Call(Packet): name = 'GETATTR Call' fields_desc = [PacketField('filehandle', File_Object(), F...
class GETATTR_Call(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
26,419
secdev/scapy
secdev_scapy/scapy/contrib/nfs.py
scapy.contrib.nfs.GETATTR_Reply
from scapy.fields import IntField, IntEnumField, FieldListField, LongField, XIntField, XLongField, ConditionalField, PacketListField, StrLenField, PacketField from scapy.packet import Packet, bind_layers class GETATTR_Reply(Packet): name = 'GETATTR Reply' fields_desc = [IntEnumField('status', 0, nfsstat3), Con...
class GETATTR_Reply(Packet): def extract_padding(self, s): pass
2
0
2
0
2
0
1
0
1
0
0
0
1
0
1
120
12
1
11
4
9
0
5
4
3
1
4
0
1
26,420
secdev/scapy
secdev_scapy/scapy/contrib/nfs.py
scapy.contrib.nfs.LINK_Call
from scapy.contrib.oncrpc import RPC, RPC_Call, Object_Name from scapy.fields import IntField, IntEnumField, FieldListField, LongField, XIntField, XLongField, ConditionalField, PacketListField, StrLenField, PacketField from scapy.packet import Packet, bind_layers class LINK_Call(Packet): name = 'LINK Call' fie...
class LINK_Call(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
7
0
7
3
6
0
3
3
2
0
4
0
0
26,421
secdev/scapy
secdev_scapy/scapy/contrib/nfs.py
scapy.contrib.nfs.LINK_Reply
from scapy.packet import Packet, bind_layers from scapy.fields import IntField, IntEnumField, FieldListField, LongField, XIntField, XLongField, ConditionalField, PacketListField, StrLenField, PacketField class LINK_Reply(Packet): name = 'LINK Reply' fields_desc = [IntEnumField('status', 0, nfsstat3), IntField(...
class LINK_Reply(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
20
0
20
3
19
0
3
3
2
0
4
0
0
26,422
secdev/scapy
secdev_scapy/scapy/contrib/nfs.py
scapy.contrib.nfs.LOOKUP_Call
from scapy.contrib.oncrpc import RPC, RPC_Call, Object_Name from scapy.fields import IntField, IntEnumField, FieldListField, LongField, XIntField, XLongField, ConditionalField, PacketListField, StrLenField, PacketField from scapy.packet import Packet, bind_layers class LOOKUP_Call(Packet): name = 'LOOKUP Call' ...
class LOOKUP_Call(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
26,423
secdev/scapy
secdev_scapy/scapy/contrib/nfs.py
scapy.contrib.nfs.LOOKUP_Reply
from scapy.packet import Packet, bind_layers from scapy.fields import IntField, IntEnumField, FieldListField, LongField, XIntField, XLongField, ConditionalField, PacketListField, StrLenField, PacketField class LOOKUP_Reply(Packet): name = 'LOOKUP Reply' fields_desc = [IntEnumField('status', 0, nfsstat3), Condi...
class LOOKUP_Reply(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
19
0
19
3
18
0
3
3
2
0
4
0
0
26,424
secdev/scapy
secdev_scapy/scapy/contrib/nfs.py
scapy.contrib.nfs.MKDIR_Call
from scapy.packet import Packet, bind_layers from scapy.contrib.oncrpc import RPC, RPC_Call, Object_Name from scapy.fields import IntField, IntEnumField, FieldListField, LongField, XIntField, XLongField, ConditionalField, PacketListField, StrLenField, PacketField class MKDIR_Call(Packet): name = 'MKDIR Call' f...
class MKDIR_Call(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
7
0
7
3
6
0
3
3
2
0
4
0
0
26,425
secdev/scapy
secdev_scapy/scapy/contrib/nfs.py
scapy.contrib.nfs.MKDIR_Reply
from scapy.packet import Packet, bind_layers from scapy.fields import IntField, IntEnumField, FieldListField, LongField, XIntField, XLongField, ConditionalField, PacketListField, StrLenField, PacketField class MKDIR_Reply(Packet): name = 'MKDIR Reply' fields_desc = [IntEnumField('status', 0, nfsstat3), Conditi...
class MKDIR_Reply(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
29
0
29
3
28
0
3
3
2
0
4
0
0
26,426
secdev/scapy
secdev_scapy/scapy/contrib/nfs.py
scapy.contrib.nfs.NULL_Call
from scapy.packet import Packet, bind_layers class NULL_Call(Packet): name = 'NFS NULL Call' fields_desc = []
class NULL_Call(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
3
0
3
3
2
0
3
3
2
0
4
0
0
26,427
secdev/scapy
secdev_scapy/scapy/contrib/nfs.py
scapy.contrib.nfs.NULL_Reply
from scapy.packet import Packet, bind_layers class NULL_Reply(Packet): name = 'NFS NULL Reply' fields_desc = []
class NULL_Reply(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
3
0
3
3
2
0
3
3
2
0
4
0
0
26,428
secdev/scapy
secdev_scapy/scapy/contrib/nfs.py
scapy.contrib.nfs.OIntField
from scapy.fields import IntField, IntEnumField, FieldListField, LongField, XIntField, XLongField, ConditionalField, PacketListField, StrLenField, PacketField class OIntField(IntField): """IntField child with octal representation""" def i2repr(self, pkt, x): return loct(self.i2h(pkt, x))
class OIntField(IntField): '''IntField child with octal representation''' def i2repr(self, pkt, x): pass
2
1
2
0
2
0
1
0.33
1
0
0
0
1
0
1
34
4
0
3
2
1
1
3
2
1
1
5
0
1
26,429
secdev/scapy
secdev_scapy/scapy/contrib/nfs.py
scapy.contrib.nfs.PATHCONF_Call
from scapy.fields import IntField, IntEnumField, FieldListField, LongField, XIntField, XLongField, ConditionalField, PacketListField, StrLenField, PacketField from scapy.packet import Packet, bind_layers class PATHCONF_Call(Packet): name = 'PATHCONF Call' fields_desc = [PacketField('filehandle', File_Object(),...
class PATHCONF_Call(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
26,430
secdev/scapy
secdev_scapy/scapy/contrib/nfs.py
scapy.contrib.nfs.PATHCONF_Reply
from scapy.packet import Packet, bind_layers from scapy.fields import IntField, IntEnumField, FieldListField, LongField, XIntField, XLongField, ConditionalField, PacketListField, StrLenField, PacketField class PATHCONF_Reply(Packet): name = 'PATHCONF Reply' fields_desc = [IntEnumField('status', 0, nfsstat3), I...
class PATHCONF_Reply(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
28
0
28
3
27
0
3
3
2
0
4
0
0
26,431
secdev/scapy
secdev_scapy/scapy/contrib/nfs.py
scapy.contrib.nfs.READDIRPLUS_Call
from scapy.fields import IntField, IntEnumField, FieldListField, LongField, XIntField, XLongField, ConditionalField, PacketListField, StrLenField, PacketField from scapy.packet import Packet, bind_layers class READDIRPLUS_Call(Packet): name = 'READDIRPLUS Call' fields_desc = [PacketField('filehandle', File_Obj...
class READDIRPLUS_Call(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
9
0
9
3
8
0
3
3
2
0
4
0
0
26,432
secdev/scapy
secdev_scapy/scapy/contrib/nfs.py
scapy.contrib.nfs.READDIRPLUS_Reply
from scapy.packet import Packet, bind_layers from scapy.fields import IntField, IntEnumField, FieldListField, LongField, XIntField, XLongField, ConditionalField, PacketListField, StrLenField, PacketField class READDIRPLUS_Reply(Packet): name = 'READDIRPLUS Reply' fields_desc = [IntEnumField('status', 0, nfssta...
class READDIRPLUS_Reply(Packet): def extract_padding(self, s): pass
2
0
2
0
2
0
1
0
1
1
1
0
1
0
1
120
30
1
29
4
27
0
5
4
3
1
4
0
1
26,433
secdev/scapy
secdev_scapy/scapy/contrib/nfs.py
scapy.contrib.nfs.READDIR_Call
from scapy.packet import Packet, bind_layers from scapy.fields import IntField, IntEnumField, FieldListField, LongField, XIntField, XLongField, ConditionalField, PacketListField, StrLenField, PacketField class READDIR_Call(Packet): name = 'READDIR Call' fields_desc = [PacketField('filehandle', File_Object(), F...
class READDIR_Call(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
8
0
8
3
7
0
3
3
2
0
4
0
0
26,434
secdev/scapy
secdev_scapy/scapy/contrib/nfs.py
scapy.contrib.nfs.READDIR_Reply
from scapy.packet import Packet, bind_layers from scapy.fields import IntField, IntEnumField, FieldListField, LongField, XIntField, XLongField, ConditionalField, PacketListField, StrLenField, PacketField class READDIR_Reply(Packet): name = 'READDIR Reply' fields_desc = [IntEnumField('status', 0, nfsstat3), Int...
class READDIR_Reply(Packet): pass
1
0
0
0
0
0
0
0
1
1
1
0
0
0
0
119
26
0
26
3
25
0
3
3
2
0
4
0
0
26,435
secdev/scapy
secdev_scapy/scapy/contrib/nfs.py
scapy.contrib.nfs.READLINK_Call
from scapy.packet import Packet, bind_layers from scapy.fields import IntField, IntEnumField, FieldListField, LongField, XIntField, XLongField, ConditionalField, PacketListField, StrLenField, PacketField class READLINK_Call(Packet): name = 'READLINK Call' fields_desc = [PacketField('filehandle', File_Object(),...
class READLINK_Call(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
26,436
secdev/scapy
secdev_scapy/scapy/contrib/nfs.py
scapy.contrib.nfs.READLINK_Reply
from scapy.contrib.oncrpc import RPC, RPC_Call, Object_Name from scapy.packet import Packet, bind_layers from scapy.fields import IntField, IntEnumField, FieldListField, LongField, XIntField, XLongField, ConditionalField, PacketListField, StrLenField, PacketField class READLINK_Reply(Packet): name = 'READLINK Repl...
class READLINK_Reply(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
14
0
14
3
13
0
3
3
2
0
4
0
0
26,437
secdev/scapy
secdev_scapy/scapy/contrib/nfs.py
scapy.contrib.nfs.READ_Call
from scapy.fields import IntField, IntEnumField, FieldListField, LongField, XIntField, XLongField, ConditionalField, PacketListField, StrLenField, PacketField from scapy.packet import Packet, bind_layers class READ_Call(Packet): name = 'READ Call' fields_desc = [PacketField('filehandle', File_Object(), File_Ob...
class READ_Call(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
7
0
7
3
6
0
3
3
2
0
4
0
0
26,438
secdev/scapy
secdev_scapy/scapy/contrib/nfs.py
scapy.contrib.nfs.READ_Reply
from scapy.packet import Packet, bind_layers from scapy.fields import IntField, IntEnumField, FieldListField, LongField, XIntField, XLongField, ConditionalField, PacketListField, StrLenField, PacketField class READ_Reply(Packet): name = 'READ Reply' fields_desc = [IntEnumField('status', 0, nfsstat3), IntField(...
class READ_Reply(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
25
0
25
3
24
0
3
3
2
0
4
0
0
26,439
secdev/scapy
secdev_scapy/scapy/contrib/nfs.py
scapy.contrib.nfs.REMOVE_Call
from scapy.contrib.oncrpc import RPC, RPC_Call, Object_Name from scapy.packet import Packet, bind_layers from scapy.fields import IntField, IntEnumField, FieldListField, LongField, XIntField, XLongField, ConditionalField, PacketListField, StrLenField, PacketField class REMOVE_Call(Packet): name = 'REMOVE Call' ...
class REMOVE_Call(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
26,440
secdev/scapy
secdev_scapy/scapy/contrib/nfs.py
scapy.contrib.nfs.REMOVE_Reply
from scapy.fields import IntField, IntEnumField, FieldListField, LongField, XIntField, XLongField, ConditionalField, PacketListField, StrLenField, PacketField from scapy.packet import Packet, bind_layers class REMOVE_Reply(Packet): name = 'REMOVE Reply' fields_desc = [IntEnumField('status', 0, nfsstat3), IntFi...
class REMOVE_Reply(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
15
0
15
3
14
0
3
3
2
0
4
0
0
26,441
secdev/scapy
secdev_scapy/scapy/contrib/nfs.py
scapy.contrib.nfs.RENAME_Call
from scapy.fields import IntField, IntEnumField, FieldListField, LongField, XIntField, XLongField, ConditionalField, PacketListField, StrLenField, PacketField from scapy.packet import Packet, bind_layers from scapy.contrib.oncrpc import RPC, RPC_Call, Object_Name class RENAME_Call(Packet): name = 'RENAME Call' ...
class RENAME_Call(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
8
0
8
3
7
0
3
3
2
0
4
0
0
26,442
secdev/scapy
secdev_scapy/scapy/contrib/nfs.py
scapy.contrib.nfs.RENAME_Reply
from scapy.packet import Packet, bind_layers from scapy.fields import IntField, IntEnumField, FieldListField, LongField, XIntField, XLongField, ConditionalField, PacketListField, StrLenField, PacketField class RENAME_Reply(Packet): name = 'RENAME Reply' fields_desc = [IntEnumField('status', 0, nfsstat3), IntFi...
class RENAME_Reply(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
25
0
25
3
24
0
3
3
2
0
4
0
0
26,443
secdev/scapy
secdev_scapy/scapy/contrib/nfs.py
scapy.contrib.nfs.RMDIR_Call
from scapy.fields import IntField, IntEnumField, FieldListField, LongField, XIntField, XLongField, ConditionalField, PacketListField, StrLenField, PacketField from scapy.contrib.oncrpc import RPC, RPC_Call, Object_Name from scapy.packet import Packet, bind_layers class RMDIR_Call(Packet): name = 'RMDIR Call' f...
class RMDIR_Call(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
26,444
secdev/scapy
secdev_scapy/scapy/contrib/nfs.py
scapy.contrib.nfs.RMDIR_Reply
from scapy.fields import IntField, IntEnumField, FieldListField, LongField, XIntField, XLongField, ConditionalField, PacketListField, StrLenField, PacketField from scapy.packet import Packet, bind_layers class RMDIR_Reply(Packet): name = 'RMDIR Reply' fields_desc = [IntEnumField('status', 0, nfsstat3), IntFiel...
class RMDIR_Reply(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
15
0
15
3
14
0
3
3
2
0
4
0
0
26,445
secdev/scapy
secdev_scapy/scapy/contrib/nfs.py
scapy.contrib.nfs.SETATTR_Call
from scapy.packet import Packet, bind_layers from scapy.fields import IntField, IntEnumField, FieldListField, LongField, XIntField, XLongField, ConditionalField, PacketListField, StrLenField, PacketField class SETATTR_Call(Packet): name = 'SETATTR Call' fields_desc = [PacketField('filehandle', File_Object(), F...
class SETATTR_Call(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
7
0
7
3
6
0
3
3
2
0
4
0
0
26,446
secdev/scapy
secdev_scapy/scapy/contrib/nfs.py
scapy.contrib.nfs.SETATTR_Reply
from scapy.packet import Packet, bind_layers from scapy.fields import IntField, IntEnumField, FieldListField, LongField, XIntField, XLongField, ConditionalField, PacketListField, StrLenField, PacketField class SETATTR_Reply(Packet): name = 'SETATTR Reply' fields_desc = [IntEnumField('status', 0, nfsstat3), Int...
class SETATTR_Reply(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
15
0
15
3
14
0
3
3
2
0
4
0
0
26,447
secdev/scapy
secdev_scapy/scapy/contrib/nfs.py
scapy.contrib.nfs.SYMLINK_Call
from scapy.fields import IntField, IntEnumField, FieldListField, LongField, XIntField, XLongField, ConditionalField, PacketListField, StrLenField, PacketField from scapy.contrib.oncrpc import RPC, RPC_Call, Object_Name from scapy.packet import Packet, bind_layers class SYMLINK_Call(Packet): name = 'SYMLINK Call' ...
class SYMLINK_Call(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
8
0
8
3
7
0
3
3
2
0
4
0
0
26,448
secdev/scapy
secdev_scapy/scapy/contrib/nfs.py
scapy.contrib.nfs.SYMLINK_Reply
from scapy.fields import IntField, IntEnumField, FieldListField, LongField, XIntField, XLongField, ConditionalField, PacketListField, StrLenField, PacketField from scapy.packet import Packet, bind_layers class SYMLINK_Reply(Packet): name = 'SYMLINK Reply' fields_desc = [IntEnumField('status', 0, nfsstat3), Con...
class SYMLINK_Reply(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
29
0
29
3
28
0
3
3
2
0
4
0
0
26,449
secdev/scapy
secdev_scapy/scapy/contrib/nfs.py
scapy.contrib.nfs.Sattr3
from scapy.fields import IntField, IntEnumField, FieldListField, LongField, XIntField, XLongField, ConditionalField, PacketListField, StrLenField, PacketField from scapy.packet import Packet, bind_layers class Sattr3(Packet): name = 'Setattr3' fields_desc = [IntEnumField('set_mode', 0, attrs_enum), Conditional...
class Sattr3(Packet): def extract_padding(self, s): pass
2
0
2
0
2
0
1
0
1
0
0
0
1
0
1
120
29
1
28
4
26
0
5
4
3
1
4
0
1
26,450
secdev/scapy
secdev_scapy/scapy/contrib/nfs.py
scapy.contrib.nfs.WCC_Attr
from scapy.fields import IntField, IntEnumField, FieldListField, LongField, XIntField, XLongField, ConditionalField, PacketListField, StrLenField, PacketField from scapy.packet import Packet, bind_layers class WCC_Attr(Packet): name = 'File Attributes' fields_desc = [LongField('size', 0), IntField('mtime_s', 0...
class WCC_Attr(Packet): def extract_padding(self, s): pass
2
0
2
0
2
0
1
0
1
0
0
0
1
0
1
120
12
1
11
4
9
0
5
4
3
1
4
0
1
26,451
secdev/scapy
secdev_scapy/scapy/contrib/nfs.py
scapy.contrib.nfs.WRITE_Call
from scapy.fields import IntField, IntEnumField, FieldListField, LongField, XIntField, XLongField, ConditionalField, PacketListField, StrLenField, PacketField from scapy.packet import Packet, bind_layers class WRITE_Call(Packet): name = 'WRITE Call' fields_desc = [PacketField('filehandle', File_Object(), File_...
class WRITE_Call(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
11
0
11
3
10
0
3
3
2
0
4
0
0
26,452
secdev/scapy
secdev_scapy/scapy/contrib/nfs.py
scapy.contrib.nfs.WRITE_Reply
from scapy.fields import IntField, IntEnumField, FieldListField, LongField, XIntField, XLongField, ConditionalField, PacketListField, StrLenField, PacketField from scapy.packet import Packet, bind_layers class WRITE_Reply(Packet): name = 'WRITE Reply' fields_desc = [IntEnumField('status', 0, nfsstat3), IntFiel...
class WRITE_Reply(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
23
0
23
3
22
0
3
3
2
0
4
0
0
26,453
secdev/scapy
secdev_scapy/scapy/contrib/nlm.py
scapy.contrib.nlm.CANCEL_Call
from scapy.fields import IntField, StrLenField, LongField, PacketField, IntEnumField from scapy.contrib.nfs import File_Object from scapy.packet import Packet, bind_layers from scapy.contrib.oncrpc import RPC, RPC_Call, Object_Name class CANCEL_Call(Packet): name = 'CANCEL Call' fields_desc = [PacketField('coo...
class CANCEL_Call(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
13
0
13
3
12
0
3
3
2
0
4
0
0
26,454
secdev/scapy
secdev_scapy/scapy/contrib/nlm.py
scapy.contrib.nlm.CANCEL_Reply
from scapy.packet import Packet, bind_layers from scapy.fields import IntField, StrLenField, LongField, PacketField, IntEnumField class CANCEL_Reply(Packet): name = 'CANCEL Reply' fields_desc = [PacketField('cookie', NLM4_Cookie(), NLM4_Cookie), IntEnumField('status', 0, nlm4_stats)]
class CANCEL_Reply(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
26,455
secdev/scapy
secdev_scapy/scapy/contrib/nlm.py
scapy.contrib.nlm.GRANTED_MSG_Call
from scapy.contrib.nfs import File_Object from scapy.fields import IntField, StrLenField, LongField, PacketField, IntEnumField from scapy.contrib.oncrpc import RPC, RPC_Call, Object_Name from scapy.packet import Packet, bind_layers class GRANTED_MSG_Call(Packet): name = 'GRANTED_MSG Call' fields_desc = [Packet...
class GRANTED_MSG_Call(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
12
0
12
3
11
0
3
3
2
0
4
0
0
26,456
secdev/scapy
secdev_scapy/scapy/contrib/nlm.py
scapy.contrib.nlm.GRANTED_MSG_Reply
from scapy.packet import Packet, bind_layers class GRANTED_MSG_Reply(Packet): name = 'GRANTED_MSG Reply' fields_desc = []
class GRANTED_MSG_Reply(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
3
0
3
3
2
0
3
3
2
0
4
0
0
26,457
secdev/scapy
secdev_scapy/scapy/contrib/nlm.py
scapy.contrib.nlm.GRANTED_RES_Call
from scapy.fields import IntField, StrLenField, LongField, PacketField, IntEnumField from scapy.packet import Packet, bind_layers class GRANTED_RES_Call(Packet): name = 'GRANTED_RES Call' fields_desc = [PacketField('cookie', NLM4_Cookie(), NLM4_Cookie), IntEnumField('status', 0, nlm4_stats)]
class GRANTED_RES_Call(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
26,458
secdev/scapy
secdev_scapy/scapy/contrib/nlm.py
scapy.contrib.nlm.GRANTED_RES_Reply
from scapy.packet import Packet, bind_layers class GRANTED_RES_Reply(Packet): name = 'GRANTED_RES Reply' fields_desc = []
class GRANTED_RES_Reply(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
3
0
3
3
2
0
3
3
2
0
4
0
0
26,459
secdev/scapy
secdev_scapy/scapy/contrib/nlm.py
scapy.contrib.nlm.LOCK_Call
from scapy.fields import IntField, StrLenField, LongField, PacketField, IntEnumField from scapy.contrib.nfs import File_Object from scapy.contrib.oncrpc import RPC, RPC_Call, Object_Name from scapy.packet import Packet, bind_layers class LOCK_Call(Packet): name = 'LOCK Call' fields_desc = [PacketField('cookie'...
class LOCK_Call(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
15
0
15
3
14
0
3
3
2
0
4
0
0
26,460
secdev/scapy
secdev_scapy/scapy/contrib/nlm.py
scapy.contrib.nlm.LOCK_Reply
from scapy.fields import IntField, StrLenField, LongField, PacketField, IntEnumField from scapy.packet import Packet, bind_layers class LOCK_Reply(Packet): name = 'LOCK Reply' fields_desc = [PacketField('cookie', NLM4_Cookie(), NLM4_Cookie), IntEnumField('status', 0, nlm4_stats)]
class LOCK_Reply(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
26,461
secdev/scapy
secdev_scapy/scapy/contrib/nlm.py
scapy.contrib.nlm.NLM4_Cookie
from scapy.packet import Packet, bind_layers from scapy.fields import IntField, StrLenField, LongField, PacketField, IntEnumField class NLM4_Cookie(Packet): name = 'Cookie' fields_desc = [IntField('length', 0), StrLenField('contents', '', length_from=lambda pkt: pkt.length), StrLenField('fill', b'', length_fro...
class NLM4_Cookie(Packet): def set(self, c, length=None, fill=None): pass def extract_padding(self, s): pass
3
0
5
0
5
0
2
0
1
0
0
0
2
3
2
121
19
2
17
8
14
0
13
8
10
3
4
1
4
26,462
secdev/scapy
secdev_scapy/scapy/contrib/nlm.py
scapy.contrib.nlm.SHARE_Call
from scapy.contrib.oncrpc import RPC, RPC_Call, Object_Name from scapy.packet import Packet, bind_layers from scapy.fields import IntField, StrLenField, LongField, PacketField, IntEnumField from scapy.contrib.nfs import File_Object class SHARE_Call(Packet): name = 'SHARE Call' fields_desc = [PacketField('cooki...
class SHARE_Call(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
11
0
11
3
10
0
3
3
2
0
4
0
0
26,463
secdev/scapy
secdev_scapy/scapy/contrib/nlm.py
scapy.contrib.nlm.SHARE_Reply
from scapy.fields import IntField, StrLenField, LongField, PacketField, IntEnumField from scapy.packet import Packet, bind_layers class SHARE_Reply(Packet): name = 'SHARE Reply' fields_desc = [PacketField('cookie', NLM4_Cookie(), NLM4_Cookie), IntEnumField('status', 0, nlm4_stats), IntField('sequence', 0)]
class SHARE_Reply(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
7
0
7
3
6
0
3
3
2
0
4
0
0
26,464
secdev/scapy
secdev_scapy/scapy/contrib/nlm.py
scapy.contrib.nlm.UNLOCK_Call
from scapy.contrib.nfs import File_Object from scapy.packet import Packet, bind_layers from scapy.contrib.oncrpc import RPC, RPC_Call, Object_Name from scapy.fields import IntField, StrLenField, LongField, PacketField, IntEnumField class UNLOCK_Call(Packet): name = 'UNLOCK Call' fields_desc = [PacketField('coo...
class UNLOCK_Call(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
11
0
11
3
10
0
3
3
2
0
4
0
0
26,465
secdev/scapy
secdev_scapy/scapy/contrib/nlm.py
scapy.contrib.nlm.UNLOCK_Reply
from scapy.packet import Packet, bind_layers from scapy.fields import IntField, StrLenField, LongField, PacketField, IntEnumField class UNLOCK_Reply(Packet): name = 'UNLOCK Reply' fields_desc = [PacketField('cookie', NLM4_Cookie(), NLM4_Cookie), IntEnumField('status', 0, nlm4_stats)]
class UNLOCK_Reply(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
26,466
secdev/scapy
secdev_scapy/scapy/contrib/nlm.py
scapy.contrib.nlm.UNSHARE_Call
from scapy.fields import IntField, StrLenField, LongField, PacketField, IntEnumField from scapy.contrib.nfs import File_Object from scapy.contrib.oncrpc import RPC, RPC_Call, Object_Name from scapy.packet import Packet, bind_layers class UNSHARE_Call(Packet): name = 'UNSHARE Reply' fields_desc = [PacketField('...
class UNSHARE_Call(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
11
0
11
3
10
0
3
3
2
0
4
0
0
26,467
secdev/scapy
secdev_scapy/scapy/contrib/nlm.py
scapy.contrib.nlm.UNSHARE_Reply
from scapy.fields import IntField, StrLenField, LongField, PacketField, IntEnumField from scapy.packet import Packet, bind_layers class UNSHARE_Reply(Packet): name = 'UNSHARE Reply' fields_desc = [PacketField('cookie', NLM4_Cookie(), NLM4_Cookie), IntEnumField('status', 0, nlm4_stats), IntField('sequence', 0)]
class UNSHARE_Reply(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
7
0
7
3
6
0
3
3
2
0
4
0
0
26,468
secdev/scapy
secdev_scapy/scapy/contrib/nrf_sniffer.py
scapy.contrib.nrf_sniffer.NRF2_Packet_Event
from scapy.packet import Packet, bind_layers from scapy.fields import BitEnumField, BitField, ByteEnumField, ByteField, LEIntField, LEShortField, LenField, ScalingField class NRF2_Packet_Event(Packet): name = 'Packet event (device variant)' fields_desc = [ByteField('header_len', 10), BitField('reserved', 0, 1)...
class NRF2_Packet_Event(Packet): pass
1
0
0
0
0
0
0
0.13
1
0
0
0
0
0
0
119
16
0
15
3
14
2
3
3
2
0
4
0
0
26,469
secdev/scapy
secdev_scapy/scapy/contrib/nrf_sniffer.py
scapy.contrib.nrf_sniffer.NRF2_Ping_Request
from scapy.packet import Packet, bind_layers class NRF2_Ping_Request(Packet): name = 'Ping request'
class NRF2_Ping_Request(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
119
2
0
2
2
1
0
2
2
1
0
4
0
0
26,470
secdev/scapy
secdev_scapy/scapy/contrib/nrf_sniffer.py
scapy.contrib.nrf_sniffer.NRF2_Ping_Response
from scapy.fields import BitEnumField, BitField, ByteEnumField, ByteField, LEIntField, LEShortField, LenField, ScalingField from scapy.packet import Packet, bind_layers class NRF2_Ping_Response(Packet): name = 'Ping response' fields_desc = [LEShortField('version', None)]
class NRF2_Ping_Response(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
26,471
secdev/scapy
secdev_scapy/scapy/contrib/nrf_sniffer.py
scapy.contrib.nrf_sniffer.NRFS2_PCAP
from scapy.fields import BitEnumField, BitField, ByteEnumField, ByteField, LEIntField, LEShortField, LenField, ScalingField from scapy.packet import Packet, bind_layers class NRFS2_PCAP(Packet): """ PCAP headers for DLT_NORDIC_BLE. Nordic's capture scripts either stick the COM port number (yep!) or a ...
class NRFS2_PCAP(Packet): ''' PCAP headers for DLT_NORDIC_BLE. Nordic's capture scripts either stick the COM port number (yep!) or a random number at the start of every packet. https://github.com/wireshark/wireshark/blob/master/epan/dissectors/packet-nordic_ble.c The only "rule" is that we can'...
1
1
0
0
0
0
0
1.6
1
0
0
0
0
0
0
119
17
4
5
3
4
8
3
3
2
0
4
0
0
26,472
secdev/scapy
secdev_scapy/scapy/contrib/nrf_sniffer.py
scapy.contrib.nrf_sniffer.NRFS2_Packet
from scapy.packet import Packet, bind_layers from scapy.fields import BitEnumField, BitField, ByteEnumField, ByteField, LEIntField, LEShortField, LenField, ScalingField import struct class NRFS2_Packet(Packet): """ nRF Sniffer v2 Packet """ fields_desc = [LenField('len', None, fmt='<H', adjust=lambda x...
class NRFS2_Packet(Packet): ''' nRF Sniffer v2 Packet ''' def answer(self, other): pass def post_build(self, p, pay): pass
3
1
7
1
6
0
2
0.35
1
0
0
0
2
0
2
121
55
4
48
4
45
17
10
4
7
2
4
1
4
26,473
secdev/scapy
secdev_scapy/scapy/contrib/nsh.py
scapy.contrib.nsh.NSH
from scapy.packet import Packet from scapy.fields import BitField, ByteField, ByteEnumField, BitEnumField, ShortField, X3BytesField, XIntField, XStrFixedLenField, ConditionalField, PacketListField, BitFieldLenField class NSH(Packet): """Network Service Header. NSH MD-type 1 if there is no ContextHeaders""" ...
class NSH(Packet): '''Network Service Header. NSH MD-type 1 if there is no ContextHeaders''' def mysummary(self): pass
2
1
2
0
2
0
1
0.06
1
0
0
0
1
0
1
120
37
2
33
4
31
2
5
4
3
1
4
0
1
26,474
secdev/scapy
secdev_scapy/scapy/contrib/nsh.py
scapy.contrib.nsh.NSHTLV
from scapy.fields import BitField, ByteField, ByteEnumField, BitEnumField, ShortField, X3BytesField, XIntField, XStrFixedLenField, ConditionalField, PacketListField, BitFieldLenField from scapy.packet import Packet class NSHTLV(Packet): """NSH MD-type 2 - Variable Length Context Headers""" name = 'NSHTLV' ...
class NSHTLV(Packet): '''NSH MD-type 2 - Variable Length Context Headers''' pass
1
1
0
0
0
0
0
0.11
1
0
0
0
0
0
0
119
10
0
9
3
8
1
3
3
2
0
4
0
0
26,475
secdev/scapy
secdev_scapy/scapy/contrib/oam.py
scapy.contrib.oam.APS
from scapy.packet import Packet, bind_layers from scapy.fields import BitEnumField, BitField, ByteField, ConditionalField, EnumField, FCSField, FlagsField, IntField, LenField, LongField, MACField, MultipleTypeField, NBytesField, OUIField, PacketField, PadField, PacketListField, ShortField, FieldListField class APS(Pac...
class APS(Packet): ''' Linear protective switching APS data packet ''' def extract_padding(self, s): pass
2
1
2
0
2
0
1
0.07
1
0
0
0
1
0
1
120
49
3
43
4
41
3
5
4
3
1
4
0
1
26,476
secdev/scapy
secdev_scapy/scapy/contrib/oam.py
scapy.contrib.oam.MegId
from scapy.fields import BitEnumField, BitField, ByteField, ConditionalField, EnumField, FCSField, FlagsField, IntField, LenField, LongField, MACField, MultipleTypeField, NBytesField, OUIField, PacketField, PadField, PacketListField, ShortField, FieldListField from scapy.packet import Packet, bind_layers class MegId(P...
class MegId(Packet): ''' MEG ID ''' def extract_padding(self, s): pass
2
1
2
0
2
0
1
0.07
1
0
0
0
1
0
1
120
46
3
40
4
38
3
5
4
3
1
4
0
1
26,477
secdev/scapy
secdev_scapy/scapy/contrib/oam.py
scapy.contrib.oam.MepIdField
from scapy.fields import BitEnumField, BitField, ByteField, ConditionalField, EnumField, FCSField, FlagsField, IntField, LenField, LongField, MACField, MultipleTypeField, NBytesField, OUIField, PacketField, PadField, PacketListField, ShortField, FieldListField class MepIdField(ShortField): """ Short field with...
class MepIdField(ShortField): ''' Short field with insignificant three leading bytes ''' def __init__(self, name, default): pass
2
1
4
0
4
0
2
0.6
1
1
0
0
1
0
1
34
9
1
5
2
3
3
3
2
1
2
5
0
2
26,478
secdev/scapy
secdev_scapy/scapy/contrib/oam.py
scapy.contrib.oam.OAM
from scapy.packet import Packet, bind_layers from scapy.fields import BitEnumField, BitField, ByteField, ConditionalField, EnumField, FCSField, FlagsField, IntField, LenField, LongField, MACField, MultipleTypeField, NBytesField, OUIField, PacketField, PadField, PacketListField, ShortField, FieldListField class OAM(Pac...
class OAM(Packet): ''' OAM data unit ''' pass
1
1
0
0
0
0
0
0.03
1
0
0
0
0
0
0
119
236
6
224
7
223
7
7
7
6
0
4
0
0
26,479
secdev/scapy
secdev_scapy/scapy/contrib/oam.py
scapy.contrib.oam.OAM_DATA_TLV
from scapy.fields import BitEnumField, BitField, ByteField, ConditionalField, EnumField, FCSField, FlagsField, IntField, LenField, LongField, MACField, MultipleTypeField, NBytesField, OUIField, PacketField, PadField, PacketListField, ShortField, FieldListField from scapy.packet import Packet, bind_layers class OAM_DAT...
class OAM_DATA_TLV(Packet): ''' OAM Data TLV ''' def extract_padding(self, s): pass
2
1
2
0
2
0
1
0.6
1
0
0
0
1
0
1
120
10
2
5
4
3
3
5
4
3
1
4
0
1
26,480
secdev/scapy
secdev_scapy/scapy/contrib/oam.py
scapy.contrib.oam.OAM_LTM_TLV
from scapy.fields import BitEnumField, BitField, ByteField, ConditionalField, EnumField, FCSField, FlagsField, IntField, LenField, LongField, MACField, MultipleTypeField, NBytesField, OUIField, PacketField, PadField, PacketListField, ShortField, FieldListField from scapy.packet import Packet, bind_layers class OAM_LTM...
class OAM_LTM_TLV(Packet): ''' OAM LTM TLV data ''' def extract_padding(self, s): pass
2
1
2
0
2
0
1
0.33
1
0
0
0
1
0
1
120
15
3
9
4
7
3
5
4
3
1
4
0
1
26,481
secdev/scapy
secdev_scapy/scapy/contrib/oam.py
scapy.contrib.oam.OAM_LTR_EG_TLV
from scapy.packet import Packet, bind_layers from scapy.fields import BitEnumField, BitField, ByteField, ConditionalField, EnumField, FCSField, FlagsField, IntField, LenField, LongField, MACField, MultipleTypeField, NBytesField, OUIField, PacketField, PadField, PacketListField, ShortField, FieldListField class OAM_LTR...
class OAM_LTR_EG_TLV(Packet): ''' OAM LTR TLV data ''' def extract_padding(self, s): pass
2
1
2
0
2
0
1
0.3
1
0
0
0
1
0
1
120
16
3
10
4
8
3
5
4
3
1
4
0
1
26,482
secdev/scapy
secdev_scapy/scapy/contrib/oam.py
scapy.contrib.oam.OAM_LTR_IG_TLV
from scapy.packet import Packet, bind_layers from scapy.fields import BitEnumField, BitField, ByteField, ConditionalField, EnumField, FCSField, FlagsField, IntField, LenField, LongField, MACField, MultipleTypeField, NBytesField, OUIField, PacketField, PadField, PacketListField, ShortField, FieldListField class OAM_LTR...
class OAM_LTR_IG_TLV(Packet): ''' OAM LTR TLV data ''' def extract_padding(self, s): pass
2
1
2
0
2
0
1
0.3
1
0
0
0
1
0
1
120
16
3
10
4
8
3
5
4
3
1
4
0
1
26,483
secdev/scapy
secdev_scapy/scapy/contrib/oam.py
scapy.contrib.oam.OAM_LTR_TLV
from scapy.packet import Packet, bind_layers from scapy.fields import BitEnumField, BitField, ByteField, ConditionalField, EnumField, FCSField, FlagsField, IntField, LenField, LongField, MACField, MultipleTypeField, NBytesField, OUIField, PacketField, PadField, PacketListField, ShortField, FieldListField class OAM_LTR...
class OAM_LTR_TLV(Packet): ''' OAM LTR TLV data ''' def extract_padding(self, s): pass
2
1
2
0
2
0
1
0.5
1
0
0
0
1
0
1
120
18
3
10
4
8
5
5
4
3
1
4
0
1
26,484
secdev/scapy
secdev_scapy/scapy/contrib/oam.py
scapy.contrib.oam.OAM_TLV
from scapy.packet import Packet, bind_layers from scapy.fields import BitEnumField, BitField, ByteField, ConditionalField, EnumField, FCSField, FlagsField, IntField, LenField, LongField, MACField, MultipleTypeField, NBytesField, OUIField, PacketField, PadField, PacketListField, ShortField, FieldListField class OAM_TLV...
class OAM_TLV(Packet): ''' OAM TLV ''' def extract_padding(self, s): pass
2
1
2
0
2
0
1
0.6
1
0
0
0
1
0
1
120
10
2
5
4
3
3
5
4
3
1
4
0
1
26,485
secdev/scapy
secdev_scapy/scapy/contrib/oam.py
scapy.contrib.oam.PTP_TIMESTAMP
from scapy.fields import BitEnumField, BitField, ByteField, ConditionalField, EnumField, FCSField, FlagsField, IntField, LenField, LongField, MACField, MultipleTypeField, NBytesField, OUIField, PacketField, PadField, PacketListField, ShortField, FieldListField from scapy.packet import Packet, bind_layers class PTP_TIM...
class PTP_TIMESTAMP(Packet): ''' PTP timestamp ''' def extract_padding(self, s): pass
2
1
2
0
2
0
1
0.8
1
0
0
0
1
0
1
120
11
2
5
4
3
4
5
4
3
1
4
0
1
26,486
secdev/scapy
secdev_scapy/scapy/contrib/oam.py
scapy.contrib.oam.RAPS
from scapy.fields import BitEnumField, BitField, ByteField, ConditionalField, EnumField, FCSField, FlagsField, IntField, LenField, LongField, MACField, MultipleTypeField, NBytesField, OUIField, PacketField, PadField, PacketListField, ShortField, FieldListField from scapy.packet import Packet, bind_layers class RAPS(Pa...
class RAPS(Packet): ''' Ring protective switching R-APS data packet ''' def extract_padding(self, s): pass
2
1
2
0
2
0
1
0.08
1
0
0
0
1
0
1
120
45
3
39
4
37
3
5
4
3
1
4
0
1
26,487
secdev/scapy
secdev_scapy/scapy/contrib/oncrpc.py
scapy.contrib.oncrpc.Auth_RPCSEC_GSS
from scapy.packet import Packet, bind_layers from scapy.fields import XIntField, IntField, IntEnumField, StrLenField, FieldListField, ConditionalField, PacketField, FieldLenField class Auth_RPCSEC_GSS(Packet): name = 'Auth RPCSEC_GSS' fields_desc = [IntField('gss_version', 0), IntField('gss_procedure', 0), Int...
class Auth_RPCSEC_GSS(Packet): def extract_padding(self, s): pass
2
0
2
0
2
0
1
0
1
0
0
0
1
0
1
120
12
1
11
4
9
0
5
4
3
1
4
0
1
26,488
secdev/scapy
secdev_scapy/scapy/contrib/oncrpc.py
scapy.contrib.oncrpc.Auth_Unix
from scapy.fields import XIntField, IntField, IntEnumField, StrLenField, FieldListField, ConditionalField, PacketField, FieldLenField from scapy.packet import Packet, bind_layers class Auth_Unix(Packet): name = 'AUTH Unix' fields_desc = [XIntField('stamp', 0), PacketField('mname', Object_Name(), Object_Name), ...
class Auth_Unix(Packet): def extract_padding(self, s): pass
2
0
2
0
2
0
1
0
1
0
0
0
1
0
1
120
16
1
15
4
13
0
5
4
3
1
4
0
1
26,489
secdev/scapy
secdev_scapy/scapy/contrib/oncrpc.py
scapy.contrib.oncrpc.Object_Name
from scapy.packet import Packet, bind_layers from scapy.fields import XIntField, IntField, IntEnumField, StrLenField, FieldListField, ConditionalField, PacketField, FieldLenField class Object_Name(Packet): name = 'Object Name' fields_desc = [IntField('length', 0), StrLenField('_name', '', length_from=lambda pk...
class Object_Name(Packet): def set(self, name, length=None, fill=None): pass def extract_padding(self, s): pass
3
0
5
0
5
0
2
0
1
0
0
0
2
3
2
121
19
2
17
8
14
0
13
8
10
3
4
1
4
26,490
secdev/scapy
secdev_scapy/scapy/contrib/oncrpc.py
scapy.contrib.oncrpc.RM_Header
import struct from scapy.packet import Packet, bind_layers from scapy.fields import XIntField, IntField, IntEnumField, StrLenField, FieldListField, ConditionalField, PacketField, FieldLenField class RM_Header(Packet): name = 'RM Header' fields_desc = [XIntField('rm', None)] def post_build(self, pkt, pay):...
class RM_Header(Packet): def post_build(self, pkt, pay): '''Override of post_build to set the rm header == len(payload)''' pass
2
1
6
0
5
1
2
0.1
1
0
0
0
1
0
1
120
12
1
10
5
8
1
8
5
6
2
4
1
2
26,491
secdev/scapy
secdev_scapy/scapy/contrib/oncrpc.py
scapy.contrib.oncrpc.RPC
from scapy.fields import XIntField, IntField, IntEnumField, StrLenField, FieldListField, ConditionalField, PacketField, FieldLenField from scapy.packet import Packet, bind_layers class RPC(Packet): name = 'RPC' fields_desc = [XIntField('xid', 0), IntEnumField('mtype', 0, {0: 'CALL', 1: 'REPLY'})]
class RPC(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
26,492
secdev/scapy
secdev_scapy/scapy/contrib/oncrpc.py
scapy.contrib.oncrpc.RPC_Call
from scapy.fields import XIntField, IntField, IntEnumField, StrLenField, FieldListField, ConditionalField, PacketField, FieldLenField from scapy.packet import Packet, bind_layers import struct class RPC_Call(Packet): name = 'RPC Call' fields_desc = [IntField('version', 2), IntField('program', 100003), IntField...
class RPC_Call(Packet): def set_auth(self, **kwargs): '''Used to easily set the fields in an a_unix packet''' pass def post_build(self, pkt, pay): '''Override of post_build to handle length fields''' pass
3
2
18
2
14
2
6
0.06
1
0
0
0
2
2
2
121
80
7
69
9
66
4
26
9
23
7
4
2
12
26,493
secdev/scapy
secdev_scapy/scapy/contrib/oncrpc.py
scapy.contrib.oncrpc.RPC_Reply
from scapy.packet import Packet, bind_layers from scapy.fields import XIntField, IntField, IntEnumField, StrLenField, FieldListField, ConditionalField, PacketField, FieldLenField class RPC_Reply(Packet): name = 'RPC Response' fields_desc = [IntField('reply_stat', 0), IntEnumField('flavor', 0, {0: 'AUTH_NULL', ...
class RPC_Reply(Packet): def set_auth(self, **kwargs): '''Used to easily set the fields in an a_unix packet''' pass
2
1
14
3
10
1
6
0.05
1
0
0
0
1
1
1
120
27
4
22
6
20
1
13
6
11
6
4
2
6
26,494
secdev/scapy
secdev_scapy/scapy/contrib/oncrpc.py
scapy.contrib.oncrpc.Verifier_RPCSEC_GSS
from scapy.packet import Packet, bind_layers from scapy.fields import XIntField, IntField, IntEnumField, StrLenField, FieldListField, ConditionalField, PacketField, FieldLenField class Verifier_RPCSEC_GSS(Packet): name = 'Verifier RPCSEC_GSS' fields_desc = [FieldLenField('len', None, length_of='data'), StrLenF...
class Verifier_RPCSEC_GSS(Packet): def extract_padding(self, s): pass
2
0
2
0
2
0
1
0
1
0
0
0
1
0
1
120
9
1
8
4
6
0
5
4
3
1
4
0
1
26,495
secdev/scapy
secdev_scapy/scapy/contrib/opc_da.py
scapy.contrib.opc_da.AV_PAIR
from scapy.packet import Packet from scapy.fields import BitEnumField, ByteEnumField, ByteField, ConditionalField, Field, FieldLenField, FlagsField, IntEnumField, IntField, LEIntEnumField, LEIntField, LELongField, LEShortField, MultipleTypeField, PacketField, PacketLenField, PacketListField, ShortEnumField, ShortField,...
class AV_PAIR(Packet): def extract_padding(self, p): pass
2
0
2
0
2
0
1
0
1
0
0
0
1
0
1
120
11
1
10
4
8
0
5
4
3
1
4
0
1
26,496
secdev/scapy
secdev_scapy/scapy/contrib/opc_da.py
scapy.contrib.opc_da.AuthentificationProtocol
from scapy.packet import Packet from scapy.config import conf class AuthentificationProtocol(Packet): name = 'authentificationProtocol' def extract_padding(self, p): return (b'', p) def guess_payload_class(self, payload): if self.underlayer and hasattr(self.underlayer, 'authLength'): ...
class AuthentificationProtocol(Packet): def extract_padding(self, p): pass def guess_payload_class(self, payload): pass
3
0
6
0
6
0
3
0
1
1
0
1
2
0
2
121
15
2
13
5
10
0
13
5
10
4
4
3
5
26,497
secdev/scapy
secdev_scapy/scapy/contrib/opc_da.py
scapy.contrib.opc_da.ContextElement
from scapy.packet import Packet from scapy.fields import BitEnumField, ByteEnumField, ByteField, ConditionalField, Field, FieldLenField, FlagsField, IntEnumField, IntField, LEIntEnumField, LEIntField, LELongField, LEShortField, MultipleTypeField, PacketField, PacketLenField, PacketListField, ShortEnumField, ShortField,...
class ContextElement(Packet): def extract_padding(self, p): pass
2
0
2
0
2
0
1
0
1
0
0
0
1
0
1
120
13
1
12
4
10
0
5
4
3
1
4
0
1
26,498
secdev/scapy
secdev_scapy/scapy/contrib/opc_da.py
scapy.contrib.opc_da.DualStringArray
from scapy.fields import BitEnumField, ByteEnumField, ByteField, ConditionalField, Field, FieldLenField, FlagsField, IntEnumField, IntField, LEIntEnumField, LEIntField, LELongField, LEShortField, MultipleTypeField, PacketField, PacketLenField, PacketListField, ShortEnumField, ShortField, StrField, StrFixedLenField, Str...
class DualStringArray(Packet): pass
1
0
0
0
0
0
0
0.13
1
0
0
0
0
0
0
119
9
0
8
3
7
1
3
3
2
0
4
0
0
26,499
secdev/scapy
secdev_scapy/scapy/contrib/opc_da.py
scapy.contrib.opc_da.IRemoteSCMActivator_RemoteCreateInstance
from scapy.packet import Packet from scapy.fields import BitEnumField, ByteEnumField, ByteField, ConditionalField, Field, FieldLenField, FlagsField, IntEnumField, IntField, LEIntEnumField, LEIntField, LELongField, LEShortField, MultipleTypeField, PacketField, PacketLenField, PacketListField, ShortEnumField, ShortField,...
class IRemoteSCMActivator_RemoteCreateInstance(Packet): def guess_payload_class(self, payload): pass
2
0
7
0
7
0
2
0
1
1
0
0
1
0
1
120
16
1
15
4
13
0
8
4
6
2
4
1
2