mirror of
https://github.com/mandiant/capa.git
synced 2026-01-03 08:18:26 -08:00
render: verbose: don't display locations for file scope matches
This commit is contained in:
@@ -36,8 +36,9 @@ def render_verbose(doc):
|
||||
v = v[0]
|
||||
rows.append((key, v))
|
||||
|
||||
locations = doc[rule['meta']['name']]['matches'].keys()
|
||||
rows.append(('matches', '\n'.join(map(hex, locations))))
|
||||
if rule['meta']['scope'] != capa.rules.FILE_SCOPE:
|
||||
locations = doc[rule['meta']['name']]['matches'].keys()
|
||||
rows.append(('matches', '\n'.join(map(hex, locations))))
|
||||
|
||||
ostream.writeln(tabulate.tabulate(rows, tablefmt='plain'))
|
||||
ostream.write('\n')
|
||||
|
||||
Reference in New Issue
Block a user