From 8b573a1411e7fb64b3e92c2dea758c2c40227803 Mon Sep 17 00:00:00 2001 From: cccs-jh <63320703+cccs-jh@users.noreply.github.com> Date: Mon, 27 Nov 2023 14:54:55 -0500 Subject: [PATCH] Add version info for Multidecoder --- deobs.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/deobs.py b/deobs.py index eb547e4..da27829 100644 --- a/deobs.py +++ b/deobs.py @@ -15,6 +15,7 @@ from assemblyline_v4_service.common.request import MaxExtractedExceeded, ServiceRequest from assemblyline_v4_service.common.result import BODY_FORMAT, Heuristic, Result, ResultSection from bs4 import BeautifulSoup +from multidecoder._version import version as multidecoder_version # Type declarations TechniqueList = list[tuple[str, Callable[[bytes], Optional[bytes]]]] @@ -53,6 +54,10 @@ class DeobfuScripter(ServiceBase): def __init__(self, config: dict | None = None) -> None: super().__init__(config) + def get_tool_version(self) -> str: + """Returns the version of Multidecoder used by the service.""" + return f"Multidecoder: {multidecoder_version}" + # --- Support Modules ---------------------------------------------------------------------------------------------- def printable_ratio(self, text: bytes) -> float: