From e337c55edf4eeb0d17bc0bbeb64eb80df57ea69b Mon Sep 17 00:00:00 2001 From: doomedraven Date: Mon, 23 Dec 2024 21:20:41 +0100 Subject: [PATCH] disable floss for dotnet --- lib/cuckoo/common/integrations/file_extra_info.py | 4 ++-- lib/cuckoo/common/integrations/floss.py | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/cuckoo/common/integrations/file_extra_info.py b/lib/cuckoo/common/integrations/file_extra_info.py index 4e68e8a7607..436d15de5e8 100644 --- a/lib/cuckoo/common/integrations/file_extra_info.py +++ b/lib/cuckoo/common/integrations/file_extra_info.py @@ -176,7 +176,7 @@ def static_file_info( if capa_details: data_dictionary["flare_capa"] = capa_details - if HAVE_FLOSS: + if HAVE_FLOSS and processing_conf.floss.enabled and "Mono" not in data_dictionary["type"]: floss_strings = Floss(file_path, "static", "pe").run() if floss_strings: data_dictionary["floss"] = floss_strings @@ -229,7 +229,7 @@ def static_file_info( if processing_conf.die.enabled and HAVE_DIE: data_dictionary["die"] = detect_it_easy_info(file_path) - if HAVE_FLOSS and processing_conf.floss.enabled: + if HAVE_FLOSS and processing_conf.floss.enabled and "Mono" not in data_dictionary["type"]: floss_strings = Floss(file_path, package).run() if floss_strings: data_dictionary["floss"] = floss_strings diff --git a/lib/cuckoo/common/integrations/floss.py b/lib/cuckoo/common/integrations/floss.py index 5bc55331822..44a370c896c 100644 --- a/lib/cuckoo/common/integrations/floss.py +++ b/lib/cuckoo/common/integrations/floss.py @@ -12,9 +12,10 @@ HAVE_FLOSS = False try: - HAVE_FLOSS = True import floss.main as fm from floss.strings import extract_ascii_unicode_strings + + HAVE_FLOSS = True except ImportError: print("Missed dependency flare-floss: poetry run pip install -U flare-floss")