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:
Ana Maria Martinez Gomez
2021-02-23 17:38:06 +01:00
parent a026cb84d1
commit d28ba3c628
7 changed files with 15 additions and 7 deletions

View File

@@ -199,7 +199,7 @@ def main(argv=None):
else:
format = args.format
try:
extractor = capa.main.get_extractor(args.sample, args.format)
extractor = capa.main.get_extractor(args.sample, args.format, capa.main.BACKEND_VIV)
except capa.main.UnsupportedFormatError:
logger.error("-" * 80)
logger.error(" Input file does not appear to be a PE file.")