mirror of
https://github.com/mandiant/capa.git
synced 2025-12-12 15:49:46 -08:00
vverbose: render both scopes nicely
This commit is contained in:
@@ -336,11 +336,12 @@ def render_rules(ostream, doc: rd.ResultDocument):
|
||||
|
||||
rows.append(("author", ", ".join(rule.meta.authors)))
|
||||
|
||||
rows.append(("scopes", ""))
|
||||
if rule.meta.scopes.static:
|
||||
rows.append(("static scope:", str(rule.meta.scopes.static)))
|
||||
rows.append((" static:", str(rule.meta.scopes.static)))
|
||||
|
||||
if rule.meta.scopes.dynamic:
|
||||
rows.append(("dynamic scope:", str(rule.meta.scopes.dynamic)))
|
||||
rows.append((" dynamic:", str(rule.meta.scopes.dynamic)))
|
||||
|
||||
if rule.meta.attack:
|
||||
rows.append(("att&ck", ", ".join([rutils.format_parts_id(v) for v in rule.meta.attack])))
|
||||
|
||||
Reference in New Issue
Block a user