From 4d50199745ed397a8932358af16f6eddfa9365e9 Mon Sep 17 00:00:00 2001 From: doomedraven Date: Sun, 22 Sep 2024 13:19:41 +0200 Subject: [PATCH] tests --- modules/processing/parsers/CAPE/SparkRAT.py | 4 ++-- pyproject.toml | 1 + tests_parsers/test_qakbot.py | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/processing/parsers/CAPE/SparkRAT.py b/modules/processing/parsers/CAPE/SparkRAT.py index dab121db8a2..e16add20870 100644 --- a/modules/processing/parsers/CAPE/SparkRAT.py +++ b/modules/processing/parsers/CAPE/SparkRAT.py @@ -5,8 +5,8 @@ HAVE_PYCYPTODOMEX = False with suppress(ImportError): - from Crypto.Cipher import AES - from Crypto.Util import Counter + from Cryptodome.Cipher import AES + from Cryptodome.Util import Counter HAVE_PYCYPTODOMEX = True diff --git a/pyproject.toml b/pyproject.toml index 8d9c13b709d..1a47087f4ad 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -72,6 +72,7 @@ psycopg2-binary = "^2.9.5" ruff = "0.0.290" paramiko = "3.4.0" psutil = "5.9.8" +# peepdf-3 = "4.0.0" Werkzeug = "3.0.3" packaging = "23.1" diff --git a/tests_parsers/test_qakbot.py b/tests_parsers/test_qakbot.py index 025470b6e97..c3d6bedb6b1 100644 --- a/tests_parsers/test_qakbot.py +++ b/tests_parsers/test_qakbot.py @@ -1,6 +1,7 @@ +import pytest from modules.processing.parsers.CAPE.QakBot import extract_config - +@pytest.mark.skip(reason="Missed file") def test_qakbot(): with open("tests/data/malware/0cb0d77ac38df36fff891e072dea96401a8c1e8ff40d6ac741d5a2942aaeddbb", "rb") as data: conf = extract_config(data.read())