mirror of
https://github.com/mandiant/capa.git
synced 2025-12-12 15:49:46 -08:00
disable packed-sample warning for dynamic feature extractors
This commit is contained in:
@@ -1502,6 +1502,10 @@ def main(argv: Optional[List[str]] = None):
|
||||
return E_INVALID_FILE_TYPE
|
||||
|
||||
for file_extractor in file_extractors:
|
||||
if isinstance(file_extractor, DynamicFeatureExtractor):
|
||||
# Dynamic feature extractors can handle packed samples
|
||||
continue
|
||||
|
||||
try:
|
||||
pure_file_capabilities, _ = find_file_capabilities(rules, file_extractor, {})
|
||||
except PEFormatError as e:
|
||||
|
||||
Reference in New Issue
Block a user