Merge pull request #1265 from mandiant/fix/extractor-logic

fix logic error from smda backend removal
This commit is contained in:
Moritz
2023-01-06 09:54:52 +01:00
committed by GitHub

View File

@@ -512,7 +512,8 @@ def get_extractor(
return capa.features.extractors.dnfile.extractor.DnfileFeatureExtractor(path)
if backend == BACKEND_VIV:
# default to use vivisect backend
else:
import capa.features.extractors.viv.extractor
with halo.Halo(text="analyzing program", spinner="simpleDots", stream=sys.stderr, enabled=not disable_progress):
@@ -530,8 +531,6 @@ def get_extractor(
return capa.features.extractors.viv.extractor.VivisectFeatureExtractor(vw, path)
raise ValueError("unexpected extractor specification: format=%s backend=%s", format_, backend)
def get_file_extractors(sample: str, format_: str) -> List[FeatureExtractor]:
file_extractors: List[FeatureExtractor] = list()