Skip to content

Commit

Permalink
Update binaryninja_api.py
Browse files Browse the repository at this point in the history
  • Loading branch information
hyuunnn committed Jun 29, 2022
1 parent cedef8f commit ba4cb7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hyara_lib/integration/bn_hyara/binaryninja_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def get_imphash(self) -> str:

def get_rich_header(self) -> str:
rich_header = pefile.PE(self.get_filepath()).parse_rich_header()
return Transform["RawHex"].encode(Transform["MD5"].encode(rich_header["clear_data"]))
return Transform["RawHex"].encode(Transform["MD5"].encode(rich_header["clear_data"])).decode()

def get_pdb_path(self) -> str:
# https://github.com/VirusTotal/yara/blob/master/docs/modules/pe.rst
Expand Down

0 comments on commit ba4cb7a

Please sign in to comment.