render: display number feature as hex vverbose (#1097)

This commit is contained in:
Mike Hunhoff
2022-07-08 10:37:41 -06:00
committed by GitHub
parent 28f32eebfc
commit 747eed4db7
2 changed files with 5 additions and 0 deletions

View File

@@ -63,6 +63,7 @@ Deprecation notice: as described in [#937](https://github.com/mandiant/capa/issu
### Bug Fixes
- improve handling _ prefix compile/link artifact #924 @mike-hunhoff
- better detect OS in ELF samples #988 @williballenthin
- display number feature zero in vverbose #1097 @mike-hunhoff
### capa explorer IDA Pro plugin
- improve file format extraction #918 @mike-hunhoff

View File

@@ -142,6 +142,10 @@ def render_feature(ostream, match: rd.Match, feature: frzf.Feature, indent=0):
if key == "string":
value = render_string_value(value)
if key == "number":
assert isinstance(value, int)
value = hex(value)
ostream.write(key)
ostream.write(": ")