8
8
from lib .cuckoo .common .constants import CUCKOO_ROOT
9
9
from lib .cuckoo .common .path_utils import path_exists
10
10
11
- processing_cfg = Config ("processing " )
11
+ integrations_conf = Config ("integrations " )
12
12
13
13
HAVE_FLOSS = False
14
14
try :
@@ -38,7 +38,7 @@ def run(self):
38
38
if not HAVE_FLOSS :
39
39
return
40
40
41
- if processing_cfg .floss .on_demand and not self .on_demand :
41
+ if integrations_conf .floss .on_demand and not self .on_demand :
42
42
return
43
43
44
44
results = {}
@@ -58,17 +58,17 @@ def run(self):
58
58
else :
59
59
fileformat = "pe"
60
60
61
- min_length = processing_cfg .floss .min_length
61
+ min_length = integrations_conf .floss .min_length
62
62
fm .set_log_config (fm .DebugLevel .NONE , True )
63
63
tmpres = {}
64
64
results = {}
65
65
66
- if processing_cfg .floss .static_strings :
66
+ if integrations_conf .floss .static_strings :
67
67
with open (self .file_path , "rb" ) as f :
68
68
with contextlib .closing (mmap .mmap (f .fileno (), 0 , access = mmap .ACCESS_READ )) as buf :
69
69
tmpres ["static_strings" ] = list (extract_ascii_unicode_strings (buf , min_length ))
70
70
71
- sigspath = fm .get_signatures (Path (os .path .join (CUCKOO_ROOT , processing_cfg .floss .sigs_path )))
71
+ sigspath = fm .get_signatures (Path (os .path .join (CUCKOO_ROOT , integrations_conf .floss .sigs_path )))
72
72
vw = fm .load_vw (Path (self .file_path ), fileformat , sigspath , False )
73
73
74
74
try :
@@ -84,7 +84,7 @@ def run(self):
84
84
True ,
85
85
)
86
86
87
- if processing_cfg .floss .stack_strings :
87
+ if integrations_conf .floss .stack_strings :
88
88
selected_functions = fm .get_functions_without_tightloops (decoding_function_features )
89
89
tmpres ["stack_strings" ] = fm .extract_stackstrings (
90
90
vw ,
@@ -94,7 +94,7 @@ def run(self):
94
94
disable_progress = True ,
95
95
)
96
96
97
- if processing_cfg .floss .tight_strings :
97
+ if integrations_conf .floss .tight_strings :
98
98
tightloop_functions = fm .get_functions_with_tightloops (decoding_function_features )
99
99
tmpres ["tight_strings" ] = fm .extract_tightstrings (
100
100
vw ,
@@ -104,7 +104,7 @@ def run(self):
104
104
disable_progress = True ,
105
105
)
106
106
107
- if processing_cfg .floss .decoded_strings :
107
+ if integrations_conf .floss .decoded_strings :
108
108
top_functions = fm .get_top_functions (decoding_function_features , 20 )
109
109
fvas_to_emulate = fm .get_function_fvas (top_functions )
110
110
fvas_tight_functions = fm .get_tight_function_fvas (decoding_function_features )
0 commit comments