mirror of
https://github.com/mandiant/capa.git
synced 2025-12-12 23:59:48 -08:00
main: compute function & bb layout
so bb can be associated with function in output. only captures BBs that have a rule match, otherwise, there might be too much data captured. closes #130.
This commit is contained in:
@@ -129,6 +129,7 @@ def get_capa_results(args):
|
||||
meta = capa.main.collect_metadata("", path, "", extractor)
|
||||
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)
|
||||
|
||||
return {
|
||||
"path": path,
|
||||
|
||||
Reference in New Issue
Block a user