From 11f231a9ea755e241204ddfd6dc48bc187c48834 Mon Sep 17 00:00:00 2001 From: doomedraven Date: Mon, 16 Dec 2024 15:35:51 +0100 Subject: [PATCH] sigs set_path --- lib/cuckoo/core/plugins.py | 3 +++ poetry.lock | 24 ++++++++++++------------ pyproject.toml | 2 +- 3 files changed, 16 insertions(+), 13 deletions(-) diff --git a/lib/cuckoo/core/plugins.py b/lib/cuckoo/core/plugins.py index 685231185fa..c4194b2afd6 100644 --- a/lib/cuckoo/core/plugins.py +++ b/lib/cuckoo/core/plugins.py @@ -601,6 +601,9 @@ def run(self, test_signature: str = False): for sig in self.evented_list: if sig.matched: continue + + # Give it the path to the analysis results folder. + sig.set_path(self.analysis_path) try: pretime = timeit.default_timer() result = sig.on_complete() diff --git a/poetry.lock b/poetry.lock index d17f5cc02b0..5be44cb0f5f 100644 --- a/poetry.lock +++ b/poetry.lock @@ -70,19 +70,19 @@ tests = ["mypy (>=0.800)", "pytest", "pytest-asyncio"] [[package]] name = "attrs" -version = "24.2.0" +version = "24.3.0" description = "Classes Without Boilerplate" optional = false -python-versions = ">=3.7" +python-versions = ">=3.8" files = [ - {file = "attrs-24.2.0-py3-none-any.whl", hash = "sha256:81921eb96de3191c8258c199618104dd27ac608d9366f5e35d011eae1867ede2"}, - {file = "attrs-24.2.0.tar.gz", hash = "sha256:5cfb1b9148b5b086569baec03f20d7b6bf3bcacc9a42bebf87ffaaca362f6346"}, + {file = "attrs-24.3.0-py3-none-any.whl", hash = "sha256:ac96cd038792094f438ad1f6ff80837353805ac950cd2aa0e0625ef19850c308"}, + {file = "attrs-24.3.0.tar.gz", hash = "sha256:8f5c07333d543103541ba7be0e2ce16eeee8130cb0b3f9238ab904ce1e85baff"}, ] [package.extras] benchmark = ["cloudpickle", "hypothesis", "mypy (>=1.11.1)", "pympler", "pytest (>=4.3.0)", "pytest-codspeed", "pytest-mypy-plugins", "pytest-xdist[psutil]"] cov = ["cloudpickle", "coverage[toml] (>=5.3)", "hypothesis", "mypy (>=1.11.1)", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins", "pytest-xdist[psutil]"] -dev = ["cloudpickle", "hypothesis", "mypy (>=1.11.1)", "pre-commit", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins", "pytest-xdist[psutil]"] +dev = ["cloudpickle", "hypothesis", "mypy (>=1.11.1)", "pre-commit-uv", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins", "pytest-xdist[psutil]"] docs = ["cogapp", "furo", "myst-parser", "sphinx", "sphinx-notfound-page", "sphinxcontrib-towncrier", "towncrier (<24.7)"] tests = ["cloudpickle", "hypothesis", "mypy (>=1.11.1)", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins", "pytest-xdist[psutil]"] tests-mypy = ["mypy (>=1.11.1)", "pytest-mypy-plugins"] @@ -314,13 +314,13 @@ pycryptodome = "*" [[package]] name = "certifi" -version = "2024.8.30" +version = "2024.12.14" description = "Python package for providing Mozilla's CA Bundle." optional = false python-versions = ">=3.6" files = [ - {file = "certifi-2024.8.30-py3-none-any.whl", hash = "sha256:922820b53db7a7257ffbda3f597266d435245903d80737e34f8a45ff3e3230d8"}, - {file = "certifi-2024.8.30.tar.gz", hash = "sha256:bec941d2aa8195e248a60b31ff9f0558284cf01a52591ceda73ea9afffd69fd9"}, + {file = "certifi-2024.12.14-py3-none-any.whl", hash = "sha256:1275f7a45be9464efc1173084eaa30f866fe2e47d389406136d332ed4967ec56"}, + {file = "certifi-2024.12.14.tar.gz", hash = "sha256:b650d30f370c2b724812bee08008be0c4163b163ddaec3f2546c1caf65f191db"}, ] [[package]] @@ -3352,13 +3352,13 @@ files = [ [[package]] name = "pyzipper" -version = "0.3.5" +version = "0.3.6" description = "AES encryption for zipfile." optional = false python-versions = ">=3.4" files = [ - {file = "pyzipper-0.3.5-py2.py3-none-any.whl", hash = "sha256:e696e9d306427400e23e13a766c7614b64d9fc3316bdc71bbcc8f0070a14f150"}, - {file = "pyzipper-0.3.5.tar.gz", hash = "sha256:6040069654dad040cf8708d4db78ce5829238e2091ad8006a47d97d6ffe275d6"}, + {file = "pyzipper-0.3.6-py2.py3-none-any.whl", hash = "sha256:6d097f465bfa47796b1494e12ea65d1478107d38e13bc56f6e58eedc4f6c1a87"}, + {file = "pyzipper-0.3.6.tar.gz", hash = "sha256:0adca90a00c36a93fbe49bfa8c5add452bfe4ef85a1b8e3638739dd1c7b26bfc"}, ] [package.dependencies] @@ -4578,4 +4578,4 @@ maco = ["maco"] [metadata] lock-version = "2.0" python-versions = ">=3.10, <4.0" -content-hash = "afe62b9a3248e9b7de98d72f647dfd25dc05dd7c462de776a7c0f70720271ba5" +content-hash = "2237dcc08d051d9f1130cb0abba514e94585630d0fc1f636192c466f156713c0" diff --git a/pyproject.toml b/pyproject.toml index 90414e71afa..657305d542c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,7 +30,7 @@ orjson = "3.9.15" SFlock2 = {version = "0.3.66", extras = ["shellcode","linux"]} # volatility3 = "2.0.0" # XLMMacroDeobfuscator = "0.2.7" -pyzipper = "0.3.5" +pyzipper = "0.3.6" flare-capa = "8.0.1" Cython = "0.29.24" # pyre2 = "0.3.6" # Dead for python3.11