id
int64
0
328k
repository_name
stringlengths
7
58
file_path
stringlengths
9
302
class_name
stringlengths
5
256
human_written_code
stringlengths
16
2.16M
class_skeleton
stringlengths
18
1.49M
⌀
total_program_units
int64
1
1.76k
total_doc_str
int64
0
771
AvgCountLine
float64
0
7.89k
AvgCountLineBlank
float64
0
297
AvgCountLineCode
float64
0
7.89k
AvgCountLineComment
float64
0
7.89k
AvgCyclomatic
float64
0
130
CommentToCodeRatio
float64
0
168
CountClassBase
float64
0
40
CountClassCoupled
float64
0
583
CountClassCoupledModified
float64
0
575
CountClassDerived
float64
0
5.35k
CountDeclInstanceMethod
float64
0
529
CountDeclInstanceVariable
float64
0
296
CountDeclMethod
float64
0
599
CountDeclMethodAll
float64
0
1.12k
CountLine
float64
1
40.4k
CountLineBlank
float64
0
8.16k
CountLineCode
float64
1
25.7k
CountLineCodeDecl
float64
1
8.15k
CountLineCodeExe
float64
0
24.2k
CountLineComment
float64
0
16.5k
CountStmt
float64
1
9.71k
CountStmtDecl
float64
1
8.15k
CountStmtExe
float64
0
9.69k
MaxCyclomatic
float64
0
759
MaxInheritanceTree
float64
0
16
MaxNesting
float64
0
34
SumCyclomatic
float64
0
2.9k
24,300
jopohl/urh
jopohl_urh/src/urh/ui/views/GeneratorListView.py
urh.ui.views.GeneratorListView.GeneratorListView
from urh.models.GeneratorListModel import GeneratorListModel from PyQt5.QtCore import pyqtSignal, Qt, pyqtSlot from PyQt5.QtWidgets import QListView, QMenu from PyQt5.QtGui import QContextMenuEvent, QKeyEvent, QIcon class GeneratorListView(QListView): selection_changed = pyqtSignal() edit_on_item_triggered = p...
class GeneratorListView(QListView): def __init__(self, parent): pass def model(self) -> GeneratorListModel: pass def create_context_menu(self): pass def contextMenuEvent(self, event: QContextMenuEvent): pass def selectionChanged(self, QItemSelection, QItemSelect...
12
0
5
0
5
0
1
0
1
2
1
0
9
1
9
9
63
13
50
24
38
0
47
22
37
3
1
2
13
24,301
jopohl/urh
jopohl_urh/src/urh/ui/views/GeneratorTableView.py
urh.ui.views.GeneratorTableView.GeneratorTableView
from urh.models.GeneratorTableModel import GeneratorTableModel from PyQt5.QtWidgets import QHeaderView, QAbstractItemView, QStyleOption, QMenu from PyQt5.QtCore import Qt, QRect, pyqtSignal, pyqtSlot from PyQt5.QtWidgets import QActionGroup, QInputDialog from PyQt5.QtGui import QDragMoveEvent, QDragEnterEvent, QPainter...
class GeneratorTableView(TableView): def __init__(self, parent=None): pass def model(self) -> GeneratorTableModel: pass def dragEnterEvent(self, event: QDragEnterEvent): pass def dragMoveEvent(self, event: QDragMoveEvent): pass def __rect_for_row(self, row): ...
24
0
14
2
12
1
2
0.04
1
2
1
0
16
6
17
38
256
45
207
70
183
9
143
64
125
8
2
3
37
24,302
jopohl/urh
jopohl_urh/src/urh/ui/views/GeneratorTreeView.py
urh.ui.views.GeneratorTreeView.GeneratorTreeView
from PyQt5.QtCore import QItemSelectionModel from urh.models.GeneratorTreeModel import GeneratorTreeModel from PyQt5.QtWidgets import QTreeView, QAbstractItemView class GeneratorTreeView(QTreeView): def __init__(self, parent=None): super().__init__(parent) self.setSelectionMode(QAbstractItemView.E...
class GeneratorTreeView(QTreeView): def __init__(self, parent=None): pass def model(self) -> GeneratorTreeModel: pass def selectionModel(self) -> QItemSelectionModel: pass
4
0
3
0
3
0
1
0
1
2
1
0
3
0
3
3
13
2
11
4
7
0
11
4
7
1
1
0
3
24,303
jopohl/urh
jopohl_urh/src/urh/ui/views/LabelValueTableView.py
urh.ui.views.LabelValueTableView.LabelValueTableView
from PyQt5.QtWidgets import QTableView, QMenu, QAction from collections import OrderedDict from urh import settings from PyQt5.QtGui import QIcon, QContextMenuEvent, QKeySequence from urh.ui.delegates.SectionComboBoxDelegate import SectionComboBoxDelegate from urh.models.LabelValueTableModel import LabelValueTableModel...
class LabelValueTableView(QTableView): def __init__(self, parent=None): pass @property def selected_min_max_row(self): pass def create_context_menu(self): pass def contextMenuEvent(self, event: QContextMenuEvent): pass def model(self) -> LabelValueTableModel:...
12
0
11
1
10
0
2
0
1
8
4
0
8
1
8
8
101
15
86
29
74
0
55
26
46
5
1
4
14
24,304
jopohl/urh
jopohl_urh/src/urh/ui/views/LiveGraphicView.py
urh.ui.views.LiveGraphicView.LiveGraphicView
from PyQt5.QtGui import QWheelEvent, QMouseEvent from PyQt5.QtCore import pyqtSignal, QEvent from urh.ui.views.ZoomableGraphicView import ZoomableGraphicView from urh.ui.painting.GridScene import GridScene class LiveGraphicView(ZoomableGraphicView): freq_clicked = pyqtSignal(float) wheel_event_triggered = pyqt...
class LiveGraphicView(ZoomableGraphicView): def __init__(self, parent=None): pass def wheelEvent(self, event: QWheelEvent): pass def leaveEvent(self, event: QEvent): pass def mouseMoveEvent(self, event: QMouseEvent): pass def mousePressEvent(self, event: QMouseE...
7
0
5
0
5
0
2
0
1
4
1
0
6
1
6
50
40
7
33
13
26
0
33
13
26
3
3
2
12
24,305
jopohl/urh
jopohl_urh/src/urh/ui/views/LoggingGraphicsView.py
urh.ui.views.LoggingGraphicsView.LoggingGraphicsView
from urh.ui.views.SimulatorGraphicsView import SimulatorGraphicsView from PyQt5.QtWidgets import QGraphicsView, QMenu, QAction from PyQt5.QtGui import QKeySequence class LoggingGraphicsView(QGraphicsView): def __init__(self, parent=None): super().__init__(parent) self.setDragMode(QGraphicsView.Rub...
class LoggingGraphicsView(QGraphicsView): def __init__(self, parent=None): pass def contextMenuEvent(self, event): pass def create_context_menu(self): pass def on_select_from_action_triggered(self): pass def on_select_to_action_triggered(self): pass ...
9
0
7
1
6
0
1
0
1
2
1
0
8
3
8
8
64
15
49
14
40
0
36
14
27
2
1
1
9
24,306
jopohl/urh
jopohl_urh/src/urh/ui/views/MessageTypeTableView.py
urh.ui.views.MessageTypeTableView.MessageTypeTableView
from PyQt5.QtWidgets import QAbstractItemView, QMenu, QAction, QTableView from urh.models.MessageTypeTableModel import MessageTypeTableModel from PyQt5.QtCore import pyqtSignal, Qt, pyqtSlot from PyQt5.QtGui import QContextMenuEvent, QKeySequence, QIcon class MessageTypeTableView(QTableView): auto_message_type_upd...
class MessageTypeTableView(QTableView): def __init__(self, parent): pass def model(self) -> MessageTypeTableModel: pass def open_persistent_editor(self, column=1): pass def selection_range(self): ''' :rtype: int, int ''' pass def create_c...
12
1
8
1
6
1
2
0.08
1
3
1
0
9
1
9
9
86
18
63
26
51
5
53
24
43
2
1
1
15
24,307
jopohl/urh
jopohl_urh/src/urh/ui/views/ModulatorTreeView.py
urh.ui.views.ModulatorTreeView.ModulatorTreeView
from PyQt5.QtWidgets import QTreeView from PyQt5.QtCore import pyqtSignal, QItemSelectionModel from urh.models import GeneratorTreeModel class ModulatorTreeView(QTreeView): selection_changed = pyqtSignal() def __init__(self, parent=None): super().__init__(parent) def model(self) -> GeneratorTreeM...
class ModulatorTreeView(QTreeView): def __init__(self, parent=None): pass def model(self) -> GeneratorTreeModel: pass def selectionModel(self) -> QItemSelectionModel: pass def selectionChanged(self, QItemSelection, QItemSelection_1): pass
5
0
2
0
2
0
1
0
1
1
0
0
4
0
4
4
15
4
11
6
6
0
11
6
6
1
1
0
4
24,308
jopohl/urh
jopohl_urh/src/urh/ui/views/ParticipantTableView.py
urh.ui.views.ParticipantTableView.ParticipantTableView
from urh.models.ParticipantTableModel import ParticipantTableModel from urh.ui.delegates.ComboBoxDelegate import ComboBoxDelegate from PyQt5.QtWidgets import QTableView, QAction, QMenu from urh import settings from PyQt5.QtGui import QKeySequence, QIcon, QContextMenuEvent from PyQt5.QtCore import pyqtSlot, Qt, QItemSel...
class ParticipantTableView(QTableView): def __init__(self, parent=None): pass @property def selected_columns(self) -> (int, int): pass def selected_columns(self) -> (int, int): pass def model(self) -> ParticipantTableModel: pass def setModel(self, model: Parti...
18
0
7
1
7
0
2
0
1
6
2
0
12
1
12
12
106
20
86
34
68
0
68
29
55
4
1
1
20
24,309
jopohl/urh
jopohl_urh/src/urh/ui/views/ProtocolLabelTableView.py
urh.ui.views.ProtocolLabelTableView.ProtocolLabelTableView
from urh.models.PLabelTableModel import PLabelTableModel from urh.models.SimulatorMessageFieldModel import SimulatorMessageFieldModel from PyQt5.QtCore import Qt from urh.simulator.SimulatorProtocolLabel import SimulatorProtocolLabel from PyQt5.QtGui import QKeySequence, QIcon from PyQt5.QtWidgets import QTableView, QM...
class ProtocolLabelTableView(QTableView): def __init__(self, parent=None): pass @property def selected_rows(self) -> list: pass def model(self) -> PLabelTableModel: pass def create_context_menu(self): pass def contextMenuEvent(self, event): pass ...
9
0
7
1
6
0
2
0
1
6
3
1
7
1
7
7
57
12
45
18
36
0
40
17
32
5
1
3
12
24,310
jopohl/urh
jopohl_urh/src/urh/ui/views/ProtocolTableView.py
urh.ui.views.ProtocolTableView.ProtocolTableView
import numpy from urh.ui.views.TableView import TableView from PyQt5.QtCore import QItemSelection, pyqtSlot from urh.signalprocessing.Participant import Participant from urh.signalprocessing.MessageType import MessageType from PyQt5.QtWidgets import QHeaderView, QAction, QActionGroup from PyQt5.QtCore import pyqtSignal...
class ProtocolTableView(TableView): def __init__(self, parent=None): pass def model(self) -> ProtocolTableModel: pass @property def selected_messages(self): pass def selectionChanged(self, selection_1: QItemSelection, selection_2: QItemSelection): pass def dr...
36
0
12
2
10
0
3
0.01
1
8
2
0
22
5
22
43
304
55
248
92
210
2
196
77
173
24
2
3
56
24,311
jopohl/urh
jopohl_urh/src/urh/ui/views/ProtocolTreeView.py
urh.ui.views.ProtocolTreeView.ProtocolTreeView
from PyQt5.QtGui import QContextMenuEvent, QDropEvent, QIcon from PyQt5.QtCore import pyqtSignal, QItemSelectionModel, Qt from PyQt5.QtWidgets import QTreeView, QAbstractItemView, QMenu from urh.models.ProtocolTreeModel import ProtocolTreeModel from PyQt5.QtCore import QItemSelection, pyqtSlot class ProtocolTreeView(Q...
class ProtocolTreeView(QTreeView): def __init__(self, parent=None): pass def model(self) -> ProtocolTreeModel: pass def selectionModel(self) -> QItemSelectionModel: pass def create_context_menu(self): pass def contextMenuEvent(self, event: QContextMenuEvent): ...
18
0
9
1
8
0
2
0
1
2
1
0
12
2
12
12
127
19
108
46
90
0
83
41
70
7
1
3
20
24,312
jopohl/urh
jopohl_urh/src/urh/ui/views/SelectableGraphicView.py
urh.ui.views.SelectableGraphicView.SelectableGraphicView
from urh.ui.painting.HorizontalSelection import HorizontalSelection from urh.util import util from urh.ui.painting.ZoomableScene import ZoomableScene from PyQt5.QtWidgets import QGraphicsView, QAction from PyQt5.QtCore import QRectF, pyqtSignal, Qt, QPoint from urh import settings from PyQt5.QtGui import QMouseEvent, Q...
class SelectableGraphicView(QGraphicsView): def __init__(self, parent=None): pass def scene(self) -> ZoomableScene: pass @property def selection_area(self) -> HorizontalSelection: pass @selection_area.setter def selection_area(self) -> HorizontalSelection: pass...
29
4
14
2
11
1
3
0.09
1
5
2
1
23
10
23
23
356
68
268
64
239
25
204
59
180
21
1
3
72
24,313
jopohl/urh
jopohl_urh/src/urh/ui/views/SimulatorGraphicsView.py
urh.ui.views.SimulatorGraphicsView.SimulatorGraphicsView
from urh.simulator.GraphicsItem import GraphicsItem from PyQt5.QtCore import Qt, pyqtSlot, pyqtSignal from urh.simulator.SimulatorProtocolLabel import SimulatorProtocolLabel import copy from urh.signalprocessing.MessageType import MessageType from PyQt5.QtWidgets import QGraphicsView, QAction, QActionGroup, QMenu, QAbs...
class SimulatorGraphicsView(QGraphicsView): def __init__(self, parent=None): pass def scene(self) -> SimulatorScene: pass @pyqtSlot() def on_add_message_action_triggered(self): pass def add_empty_message(self, num_bits): pass @pyqtSlot() def on_add_rule_ac...
53
0
12
1
10
0
2
0.01
1
9
7
0
31
7
32
32
436
79
356
140
301
3
260
117
227
17
1
3
78
24,314
jopohl/urh
jopohl_urh/src/urh/ui/views/SimulatorLabelTableView.py
urh.ui.views.SimulatorLabelTableView.SimulatorLabelTableView
from PyQt5.QtCore import Qt, pyqtSlot, QModelIndex, pyqtSignal from urh.ui.views.ProtocolLabelTableView import ProtocolLabelTableView from PyQt5.QtGui import QMouseEvent from urh.models.SimulatorMessageFieldModel import SimulatorMessageFieldModel class SimulatorLabelTableView(ProtocolLabelTableView): item_link_cli...
class SimulatorLabelTableView(ProtocolLabelTableView): def __init__(self, parent=None): pass def model(self) -> SimulatorMessageFieldModel: pass def mouseMoveEvent(self, e: QMouseEvent): pass @pyqtSlot(QModelIndex) def on_clicked(self, index: QModelIndex): pass
6
0
4
0
4
0
2
0
1
2
1
0
4
0
4
11
22
4
18
8
12
0
16
7
11
2
2
1
6
24,315
jopohl/urh
jopohl_urh/src/urh/ui/views/SimulatorMessageTableView.py
urh.ui.views.SimulatorMessageTableView.SimulatorMessageTableView
from urh import settings from PyQt5.QtCore import pyqtSignal from urh.simulator.SimulatorItem import SimulatorItem from urh.models.SimulatorMessageTableModel import SimulatorMessageTableModel from urh.ui.views.TableView import TableView from urh.simulator.SimulatorMessage import SimulatorMessage from PyQt5.QtWidgets im...
class SimulatorMessageTableView(TableView): def __init__(self, parent=None): pass def _insert_column(self, pos): pass @property def selected_message(self) -> SimulatorMessage: pass def model(self) -> SimulatorMessageTableModel: pass def create_context_menu(se...
17
0
10
2
9
0
3
0
1
8
3
0
10
0
10
31
122
29
93
39
76
0
75
33
64
9
2
3
25
24,316
jopohl/urh
jopohl_urh/src/urh/ui/views/SpectrogramGraphicView.py
urh.ui.views.SpectrogramGraphicView.SpectrogramGraphicView
from PyQt5.QtCore import pyqtSlot, pyqtSignal from urh.ui.painting.SpectrogramScene import SpectrogramScene from urh.ui.views.ZoomableGraphicView import ZoomableGraphicView from urh.controller.dialogs.FilterBandwidthDialog import FilterBandwidthDialog import numpy as np from urh.ui.painting.SpectrogramSceneManager impo...
class SpectrogramGraphicView(ZoomableGraphicView): def __init__(self, parent=None): pass @property def y_center(self): pass @property def height_spectrogram(self): pass @property def width_spectrogram(self): pass def scene(self) -> SpectrogramScene: ...
20
0
7
1
6
0
1
0
1
8
4
0
13
2
13
57
113
23
90
41
70
0
72
34
58
3
3
2
19
24,317
jopohl/urh
jopohl_urh/src/urh/ui/views/TableView.py
urh.ui.views.TableView.TableView
from PyQt5.QtCore import Qt, QItemSelectionModel, QItemSelection, pyqtSlot, pyqtSignal from PyQt5.QtGui import QKeySequence, QKeyEvent, QFontMetrics, QIcon, QContextMenuEvent import numpy as np from PyQt5.QtWidgets import QTableView, QApplication, QAction, QStyleFactory, QMenu class TableView(QTableView): create_l...
class TableView(QTableView): def __init__(self, parent=None): pass def _add_insert_column_menu(self, menu): pass def selectionModel(self) -> QItemSelectionModel: pass def set_font_size(self, n: float): pass @property def selection_is_empty(self) -> bool: ...
33
1
14
2
12
0
3
0.02
1
7
0
3
21
8
21
21
339
65
270
84
237
6
227
74
204
19
1
3
62
24,318
jopohl/urh
jopohl_urh/src/urh/ui/views/TextEditProtocolView.py
urh.ui.views.TextEditProtocolView.TextEditProtocolView
from PyQt5.QtCore import pyqtSignal, Qt, pyqtSlot from PyQt5.QtGui import QIcon, QKeyEvent, QContextMenuEvent, QTextCursor from PyQt5.QtWidgets import QTextEdit, QMenu, QActionGroup class TextEditProtocolView(QTextEdit): proto_view_changed = pyqtSignal() deletion_wanted = pyqtSignal() show_proto_clicked = ...
class TextEditProtocolView(QTextEdit): def __init__(self, parent=None): pass @property def selected_text(self): pass def keyPressEvent(self, event: QKeyEvent): pass @pyqtSlot() def on_bit_action_triggered(self): pass @pyqtSlot() def on_hex_action_trigge...
22
0
10
1
8
0
2
0.02
1
2
0
0
13
5
13
13
151
28
123
54
101
2
104
46
90
10
1
3
26
24,319
jopohl/urh
jopohl_urh/src/urh/ui/views/ZoomAndDropableGraphicView.py
urh.ui.views.ZoomAndDropableGraphicView.ZoomAndDropableGraphicView
from urh.signalprocessing.ProtocolAnalyzer import ProtocolAnalyzer from PyQt5.QtGui import QDragEnterEvent, QDropEvent from PyQt5.QtCore import pyqtSignal from urh.ui.painting.SignalSceneManager import SignalSceneManager from urh.signalprocessing.IQArray import IQArray from urh.cythonext import util from urh.ui.views.Z...
class ZoomAndDropableGraphicView(ZoomableGraphicView): def __init__(self, parent=None): pass def dragEnterEvent(self, event: QDragEnterEvent): pass def dropEvent(self, event: QDropEvent): pass def auto_fit_view(self): pass def eliminate(self): pass
6
0
12
2
10
1
2
0.14
1
7
2
0
5
4
5
49
68
15
51
21
45
7
48
21
42
6
3
2
10
24,320
jopohl/urh
jopohl_urh/src/urh/ui/views/ZoomableGraphicView.py
urh.ui.views.ZoomableGraphicView.ZoomableGraphicView
from urh.ui.views.SelectableGraphicView import SelectableGraphicView from urh.util.Logger import logger from PyQt5.QtWidgets import QAction, QMenu from PyQt5.QtCore import QTimer, pyqtSlot, Qt, pyqtSignal from PyQt5.QtGui import QIcon, QKeySequence, QWheelEvent, QCursor, QContextMenuEvent from urh.ui.painting.SceneMana...
class ZoomableGraphicView(SelectableGraphicView): def __init__(self, parent=None): pass @property def y_center(self): pass def create_context_menu(self): pass def contextMenuEvent(self, event: QContextMenuEvent): pass def _add_zoom_actions_to_menu(self, menu:...
28
0
9
1
7
0
2
0.04
1
7
1
4
21
9
21
44
213
43
165
56
137
6
141
48
119
8
2
2
40
24,321
jopohl/urh
jopohl_urh/src/urh/util/Errors.py
urh.util.Errors.Errors
from urh.util.Logger import logger import sys import traceback from urh.util.Formatter import Formatter from PyQt5.QtWidgets import QMessageBox, QWidget class Errors: @staticmethod def generic_error(title: str, msg: str, detailed_msg: str=None): w = QWidget() if detailed_msg: msg =...
class Errors: @staticmethod def generic_error(title: str, msg: str, detailed_msg: str=None): pass @staticmethod def exception(exception: Exception): pass @staticmethod def no_device(): pass @staticmethod def empty_selection(): pass @staticmethod ...
27
0
9
0
9
0
1
0
0
3
1
0
0
0
13
13
146
16
130
43
103
0
53
30
39
2
0
1
17
24,322
jopohl/urh
jopohl_urh/src/urh/util/Formatter.py
urh.util.Formatter.Formatter
import locale from urh.util.Logger import logger class Formatter: @staticmethod def local_decimal_seperator(): return locale.localeconv()['decimal_point'] @staticmethod def science_time(time_in_seconds: float, decimals=2, append_seconds=True, remove_spaces=False) -> str: if time_in_se...
class Formatter: @staticmethod def local_decimal_seperator(): pass @staticmethod def science_time(time_in_seconds: float, decimals=2, append_seconds=True, remove_spaces=False) -> str: pass @staticmethod def big_value_with_suffix(value: float, decimals=3, strip_zeros=True) -> st...
9
0
14
1
13
0
4
0
0
4
0
0
0
0
4
4
62
7
55
17
44
0
39
11
34
6
0
1
14
24,323
jopohl/urh
jopohl_urh/src/urh/util/GenericCRC.py
urh.util.GenericCRC.GenericCRC
from urh.util import util from urh.cythonext import util as c_util import copy from collections import OrderedDict import array from xml.etree import ElementTree as ET class GenericCRC(object): DEFAULT_POLYNOMIALS = OrderedDict([('8_standard', array.array('B', [1, 1, 1, 0, 1, 0, 1, 0, 1])), ('16_standard', array.a...
class GenericCRC(object): def __init__(self, polynomial='16_standard', start_value=False, final_xor=False, reverse_polynomial=False, reverse_all=False, little_endian=False, lsb_first=False): pass def __read_parameter(self, value): pass def __eq__(self, other): pass def __has...
51
2
14
1
12
1
3
0.1
1
10
0
0
26
10
36
36
607
66
496
137
427
49
294
105
257
17
1
6
116
24,324
jopohl/urh
jopohl_urh/src/urh/util/Logger.py
urh.util.Logger.Color
class Color: PURPLE = '\x1b[95m' CYAN = '\x1b[96m' DARKCYAN = '\x1b[36m' BLUE = '\x1b[94m' GREEN = '\x1b[92m' YELLOW = '\x1b[93m' RED = '\x1b[91m' BOLD = '\x1b[1m' UNDERLINE = '\x1b[4m' END = '\x1b[0m'
class Color: pass
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
11
0
11
11
10
0
11
11
10
0
0
0
0
24,325
jopohl/urh
jopohl_urh/src/urh/util/ProjectManager.py
urh.util.ProjectManager.ProjectManager
from urh.signalprocessing.Signal import Signal from urh.signalprocessing.FieldType import FieldType import xml.etree.ElementTree as ET from PyQt5.QtCore import QDir, Qt, QObject, pyqtSignal from urh.signalprocessing.Participant import Participant from urh.util.Logger import logger from urh.signalprocessing.Modulator im...
class ProjectManager(QObject): def __init__(self, main_controller): pass @property def modulators(self): pass @modulators.setter def modulators(self): pass @property def decodings(self): pass @decodings.setter def decodings(self): pass @p...
43
2
18
2
15
1
3
0.04
1
22
6
0
29
18
32
32
636
112
510
145
467
22
393
133
360
13
1
5
111
24,326
jopohl/urh
jopohl_urh/src/urh/util/RingBuffer.py
urh.util.RingBuffer.RingBuffer
import numpy as np from urh.signalprocessing.IQArray import IQArray from multiprocessing import Value, Array class RingBuffer(object): """ A RingBuffer containing complex values. """ def __init__(self, size: int, dtype=np.float32): self.dtype = dtype types = {np.uint8: 'B', np.int8: 'b...
class RingBuffer(object): ''' A RingBuffer containing complex values. ''' def __init__(self, size: int, dtype=np.float32): pass def __len__(self): pass @property def left_index(self): pass @left_index.setter def left_index(self): pass @property ...
23
4
8
1
6
1
2
0.18
1
4
1
0
14
6
14
14
134
27
91
39
68
16
68
31
53
6
1
2
21
24,327
jopohl/urh
jopohl_urh/src/urh/util/WSPChecksum.py
urh.util.WSPChecksum.WSPChecksum
from urh.util import util from xml.etree import ElementTree as ET import copy import array from urh.util.GenericCRC import GenericCRC from enum import Enum class WSPChecksum(object): """ This class implements the three checksums from Wireless Short Packet (WSP) standard http://hes-standards.org/doc/SC25_WG...
class WSPChecksum(object): ''' This class implements the three checksums from Wireless Short Packet (WSP) standard http://hes-standards.org/doc/SC25_WG1_N1493.pdf ''' class ChecksumMode(Enum): def __init__(self, mode=ChecksumMode.auto): pass def __eq__(self, other): pass ...
17
2
9
1
7
1
2
0.22
1
11
2
0
5
2
10
10
113
21
78
31
61
17
63
26
51
8
1
3
23
24,328
secdev/scapy
secdev_scapy/scapy/ansmachine.py
scapy.ansmachine.AnsweringMachine
from scapy.sendrecv import sendp, sniff, AsyncSniffer from scapy.config import conf import abc import warnings from scapy.plist import PacketList from typing import Any, Callable, Dict, Generic, Optional, Tuple, Type, TypeVar, cast class AnsweringMachine(Generic[_T], metaclass=ReferenceAM): function_name = '' ...
class AnsweringMachine(Generic[_T], metaclass=ReferenceAM): def __init__(self, **kargs): pass def __getattr__(self, attr): pass def __setattr__(self, attr, val): pass def parse_options(self): pass def parse_all_options(self, mode, kargs): pass def i...
17
0
9
0
7
2
2
0.24
2
6
2
11
15
10
15
31
154
16
121
44
104
29
108
43
92
8
3
2
35
24,329
secdev/scapy
secdev_scapy/scapy/ansmachine.py
scapy.ansmachine.AnsweringMachineTCP
import functools import socket from scapy.sendrecv import sendp, sniff, AsyncSniffer from scapy.arch import get_if_addr from scapy.packet import Packet from scapy.config import conf import threading class AnsweringMachineTCP(AnsweringMachine[Packet]): """ An answering machine that use the classic socket.socket...
class AnsweringMachineTCP(AnsweringMachine[Packet]): ''' An answering machine that use the classic socket.socket to answer multiple TCP clients ''' def parse_options(self, port=80, cls=conf.raw_layer): pass def close(self): pass def sniff(self): pass def snif...
6
1
10
0
9
1
2
0.22
1
7
2
1
5
4
5
36
59
5
45
18
38
10
41
17
34
5
4
3
9
24,330
secdev/scapy
secdev_scapy/scapy/ansmachine.py
scapy.ansmachine.AnsweringMachineUDP
import socket class AnsweringMachineUDP(AnsweringMachineTCP): """ An answering machine that use the classic socket.socket to answer multiple UDP clients """ TYPE = socket.SOCK_DGRAM
class AnsweringMachineUDP(AnsweringMachineTCP): ''' An answering machine that use the classic socket.socket to answer multiple UDP clients ''' pass
1
1
0
0
0
0
0
2
1
0
0
0
0
0
0
36
6
0
2
2
1
4
2
2
1
0
5
0
0
24,331
secdev/scapy
secdev_scapy/scapy/ansmachine.py
scapy.ansmachine.ReferenceAM
from typing import Any, Callable, Dict, Generic, Optional, Tuple, Type, TypeVar, cast class ReferenceAM(type): def __new__(cls, name, bases, dct): obj = cast('Type[AnsweringMachine[_T]]', super(ReferenceAM, cls).__new__(cls, name, bases, dct)) try: import inspect obj.__sign...
class ReferenceAM(type): def __new__(cls, name, bases, dct): pass
2
0
26
0
24
8
4
0.32
1
3
0
1
1
0
1
14
27
0
25
9
18
8
18
5
15
4
2
2
4
24,332
secdev/scapy
secdev_scapy/scapy/arch/WINDOWS/__init__.py
scapy.arch.WINDOWS.NetworkInterface_Win
from scapy.arch.windows.structures import _windows_title, GetAdaptersAddresses, GetIpForwardTable, GetIpForwardTable2, get_service_status from scapy.compat import plain_str from scapy.error import Scapy_Exception, log_interactive, log_loading, log_runtime, warning from scapy.config import conf, ProgPath from scapy.inte...
class NetworkInterface_Win(NetworkInterface): '''A network interface of your local host''' def __init__(self, provider, data=None): pass def update(self, data): '''Update info about a network interface according to a given dictionary. Such data is provided by get_windows_if_list ...
18
15
12
0
7
5
2
0.74
1
7
1
0
17
7
17
30
222
18
122
35
104
90
100
35
82
5
2
2
34
24,333
secdev/scapy
secdev_scapy/scapy/arch/WINDOWS/__init__.py
scapy.arch.WINDOWS.WinProgPath
from scapy.config import conf, ProgPath import os class WinProgPath(ProgPath): def __init__(self): self._reload() def _reload(self): self.pdfreader = '' self.psreader = '' self.svgreader = '' self.dot = win_find_exe('dot') self.tcpdump = win_find_exe('windump')...
class WinProgPath(ProgPath): def __init__(self): pass def _reload(self): pass
3
0
14
0
13
2
1
0.12
1
0
0
0
2
14
2
2
30
1
26
17
23
3
18
17
15
1
1
0
2
24,334
secdev/scapy
secdev_scapy/scapy/arch/WINDOWS/__init__.py
scapy.arch.WINDOWS.WindowsInterfacesProvider
from scapy.config import conf, ProgPath from scapy.error import Scapy_Exception, log_interactive, log_loading, log_runtime, warning from scapy.interfaces import NetworkInterface, InterfaceProvider, dev_from_index, resolve_iface, network_name from typing import Any, Dict, Iterator, List, Optional, Tuple, Type, Union, ca...
class WindowsInterfacesProvider(InterfaceProvider): def _is_valid(self, dev): pass @classmethod def _pcap_check(cls): '''Performs checks/restart pcap adapter''' pass def _ask_user(): pass def load(self, NetworkInterface_Win=NetworkInterface_Win): ...
9
3
24
1
19
5
5
0.25
1
9
0
0
4
1
5
13
144
10
107
30
94
27
79
27
69
9
2
4
32
24,335
secdev/scapy
secdev_scapy/scapy/arch/bpf/core.py
scapy.arch.bpf.core.BPFInterfaceProvider
import struct from scapy.interfaces import InterfaceProvider, NetworkInterface, _GlobInterfaceType from scapy.arch.bpf.consts import BIOCSETF, BIOCSETIF from scapy.error import Scapy_Exception import fcntl from scapy.arch.bpf.pfroute import read_routes, read_routes6, _get_if_list import os class BPFInterfaceProvider(I...
class BPFInterfaceProvider(InterfaceProvider): def _is_valid(self, dev): pass def load(self): pass
3
0
18
0
15
4
4
0.22
1
2
2
0
2
0
2
10
39
2
32
8
29
7
25
8
22
5
2
1
7
24,336
secdev/scapy
secdev_scapy/scapy/arch/bpf/pfroute.py
scapy.arch.bpf.pfroute.SockAddrsField
from scapy.consts import BIG_ENDIAN, BSD, DARWIN, IS_64BITS, NETBSD, OPENBSD from scapy.fields import ByteEnumField, ByteField, ConditionalField, Field, FlagsField, IP6Field, IPField, MACField, MultipleTypeField, PacketField, PacketListField, FieldListField, PadField, StrField, StrFixedLenField, StrLenField, XStrLenFie...
class SockAddrsField(FieldListField): def __init__(self, name): pass
2
0
10
0
10
0
2
0
1
2
1
0
1
0
1
1
13
1
12
4
10
0
7
4
5
2
1
1
2
24,337
secdev/scapy
secdev_scapy/scapy/arch/bpf/pfroute.py
scapy.arch.bpf.pfroute.if_announcemsghdr
from scapy.fields import ByteEnumField, ByteField, ConditionalField, Field, FlagsField, IP6Field, IPField, MACField, MultipleTypeField, PacketField, PacketListField, FieldListField, PadField, StrField, StrFixedLenField, StrLenField, XStrLenField from scapy.packet import Packet, bind_layers class if_announcemsghdr(Pack...
class if_announcemsghdr(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
6
0
6
2
5
0
2
2
1
0
1
0
0
24,338
secdev/scapy
secdev_scapy/scapy/arch/bpf/pfroute.py
scapy.arch.bpf.pfroute.ifma_msghdr
from scapy.packet import Packet, bind_layers class ifma_msghdr(Packet): fields_desc = if_msghdr.fields_desc[:4]
class ifma_msghdr(Packet): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
2
0
2
2
1
0
2
2
1
0
1
0
0
24,339
secdev/scapy
secdev_scapy/scapy/arch/bpf/pfroute.py
scapy.arch.bpf.pfroute.pfmsghdr
from scapy.packet import Packet, bind_layers from scapy.fields import ByteEnumField, ByteField, ConditionalField, Field, FlagsField, IP6Field, IPField, MACField, MultipleTypeField, PacketField, PacketListField, FieldListField, PadField, StrField, StrFixedLenField, StrLenField, XStrLenField from typing import Any, Dict,...
class pfmsghdr(Packet): def extract_padding(self, s: bytes) -> Tuple[bytes, Optional[bytes]]: pass def extract_padding(self, s: bytes) -> Tuple[bytes, Optional[bytes]]: pass
3
0
4
0
4
0
2
0.05
1
1
0
0
2
0
2
2
25
4
20
4
17
1
11
4
8
2
1
1
4
24,340
secdev/scapy
secdev_scapy/scapy/arch/bpf/pfroute.py
scapy.arch.bpf.pfroute.pfmsghdrs
from scapy.fields import ByteEnumField, ByteField, ConditionalField, Field, FlagsField, IP6Field, IPField, MACField, MultipleTypeField, PacketField, PacketListField, FieldListField, PadField, StrField, StrFixedLenField, StrLenField, XStrLenField from scapy.packet import Packet, bind_layers class pfmsghdrs(Packet): ...
class pfmsghdrs(Packet): pass
1
0
0
0
0
0
0
0.11
1
0
0
0
0
0
0
0
10
0
9
2
8
1
2
2
1
0
1
0
0
24,341
secdev/scapy
secdev_scapy/scapy/arch/bpf/pfroute.py
scapy.arch.bpf.pfroute.sockaddr
from scapy.config import conf import socket from scapy.fields import ByteEnumField, ByteField, ConditionalField, Field, FlagsField, IP6Field, IPField, MACField, MultipleTypeField, PacketField, PacketListField, FieldListField, PadField, StrField, StrFixedLenField, StrLenField, XStrLenField from scapy.packet import Packe...
class sockaddr(Packet): def default_payload_class(self, payload: bytes) -> Type[Packet]: pass
2
0
2
0
2
0
1
0.06
1
1
0
0
1
0
1
1
95
1
89
3
87
5
4
3
2
1
1
0
1
24,342
secdev/scapy
secdev_scapy/scapy/arch/bpf/supersocket.py
scapy.arch.bpf.supersocket.L2bpfListenSocket
from scapy.error import Scapy_Exception, warning from scapy.arch.bpf.consts import BIOCGBLEN, BIOCGDLT, BIOCGSTATS, BIOCIMMEDIATE, BIOCPROMISC, BIOCSBLEN, BIOCSDLT, BIOCSETIF, BIOCSHDRCMPLT, BIOCSTSTAMP, BPF_BUFFER_LENGTH, BPF_T_NANOTIME import errno import os class L2bpfListenSocket(_L2bpfSocket): """"Scapy L2 BP...
class L2bpfListenSocket(_L2bpfSocket): '''"Scapy L2 BPF Listen Super Socket''' def __init__(self, *args, **kwargs): pass def buffered_frames(self): '''Return the number of frames in the buffer''' pass def get_frame(self): '''Get a frame or packet from the received lis...
8
6
12
2
7
4
2
0.5
1
2
1
1
5
1
6
49
83
15
46
16
38
23
39
14
32
5
5
2
14
24,343
secdev/scapy
secdev_scapy/scapy/arch/bpf/supersocket.py
scapy.arch.bpf.supersocket.L2bpfSocket
import os from scapy.compat import raw class L2bpfSocket(L2bpfListenSocket): """"Scapy L2 BPF Super Socket""" def send(self, x): """Send a frame""" return os.write(self.bpf_fd, raw(x)) def nonblock_recv(self): """Non blocking receive""" if self.buffered_frames(): ...
class L2bpfSocket(L2bpfListenSocket): '''"Scapy L2 BPF Super Socket''' def send(self, x): '''Send a frame''' pass def nonblock_recv(self): '''Non blocking receive''' pass
3
3
9
1
5
3
2
0.7
1
0
0
1
2
0
2
51
21
4
10
4
7
7
10
4
7
2
6
1
3
24,344
secdev/scapy
secdev_scapy/scapy/arch/bpf/supersocket.py
scapy.arch.bpf.supersocket.L3bpfSocket
from scapy.arch.bpf.consts import BIOCGBLEN, BIOCGDLT, BIOCGSTATS, BIOCIMMEDIATE, BIOCPROMISC, BIOCSBLEN, BIOCSDLT, BIOCSETIF, BIOCSHDRCMPLT, BIOCSTSTAMP, BPF_BUFFER_LENGTH, BPF_T_NANOTIME from typing import Any, List, Optional, Tuple, Type, TYPE_CHECKING from scapy.error import Scapy_Exception, warning from scapy.inte...
class L3bpfSocket(L2bpfSocket): def __init__(self, iface=None, type=ETH_P_ALL, promisc=None, filter=None, nofilter=0, monitor=False): pass def recv(self, x: int=BPF_BUFFER_LENGTH, **kwargs: Any) -> Optional['Packet']: '''Receive on layer 3''' pass def send(self, pkt): '''...
6
2
24
1
14
11
3
0.8
1
4
1
0
3
3
4
55
103
9
56
23
42
45
33
14
27
5
7
2
11
24,345
secdev/scapy
secdev_scapy/scapy/arch/bpf/supersocket.py
scapy.arch.bpf.supersocket._L2bpfSocket
import abc from scapy.config import conf from scapy.data import ETH_P_ALL, DLT_IEEE802_11_RADIO import struct from scapy.supersocket import SuperSocket from scapy.consts import DARWIN, FREEBSD, NETBSD import sys from scapy.error import Scapy_Exception, warning from scapy.arch.bpf.consts import BIOCGBLEN, BIOCGDLT, BIOC...
class _L2bpfSocket(SuperSocket): '''"Generic Scapy BPF Super Socket''' def __init__(self, iface=None, type=ETH_P_ALL, promisc=None, filter=None, nofilter=0, monitor=False): pass def set_promisc(self, value): '''Set the interface in promiscuous mode''' pass def __del__(self): ...
16
12
20
2
14
5
4
0.34
1
7
1
1
11
8
12
43
261
35
174
45
151
60
137
34
124
21
4
3
43
24,346
secdev/scapy
secdev_scapy/scapy/arch/bpf/supersocket.py
scapy.arch.bpf.supersocket.bpf_hdr
import ctypes class bpf_hdr(ctypes.Structure): _fields_ = [('bh_tstamp', bpf_timeval), ('bh_caplen', ctypes.c_uint32), ('bh_datalen', ctypes.c_uint32), ('bh_hdrlen', ctypes.c_uint16)]
class bpf_hdr(ctypes.Structure): pass
1
0
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
24,347
secdev/scapy
secdev_scapy/scapy/arch/libpcap.py
scapy.arch.libpcap._L2libpcapSocket
from scapy.error import Scapy_Exception, log_loading, log_runtime, warning from scapy.automaton import select_objects from scapy.supersocket import SuperSocket from scapy.config import conf from scapy.data import DLT_RAW_ALT, DLT_RAW, ETH_P_ALL, MTU class _L2libpcapSocket(SuperSocket): __slots__ = ['pcap_fd', 'lvl...
class _L2libpcapSocket(SuperSocket): def __init__(self, fd): pass def recv_raw(self, x=MTU): ''' Receives a packet, then returns a tuple containing (cls, pkt_data, time) ''' pass def nonblock_recv(self, x=MTU): '''Receives and dissect a packet in n...
8
2
9
0
7
2
2
0.29
1
0
0
2
5
4
6
37
60
6
42
16
34
12
32
15
25
3
4
2
11
24,348
secdev/scapy
secdev_scapy/scapy/arch/linux/__init__.py
scapy.arch.linux.L2ListenSocket
from scapy.error import ScapyInvalidPlatformException, Scapy_Exception, log_runtime, warning class L2ListenSocket(L2Socket): desc = 'read packets at layer 2 using Linux PF_PACKET sockets. Also receives the packets going OUT' def send(self, x): raise Scapy_Exception("Can't send anything with L2ListenSo...
class L2ListenSocket(L2Socket): def send(self, x): pass
2
0
3
0
2
1
1
0.5
1
1
1
0
1
0
1
36
6
1
4
3
2
2
4
3
2
1
5
0
1
24,349
secdev/scapy
secdev_scapy/scapy/arch/linux/__init__.py
scapy.arch.linux.L2Socket
from scapy.config import conf from scapy.data import MTU, ETH_P_ALL, SOL_PACKET, SO_ATTACH_FILTER, SO_TIMESTAMPNS from scapy.packet import Packet, Padding import socket from scapy.supersocket import SuperSocket from scapy.interfaces import InterfaceProvider, NetworkInterface, _GlobInterfaceType, network_name, resolve_i...
class L2Socket(SuperSocket): def __init__(self, iface=None, type=ETH_P_ALL, promisc=None, filter=None, nofilter=0, monitor=None): pass def close(self): pass def recv_raw(self, x=MTU): '''Receives a packet, then returns a tuple containing (cls, pkt_data, time)''' pass ...
5
1
24
0
22
4
6
0.19
1
7
2
2
4
8
4
35
102
4
90
27
78
17
69
18
64
12
4
3
23
24,350
secdev/scapy
secdev_scapy/scapy/arch/linux/__init__.py
scapy.arch.linux.L3PacketSocket
from scapy.error import ScapyInvalidPlatformException, Scapy_Exception, log_runtime, warning import time from scapy.data import MTU, ETH_P_ALL, SOL_PACKET, SO_ATTACH_FILTER, SO_TIMESTAMPNS from scapy.supersocket import SuperSocket from scapy.config import conf from scapy.interfaces import InterfaceProvider, NetworkInte...
class L3PacketSocket(L2Socket): def __init__(self, iface=None, type=ETH_P_ALL, promisc=None, filter=None, nofilter=0, monitor=None): pass def recv(self, x=MTU, **kwargs): pass def send(self, x): pass @staticmethod def select(sockets, remain=None): pass def cl...
7
0
17
0
16
3
4
0.15
1
3
0
0
4
3
5
40
95
5
84
30
70
13
57
20
51
11
5
3
21
24,351
secdev/scapy
secdev_scapy/scapy/arch/linux/__init__.py
scapy.arch.linux.LinuxInterfaceProvider
from scapy.arch.linux.rtnetlink import read_routes, read_routes6, in6_getifaddr, _get_if_list from scapy.interfaces import InterfaceProvider, NetworkInterface, _GlobInterfaceType, network_name, resolve_iface class LinuxInterfaceProvider(InterfaceProvider): name = 'sys' def _is_valid(self, dev): return...
class LinuxInterfaceProvider(InterfaceProvider): def _is_valid(self, dev): pass def load(self): pass
3
0
8
0
7
1
2
0.13
1
2
1
0
2
0
2
10
19
2
15
7
12
2
11
7
8
2
2
1
3
24,352
secdev/scapy
secdev_scapy/scapy/arch/linux/__init__.py
scapy.arch.linux.VEthPair
import subprocess from scapy.config import conf from scapy.consts import LINUX from scapy.error import ScapyInvalidPlatformException, Scapy_Exception, log_runtime, warning class VEthPair(object): """ encapsulates a virtual Ethernet interface pair """ def __init__(self, iface_name, peer_name): ...
class VEthPair(object): ''' encapsulates a virtual Ethernet interface pair ''' def __init__(self, iface_name, peer_name): pass def iface(self): pass def peer(self): pass def setup(self): ''' create veth pair links :raises subprocess.Called...
10
5
6
0
3
3
1
1.1
1
1
1
0
9
1
9
9
68
10
29
13
19
32
27
13
17
2
1
1
12
24,353
secdev/scapy
secdev_scapy/scapy/arch/linux/rtnetlink.py
scapy.arch.linux.rtnetlink.ifaddrmsg
from scapy.fields import ByteEnumField, ByteField, EnumField, Field, FieldLenField, FlagsField, IP6Field, IPField, LenField, MACField, MayEnd, MultipleTypeField, PacketListField, PadField, StrLenField, XStrLenField import socket from scapy.packet import Packet, bind_layers class ifaddrmsg(Packet): fields_desc = [B...
class ifaddrmsg(Packet): pass
1
0
0
0
0
0
0
0.09
1
0
0
0
0
0
0
0
24
0
23
2
22
2
2
2
1
0
1
0
0
24,354
secdev/scapy
secdev_scapy/scapy/arch/linux/rtnetlink.py
scapy.arch.linux.rtnetlink.ifaddrmsg_rtattr
from scapy.config import conf from scapy.packet import Packet, bind_layers from typing import Any, Dict, List, Optional, Tuple, Type from scapy.fields import ByteEnumField, ByteField, EnumField, Field, FieldLenField, FlagsField, IP6Field, IPField, LenField, MACField, MayEnd, MultipleTypeField, PacketListField, PadField...
class ifaddrmsg_rtattr(Packet): def default_payload_class(self, payload: bytes) -> Type[Packet]: pass
2
0
2
0
2
0
1
0.04
1
1
0
0
1
0
1
1
60
1
57
3
55
2
4
3
2
1
1
0
1
24,355
secdev/scapy
secdev_scapy/scapy/arch/linux/rtnetlink.py
scapy.arch.linux.rtnetlink.ifinfomsg
from scapy.consts import BIG_ENDIAN import socket from scapy.arch.common import _iff_flags from scapy.fields import ByteEnumField, ByteField, EnumField, Field, FieldLenField, FlagsField, IP6Field, IPField, LenField, MACField, MayEnd, MultipleTypeField, PacketListField, PadField, StrLenField, XStrLenField from scapy.pac...
class ifinfomsg(Packet): pass
1
0
0
0
0
0
0
0.13
1
0
0
0
0
0
0
0
16
0
15
2
14
2
2
2
1
0
1
0
0
24,356
secdev/scapy
secdev_scapy/scapy/arch/linux/rtnetlink.py
scapy.arch.linux.rtnetlink.ifinfomsg_rtattr
from typing import Any, Dict, List, Optional, Tuple, Type from scapy.config import conf from scapy.packet import Packet, bind_layers from scapy.fields import ByteEnumField, ByteField, EnumField, Field, FieldLenField, FlagsField, IP6Field, IPField, LenField, MACField, MayEnd, MultipleTypeField, PacketListField, PadField...
class ifinfomsg_rtattr(Packet): def default_payload_class(self, payload: bytes) -> Type[Packet]: pass
2
0
2
0
2
0
1
0.03
1
1
0
0
1
0
1
1
112
1
108
3
106
3
4
3
2
1
1
0
1
24,357
secdev/scapy
secdev_scapy/scapy/arch/linux/rtnetlink.py
scapy.arch.linux.rtnetlink.ifla_af_spec_inet6_rtattr
from typing import Any, Dict, List, Optional, Tuple, Type from scapy.packet import Packet, bind_layers from scapy.config import conf from scapy.fields import ByteEnumField, ByteField, EnumField, Field, FieldLenField, FlagsField, IP6Field, IPField, LenField, MACField, MayEnd, MultipleTypeField, PacketListField, PadField...
class ifla_af_spec_inet6_rtattr(Packet): def default_payload_class(self, payload: bytes) -> Type[Packet]: pass
2
0
2
0
2
0
1
0
1
1
0
0
1
0
1
1
37
1
36
3
34
0
4
3
2
1
1
0
1
24,358
secdev/scapy
secdev_scapy/scapy/arch/linux/rtnetlink.py
scapy.arch.linux.rtnetlink.ifla_af_spec_inet_rtattr
from scapy.packet import Packet, bind_layers from scapy.fields import ByteEnumField, ByteField, EnumField, Field, FieldLenField, FlagsField, IP6Field, IPField, LenField, MACField, MayEnd, MultipleTypeField, PacketListField, PadField, StrLenField, XStrLenField from typing import Any, Dict, List, Optional, Tuple, Type fr...
class ifla_af_spec_inet_rtattr(Packet): def default_payload_class(self, payload: bytes) -> Type[Packet]: pass
2
0
2
0
2
0
1
0
1
1
0
0
1
0
1
1
29
1
28
3
26
0
4
3
2
1
1
0
1
24,359
secdev/scapy
secdev_scapy/scapy/arch/linux/rtnetlink.py
scapy.arch.linux.rtnetlink.ifla_af_spec_rtattr
from typing import Any, Dict, List, Optional, Tuple, Type from scapy.packet import Packet, bind_layers from scapy.config import conf import socket from scapy.fields import ByteEnumField, ByteField, EnumField, Field, FieldLenField, FlagsField, IP6Field, IPField, LenField, MACField, MayEnd, MultipleTypeField, PacketListF...
class ifla_af_spec_rtattr(Packet): def default_payload_class(self, payload: bytes) -> Type[Packet]: pass
2
0
2
0
2
0
1
0.05
1
1
0
0
1
0
1
1
42
1
39
3
37
2
4
3
2
1
1
0
1
24,360
secdev/scapy
secdev_scapy/scapy/arch/linux/rtnetlink.py
scapy.arch.linux.rtnetlink.nlmsgerr
from scapy.fields import ByteEnumField, ByteField, EnumField, Field, FieldLenField, FlagsField, IP6Field, IPField, LenField, MACField, MayEnd, MultipleTypeField, PacketListField, PadField, StrLenField, XStrLenField from scapy.packet import Packet, bind_layers class nlmsgerr(Packet): fields_desc = [MayEnd(Field('st...
class nlmsgerr(Packet): pass
1
0
0
0
0
0
0
0.2
1
0
0
0
0
0
0
0
6
0
5
2
4
1
2
2
1
0
1
0
0
24,361
secdev/scapy
secdev_scapy/scapy/arch/linux/rtnetlink.py
scapy.arch.linux.rtnetlink.nlmsgerr_rtattr
from scapy.fields import ByteEnumField, ByteField, EnumField, Field, FieldLenField, FlagsField, IP6Field, IPField, LenField, MACField, MayEnd, MultipleTypeField, PacketListField, PadField, StrLenField, XStrLenField from typing import Any, Dict, List, Optional, Tuple, Type from scapy.packet import Packet, bind_layers fr...
class nlmsgerr_rtattr(Packet): def default_payload_class(self, payload: bytes) -> Type[Packet]: pass
2
0
2
0
2
0
1
0
1
1
0
0
1
0
1
1
26
1
25
3
23
0
4
3
2
1
1
0
1
24,362
secdev/scapy
secdev_scapy/scapy/arch/linux/rtnetlink.py
scapy.arch.linux.rtnetlink.rtmsg
import socket from scapy.fields import ByteEnumField, ByteField, EnumField, Field, FieldLenField, FlagsField, IP6Field, IPField, LenField, MACField, MayEnd, MultipleTypeField, PacketListField, PadField, StrLenField, XStrLenField from scapy.consts import BIG_ENDIAN from scapy.packet import Packet, bind_layers class rtm...
class rtmsg(Packet): pass
1
0
0
0
0
0
0
0.03
1
0
0
0
0
0
0
0
70
0
69
2
68
2
2
2
1
0
1
0
0
24,363
secdev/scapy
secdev_scapy/scapy/arch/linux/rtnetlink.py
scapy.arch.linux.rtnetlink.rtmsg_rtattr
from scapy.fields import ByteEnumField, ByteField, EnumField, Field, FieldLenField, FlagsField, IP6Field, IPField, LenField, MACField, MayEnd, MultipleTypeField, PacketListField, PadField, StrLenField, XStrLenField from scapy.config import conf from typing import Any, Dict, List, Optional, Tuple, Type from scapy.packet...
class rtmsg_rtattr(Packet): def default_payload_class(self, payload: bytes) -> Type[Packet]: pass
2
0
2
0
2
0
1
0.04
1
1
0
0
1
0
1
1
79
1
75
3
73
3
4
3
2
1
1
0
1
24,364
secdev/scapy
secdev_scapy/scapy/arch/linux/rtnetlink.py
scapy.arch.linux.rtnetlink.rtmsghdr
from scapy.packet import Packet, bind_layers from typing import Any, Dict, List, Optional, Tuple, Type from scapy.consts import BIG_ENDIAN import struct from scapy.fields import ByteEnumField, ByteField, EnumField, Field, FieldLenField, FlagsField, IP6Field, IPField, LenField, MACField, MayEnd, MultipleTypeField, Packe...
class rtmsghdr(Packet): def post_build(self, pkt: bytes, pay: bytes) -> bytes: pass def extract_padding(self, s: bytes) -> Tuple[bytes, Optional[bytes]]: pass def answers(self, other: Packet) -> bool: pass
4
0
3
0
3
0
1
0.1
1
2
0
0
3
0
3
3
57
3
49
5
45
5
11
5
7
2
1
1
4
24,365
secdev/scapy
secdev_scapy/scapy/arch/linux/rtnetlink.py
scapy.arch.linux.rtnetlink.rtmsghdrs
from scapy.fields import ByteEnumField, ByteField, EnumField, Field, FieldLenField, FlagsField, IP6Field, IPField, LenField, MACField, MayEnd, MultipleTypeField, PacketListField, PadField, StrLenField, XStrLenField from scapy.packet import Packet, bind_layers class rtmsghdrs(Packet): fields_desc = [PacketListField...
class rtmsghdrs(Packet): pass
1
0
0
0
0
0
0
0.11
1
0
0
0
0
0
0
0
10
0
9
2
8
1
2
2
1
0
1
0
0
24,366
secdev/scapy
secdev_scapy/scapy/arch/windows/__init__.py
scapy.arch.windows.NetworkInterface_Win
from scapy.compat import plain_str from scapy.arch.windows.structures import _windows_title, GetAdaptersAddresses, GetIpForwardTable, GetIpForwardTable2, get_service_status from scapy.interfaces import NetworkInterface, InterfaceProvider, dev_from_index, resolve_iface, network_name from scapy.error import Scapy_Excepti...
class NetworkInterface_Win(NetworkInterface): '''A network interface of your local host''' def __init__(self, provider, data=None): pass def update(self, data): '''Update info about a network interface according to a given dictionary. Such data is provided by get_windows_if_list ...
18
15
12
0
7
5
2
0.74
1
7
1
0
17
7
17
30
222
18
122
35
104
90
100
35
82
5
2
2
34
24,367
secdev/scapy
secdev_scapy/scapy/arch/windows/__init__.py
scapy.arch.windows.WinProgPath
import os from scapy.config import conf, ProgPath class WinProgPath(ProgPath): def __init__(self): self._reload() def _reload(self): self.pdfreader = '' self.psreader = '' self.svgreader = '' self.dot = win_find_exe('dot') self.tcpdump = win_find_exe('windump')...
class WinProgPath(ProgPath): def __init__(self): pass def _reload(self): pass
3
0
14
0
13
2
1
0.12
1
0
0
0
2
14
2
2
30
1
26
17
23
3
18
17
15
1
1
0
2
24,368
secdev/scapy
secdev_scapy/scapy/arch/windows/__init__.py
scapy.arch.windows.WindowsInterfacesProvider
from scapy.config import conf, ProgPath from scapy.interfaces import NetworkInterface, InterfaceProvider, dev_from_index, resolve_iface, network_name from typing import Any, Dict, Iterator, List, Optional, Tuple, Type, Union, cast, overload from scapy.error import Scapy_Exception, log_interactive, log_loading, log_runt...
class WindowsInterfacesProvider(InterfaceProvider): def _is_valid(self, dev): pass @classmethod def _pcap_check(cls): '''Performs checks/restart pcap adapter''' pass def _ask_user(): pass def load(self, NetworkInterface_Win=NetworkInterface_Win): ...
9
3
24
1
19
5
5
0.25
1
9
0
0
4
1
5
13
144
10
107
30
94
27
79
27
69
9
2
4
32
24,369
secdev/scapy
secdev_scapy/scapy/arch/windows/__init__.py
scapy.arch.windows._NotAvailableSocket
from scapy.supersocket import SuperSocket class _NotAvailableSocket(SuperSocket): desc = 'wpcap.dll missing' def __init__(self, *args, **kargs): raise RuntimeError('Sniffing and sending packets is not available at layer 2: winpcap is not installed. You may use conf.L3socket or conf.L3socket6 to access...
class _NotAvailableSocket(SuperSocket): def __init__(self, *args, **kargs): pass
2
0
7
0
6
1
1
0.13
1
1
0
0
1
0
1
32
10
1
8
3
6
1
4
3
2
1
4
0
1
24,370
secdev/scapy
secdev_scapy/scapy/arch/windows/native.py
scapy.arch.windows.native.L3WinSocket
from scapy.compat import raw import socket from scapy.automaton import select_objects import time from scapy.data import MTU from scapy.error import Scapy_Exception, log_runtime from scapy.config import conf import io import struct from scapy.supersocket import SuperSocket from scapy.interfaces import resolve_iface, _G...
class L3WinSocket(SuperSocket): ''' A L3 raw socket implementation native to Windows. Official "Windows Limitations" from MSDN: - TCP data cannot be sent over raw sockets. - UDP datagrams with an invalid source address cannot be sent over raw sockets. - For IPv6 (address family of A...
8
1
25
0
20
6
5
0.48
1
9
4
1
5
6
6
37
187
10
128
40
107
62
91
32
77
14
4
2
28
24,371
secdev/scapy
secdev_scapy/scapy/arch/windows/native.py
scapy.arch.windows.native.L3WinSocket6
class L3WinSocket6(L3WinSocket): desc = 'a native Layer 3 (IPv6) raw socket under Windows' def __init__(self, **kwargs): super(L3WinSocket6, self).__init__(ipv6=True, **kwargs)
class L3WinSocket6(L3WinSocket): def __init__(self, **kwargs): pass
2
0
6
0
5
1
1
0.14
1
1
0
0
1
0
1
38
9
1
7
3
5
1
4
3
2
1
5
0
1
24,372
secdev/scapy
secdev_scapy/scapy/arch/windows/structures.py
scapy.arch.windows.structures.IP_ADAPTER_ADDRESSES
from ctypes import POINTER, Structure, WINFUNCTYPE, byref, create_string_buffer class IP_ADAPTER_ADDRESSES(Structure): pass
class IP_ADAPTER_ADDRESSES(Structure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
2
0
2
1
1
0
2
1
1
0
1
0
0
24,373
secdev/scapy
secdev_scapy/scapy/arch/windows/structures.py
scapy.arch.windows.structures.IP_ADAPTER_ANYCAST_ADDRESS
from ctypes import POINTER, Structure, WINFUNCTYPE, byref, create_string_buffer class IP_ADAPTER_ANYCAST_ADDRESS(Structure): pass
class IP_ADAPTER_ANYCAST_ADDRESS(Structure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
2
0
2
1
1
0
2
1
1
0
1
0
0
24,374
secdev/scapy
secdev_scapy/scapy/arch/windows/structures.py
scapy.arch.windows.structures.IP_ADAPTER_DNS_SERVER_ADDRESS
from ctypes import POINTER, Structure, WINFUNCTYPE, byref, create_string_buffer class IP_ADAPTER_DNS_SERVER_ADDRESS(Structure): pass
class IP_ADAPTER_DNS_SERVER_ADDRESS(Structure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
2
0
2
1
1
0
2
1
1
0
1
0
0
24,375
secdev/scapy
secdev_scapy/scapy/arch/windows/structures.py
scapy.arch.windows.structures.IP_ADAPTER_MULTICAST_ADDRESS
from ctypes import POINTER, Structure, WINFUNCTYPE, byref, create_string_buffer class IP_ADAPTER_MULTICAST_ADDRESS(Structure): pass
class IP_ADAPTER_MULTICAST_ADDRESS(Structure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
2
0
2
1
1
0
2
1
1
0
1
0
0
24,376
secdev/scapy
secdev_scapy/scapy/arch/windows/structures.py
scapy.arch.windows.structures.IP_ADAPTER_PREFIX
from ctypes import POINTER, Structure, WINFUNCTYPE, byref, create_string_buffer class IP_ADAPTER_PREFIX(Structure): pass
class IP_ADAPTER_PREFIX(Structure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
2
0
2
1
1
0
2
1
1
0
1
0
0
24,377
secdev/scapy
secdev_scapy/scapy/arch/windows/structures.py
scapy.arch.windows.structures.IP_ADAPTER_UNICAST_ADDRESS
from ctypes import POINTER, Structure, WINFUNCTYPE, byref, create_string_buffer class IP_ADAPTER_UNICAST_ADDRESS(Structure): pass
class IP_ADAPTER_UNICAST_ADDRESS(Structure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
2
0
2
1
1
0
2
1
1
0
1
0
0
24,378
secdev/scapy
secdev_scapy/scapy/arch/windows/structures.py
scapy.arch.windows.structures.IP_ADDRESS_PREFIX
from ctypes import POINTER, Structure, WINFUNCTYPE, byref, create_string_buffer class IP_ADDRESS_PREFIX(Structure): _fields_ = [('Prefix', SOCKADDR_INET), ('PrefixLength', UINT8)]
class IP_ADDRESS_PREFIX(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
24,379
secdev/scapy
secdev_scapy/scapy/arch/windows/structures.py
scapy.arch.windows.structures.MIB_IPFORWARDROW
from ctypes import POINTER, Structure, WINFUNCTYPE, byref, create_string_buffer class MIB_IPFORWARDROW(Structure): _fields_ = [('ForwardDest', DWORD), ('ForwardMask', DWORD), ('ForwardPolicy', DWORD), ('ForwardNextHop', DWORD), ('ForwardIfIndex', DWORD), ('ForwardType', DWORD), ('ForwardProto', DWORD), ('ForwardAg...
class MIB_IPFORWARDROW(Structure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
15
0
15
2
14
0
2
2
1
0
1
0
0
24,380
secdev/scapy
secdev_scapy/scapy/arch/windows/structures.py
scapy.arch.windows.structures.MIB_IPFORWARDTABLE
from ctypes import POINTER, Structure, WINFUNCTYPE, byref, create_string_buffer class MIB_IPFORWARDTABLE(Structure): _fields_ = [('NumEntries', DWORD), ('Table', MIB_IPFORWARDROW * ANY_SIZE)]
class MIB_IPFORWARDTABLE(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
24,381
secdev/scapy
secdev_scapy/scapy/arch/windows/structures.py
scapy.arch.windows.structures.MIB_IPFORWARD_ROW2
from ctypes import POINTER, Structure, WINFUNCTYPE, byref, create_string_buffer class MIB_IPFORWARD_ROW2(Structure): _fields_ = [('InterfaceLuid', NET_LUID), ('InterfaceIndex', NET_IFINDEX), ('DestinationPrefix', IP_ADDRESS_PREFIX), ('NextHop', SOCKADDR_INET), ('SitePrefixLength', UCHAR), ('ValidLifetime', ULONG),...
class MIB_IPFORWARD_ROW2(Structure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
16
0
16
2
15
0
2
2
1
0
1
0
0
24,382
secdev/scapy
secdev_scapy/scapy/arch/windows/structures.py
scapy.arch.windows.structures.MIB_IPFORWARD_TABLE2
from ctypes import POINTER, Structure, WINFUNCTYPE, byref, create_string_buffer class MIB_IPFORWARD_TABLE2(Structure): _fields_ = [('NumEntries', ULONG), ('Table', MIB_IPFORWARD_ROW2 * ANY_SIZE)]
class MIB_IPFORWARD_TABLE2(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
24,383
secdev/scapy
secdev_scapy/scapy/arch/windows/structures.py
scapy.arch.windows.structures.NET_LUID
from ctypes import POINTER, Structure, WINFUNCTYPE, byref, create_string_buffer class NET_LUID(Structure): _fields_ = [('Value', ULONGLONG)]
class NET_LUID(Structure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
2
0
2
2
1
0
2
2
1
0
1
0
0
24,384
secdev/scapy
secdev_scapy/scapy/arch/windows/structures.py
scapy.arch.windows.structures.SERVICE_STATUS
from ctypes import POINTER, Structure, WINFUNCTYPE, byref, create_string_buffer class SERVICE_STATUS(Structure): """https://docs.microsoft.com/en-us/windows/desktop/api/winsvc/ns-winsvc-_service_status""" _fields_ = [('dwServiceType', DWORD), ('dwCurrentState', DWORD), ('dwControlsAccepted', DWORD), ('dwWin32E...
class SERVICE_STATUS(Structure): '''https://docs.microsoft.com/en-us/windows/desktop/api/winsvc/ns-winsvc-_service_status''' pass
1
1
0
0
0
0
0
0.13
1
0
0
0
0
0
0
0
9
0
8
2
7
1
2
2
1
0
1
0
0
24,385
secdev/scapy
secdev_scapy/scapy/arch/windows/structures.py
scapy.arch.windows.structures.SOCKADDR_INET
import ctypes.wintypes import ctypes class SOCKADDR_INET(ctypes.Union): _fields_ = [('Ipv4', sockaddr_in), ('Ipv6', sockaddr_in6), ('si_family', USHORT)]
class SOCKADDR_INET(ctypes.Union): pass
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
4
0
4
2
3
0
2
2
1
0
0
0
0
24,386
secdev/scapy
secdev_scapy/scapy/arch/windows/structures.py
scapy.arch.windows.structures.SOCKET_ADDRESS
from ctypes import POINTER, Structure, WINFUNCTYPE, byref, create_string_buffer import ctypes.wintypes import ctypes class SOCKET_ADDRESS(ctypes.Structure): _fields_ = [('address', POINTER(SOCKADDR_INET)), ('length', INT)]
class SOCKET_ADDRESS(ctypes.Structure): pass
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
3
0
3
2
2
0
2
2
1
0
0
0
0
24,387
secdev/scapy
secdev_scapy/scapy/arch/windows/structures.py
scapy.arch.windows.structures._IP_ADAPTER_ADDRESSES_METRIC
from ctypes import POINTER, Structure, WINFUNCTYPE, byref, create_string_buffer class _IP_ADAPTER_ADDRESSES_METRIC(Structure): _fields_ = [('length', ULONG), ('interface_index', DWORD)]
class _IP_ADAPTER_ADDRESSES_METRIC(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
24,388
secdev/scapy
secdev_scapy/scapy/arch/windows/structures.py
scapy.arch.windows.structures._SECURITY_ATTRIBUTES
from ctypes import POINTER, Structure, WINFUNCTYPE, byref, create_string_buffer class _SECURITY_ATTRIBUTES(Structure): _fields_ = [('nLength', DWORD), ('lpSecurityDescriptor', LPVOID), ('bInheritHandle', BOOL)]
class _SECURITY_ATTRIBUTES(Structure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
4
0
4
2
3
0
2
2
1
0
1
0
0
24,389
secdev/scapy
secdev_scapy/scapy/arch/windows/structures.py
scapy.arch.windows.structures.in6_addr
from ctypes import POINTER, Structure, WINFUNCTYPE, byref, create_string_buffer class in6_addr(Structure): _fields_ = [('byte', UBYTE * 16)]
class in6_addr(Structure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
2
0
2
2
1
0
2
2
1
0
1
0
0
24,390
secdev/scapy
secdev_scapy/scapy/arch/windows/structures.py
scapy.arch.windows.structures.in_addr
from ctypes import POINTER, Structure, WINFUNCTYPE, byref, create_string_buffer class in_addr(Structure): _fields_ = [('byte', UBYTE * 4)]
class in_addr(Structure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
2
0
2
2
1
0
2
2
1
0
1
0
0
24,391
secdev/scapy
secdev_scapy/scapy/arch/windows/structures.py
scapy.arch.windows.structures.sockaddr_in
from ctypes import POINTER, Structure, WINFUNCTYPE, byref, create_string_buffer class sockaddr_in(Structure): _fields_ = [('sin_family', SHORT), ('sin_port', USHORT), ('sin_addr', in_addr), ('sin_zero', 8 * CHAR)]
class sockaddr_in(Structure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
5
0
5
2
4
0
2
2
1
0
1
0
0
24,392
secdev/scapy
secdev_scapy/scapy/arch/windows/structures.py
scapy.arch.windows.structures.sockaddr_in6
from ctypes import POINTER, Structure, WINFUNCTYPE, byref, create_string_buffer class sockaddr_in6(Structure): _fields_ = [('sin6_family', SHORT), ('sin6_port', USHORT), ('sin6_flowinfo', ULONG), ('sin6_addr', in6_addr), ('sin6_scope_id', ULONG)]
class sockaddr_in6(Structure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
6
0
6
2
5
0
2
2
1
0
1
0
0
24,393
secdev/scapy
secdev_scapy/scapy/as_resolvers.py
scapy.as_resolvers.AS_resolver
from scapy.compat import plain_str import socket class AS_resolver: server = None options = '-k' def __init__(self, server=None, port=43, options=None): if server is not None: self.server = server self.port = port if options is not None: self.options = optio...
class AS_resolver: def __init__(self, server=None, port=43, options=None): pass def _start(self): pass def _stop(self): pass def _parse_whois(self, txt): pass def _resolve_one(self, ip): pass def resolve(self, *ips): pass
7
0
9
0
8
1
3
0.18
0
1
0
4
6
2
6
6
62
6
50
21
41
9
48
19
41
6
0
3
18
24,394
secdev/scapy
secdev_scapy/scapy/as_resolvers.py
scapy.as_resolvers.AS_resolver_cymru
import socket from scapy.compat import plain_str class AS_resolver_cymru(AS_resolver): server = 'whois.cymru.com' options = None def resolve(self, *ips): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect((self.server, self.port)) s.send(b'begin\r\n' + b'\r\n'.join((ip...
class AS_resolver_cymru(AS_resolver): def resolve(self, *ips): pass def parse(self, data): '''Parse bulk cymru data''' pass
3
1
17
1
15
3
4
0.16
1
1
0
0
2
0
2
8
39
4
32
13
27
5
26
11
23
4
1
2
7
24,395
secdev/scapy
secdev_scapy/scapy/as_resolvers.py
scapy.as_resolvers.AS_resolver_multi
import socket class AS_resolver_multi(AS_resolver): def __init__(self, *reslist): AS_resolver.__init__(self) if reslist: self.resolvers_list = reslist else: self.resolvers_list = (AS_resolver_radb(), AS_resolver_cymru()) def resolve(self, *ips): todo = ...
class AS_resolver_multi(AS_resolver): def __init__(self, *reslist): pass def resolve(self, *ips): pass
3
0
11
0
10
1
3
0.1
1
3
2
0
2
1
2
8
24
1
21
8
18
2
19
8
16
4
1
2
6
24,396
secdev/scapy
secdev_scapy/scapy/as_resolvers.py
scapy.as_resolvers.AS_resolver_radb
class AS_resolver_radb(AS_resolver): server = 'whois.ra.net' options = '-k -M'
class AS_resolver_radb(AS_resolver): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
6
3
0
3
3
2
0
3
3
2
0
1
0
0
24,397
secdev/scapy
secdev_scapy/scapy/as_resolvers.py
scapy.as_resolvers.AS_resolver_riswhois
class AS_resolver_riswhois(AS_resolver): server = 'riswhois.ripe.net' options = '-k -M -1'
class AS_resolver_riswhois(AS_resolver): pass
1
0
0
0
0
0
0
0
1
0
0
1
0
0
0
6
3
0
3
3
2
0
3
3
2
0
1
0
0
24,398
secdev/scapy
secdev_scapy/scapy/asn1/asn1.py
scapy.asn1.asn1.ASN1Codec
from scapy.utils import Enum_metaclass, EnumElement, binrepr class ASN1Codec(EnumElement): def register_stem(cls, stem): cls._stem = stem def dec(cls, s, context=None): return cls._stem.dec(s, context=context) def safedec(cls, s, context=None): return cls._stem.safedec(s, context...
class ASN1Codec(EnumElement): def register_stem(cls, stem): pass def dec(cls, s, context=None): pass def safedec(cls, s, context=None): pass def get_stem(cls): pass
5
0
3
0
2
2
1
0.67
1
0
0
0
4
0
4
13
16
3
9
5
4
6
9
5
4
1
1
0
4
24,399
secdev/scapy
secdev_scapy/scapy/asn1/asn1.py
scapy.asn1.asn1.ASN1Tag
from scapy.utils import Enum_metaclass, EnumElement, binrepr class ASN1Tag(EnumElement): def __init__(self, key, value, context=None, codec=None): EnumElement.__init__(self, key, value) self.context = context if codec is None: codec = {} self._codec = codec def clo...
class ASN1Tag(EnumElement): def __init__(self, key, value, context=None, codec=None): pass def clone(self): pass def register_asn1_object(self, asn1obj): pass def asn1_object(self, val): pass def register_asn1_object(self, asn1obj): pass def get_cod...
7
0
6
0
5
2
2
0.5
1
2
1
0
6
3
6
15
40
5
28
16
16
14
23
11
16
2
1
1
9