mirror of
https://github.com/mandiant/capa.git
synced 2025-12-05 20:40:05 -08:00
Merge pull request #2238 from s-ff/scripts-fix-caps-by-function
scripts/show-capabilities-by-function.py: fix incorrect function address
This commit is contained in:
@@ -125,7 +125,7 @@ def render_matches_by_function(doc: rd.ResultDocument):
|
|||||||
for f in doc.meta.analysis.feature_counts.functions:
|
for f in doc.meta.analysis.feature_counts.functions:
|
||||||
if not matches_by_function.get(f.address, {}):
|
if not matches_by_function.get(f.address, {}):
|
||||||
continue
|
continue
|
||||||
ostream.writeln(f"function at {capa.render.verbose.format_address(addr)} with {f.count} features: ")
|
ostream.writeln(f"function at {capa.render.verbose.format_address(f.address)} with {f.count} features: ")
|
||||||
for rule_name in sorted(matches_by_function[f.address]):
|
for rule_name in sorted(matches_by_function[f.address]):
|
||||||
ostream.writeln(" - " + rule_name)
|
ostream.writeln(" - " + rule_name)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user