diff options
| author | Jordan Wiens <github@psifertex.com> | 2026-01-01 12:21:22 -0500 |
|---|---|---|
| committer | Jordan Wiens <github@psifertex.com> | 2026-01-01 12:21:22 -0500 |
| commit | 37a0604d805991b85a0590279ad993a19ddee7bb (patch) | |
| tree | fa8054497a4761f134ab5b537dfb0dbfc9a64f32 /python/examples/triage/view.py | |
| parent | 2448131059638409902821451115872036230328 (diff) | |
add whole-file entropy calculation to triage
Diffstat (limited to 'python/examples/triage/view.py')
| -rw-r--r-- | python/examples/triage/view.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/python/examples/triage/view.py b/python/examples/triage/view.py index 5a39197f..28a99a75 100644 --- a/python/examples/triage/view.py +++ b/python/examples/triage/view.py @@ -7,6 +7,7 @@ from PySide6.QtWidgets import QScrollArea, QWidget, QVBoxLayout, QHBoxLayout, QP from PySide6.QtCore import Qt from . import headers from . import entropy +from . import file_info from . import imports from . import exports from . import sections @@ -30,10 +31,17 @@ class TriageView(QScrollArea, View): entropyGroup = QGroupBox("Entropy", container) entropyLayout = QVBoxLayout() - entropyLayout.addWidget(entropy.EntropyWidget(entropyGroup, self, self.data)) + self.entropyWidget = entropy.EntropyWidget(entropyGroup, self, self.data) + entropyLayout.addWidget(self.entropyWidget) entropyGroup.setLayout(entropyLayout) layout.addWidget(entropyGroup) + fileInfoGroup = QGroupBox("File Info", container) + fileInfoLayout = QVBoxLayout() + fileInfoLayout.addWidget(file_info.FileInfoWidget(fileInfoGroup, self.data, self.entropyWidget)) + fileInfoGroup.setLayout(fileInfoLayout) + layout.addWidget(fileInfoGroup) + hdr = None try: if self.data.view_type == "PE": |
