Skip to content

Commit

Permalink
vverbose: render both scopes nicely
Browse files Browse the repository at this point in the history
  • Loading branch information
williballenthin authored Aug 10, 2023
1 parent 85b58d0 commit 3cf748a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions capa/render/vverbose.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])))
Expand Down

0 comments on commit 3cf748a

Please sign in to comment.