Skip to content

Commit

Permalink
Fix decode bug
Browse files Browse the repository at this point in the history
  • Loading branch information
cristianzsh committed Dec 12, 2020
1 parent 090539c commit a799aea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions freki/app/core/pe.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ def get_imports(self):
dll_name = item.dll.decode()
self.info["imports"][dll_name] = []
for i in item.imports:
if not i.name:
continue

self.info["imports"][dll_name].append({"name" : i.name.decode(),
"address" : hex(i.address)})

Expand Down

0 comments on commit a799aea

Please sign in to comment.