Skip to content

Commit

Permalink
disable floss for dotnet
Browse files Browse the repository at this point in the history
  • Loading branch information
doomedraven committed Dec 23, 2024
1 parent ea4449c commit e337c55
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/cuckoo/common/integrations/file_extra_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion lib/cuckoo/common/integrations/floss.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit e337c55

Please sign in to comment.