This commit is contained in:
William Ballenthin
2021-10-26 15:21:28 -06:00
parent a1075b63ec
commit 4451b76f89
4 changed files with 2 additions and 5 deletions

View File

@@ -165,11 +165,11 @@ def render_dictionary(doc):
def capa_details(file_path, output_format="dictionary"):
# collect metadata (used only to make rendering more complete)
meta = capa.main.collect_metadata("", file_path, RULES_PATH, extractor)
# extract features and find capabilities
extractor = capa.main.get_extractor(file_path, "auto", capa.main.BACKEND_VIV, [], False, disable_progress=True)
capabilities, counts = capa.main.find_capabilities(rules, extractor, disable_progress=True)
meta["analysis"].update(counts)
meta["analysis"]["layout"] = capa.main.compute_layout(rules, extractor, capabilities)