Skip to content

Commit

Permalink
Merge pull request #63 from CybercentreCanada/get_tool_version
Browse files Browse the repository at this point in the history
Add version info for Multidecoder
  • Loading branch information
cccs-jh authored Nov 30, 2023
2 parents 68e1349 + 8b573a1 commit 9205697
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions deobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]]]]
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 9205697

Please sign in to comment.