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:
@@ -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.")
|
||||
|
||||
Reference in New Issue
Block a user