mirror of
https://github.com/mandiant/capa.git
synced 2025-12-12 15:49:46 -08:00
Make backend a required parameter in get_extractor
Make the `backend` argument required in the `get_extractor` internal routine. Specify a backend in the scripts which call this function. Add a CLI backend option in capa/features/freeze.py as well.
This commit is contained in:
@@ -95,7 +95,7 @@ def get_capa_results(args):
|
||||
rules, format, path = args
|
||||
logger.info("computing capa results for: %s", path)
|
||||
try:
|
||||
extractor = capa.main.get_extractor(path, format, disable_progress=True)
|
||||
extractor = capa.main.get_extractor(path, format, capa.main.BACKEND_VIV, disable_progress=True)
|
||||
except capa.main.UnsupportedFormatError:
|
||||
# i'm 100% sure if multiprocessing will reliably raise exceptions across process boundaries.
|
||||
# so instead, return an object with explicit success/failure status.
|
||||
|
||||
Reference in New Issue
Block a user