ui: more information

This commit is contained in:
Dobin
2024-04-14 21:37:54 +01:00
parent 4901c7b320
commit 70c4a95b1b
7 changed files with 95 additions and 25 deletions
+5 -1
View File
@@ -229,7 +229,11 @@ class SuperPe():
"""Return a list of exported functions (names) from the PE file"""
d = [pefile.DIRECTORY_ENTRY["IMAGE_DIRECTORY_ENTRY_EXPORT"]]
self.pe.parse_data_directories(directories=d)
if self.pe.DIRECTORY_ENTRY_EXPORT.symbols == 0:
try:
if self.pe.DIRECTORY_ENTRY_EXPORT.symbols == 0:
return []
except Exception as e:
logger.warn("No exports found")
return []
res = []
for e in self.pe.DIRECTORY_ENTRY_EXPORT.symbols: