增加容错

This commit is contained in:
xaoyaoo 2024-06-03 18:28:53 +08:00
parent 735c9e8986
commit fdb93394f2

View File

@ -211,6 +211,7 @@ def get_details(process, version_list: dict = None, is_logging: bool = False):
for module in process.memory_maps(grouped=False): for module in process.memory_maps(grouped=False):
if module.path and 'WeChatWin.dll' in module.path: if module.path and 'WeChatWin.dll' in module.path:
wechat_base_address = int(module.addr, 16) wechat_base_address = int(module.addr, 16)
rd['version'] = get_exe_version(module.path) if os.path.exists(module.path) else rd['version']
break break
if wechat_base_address == 0: if wechat_base_address == 0:
error = f"[-] WeChat WeChatWin.dll Not Found" error = f"[-] WeChat WeChatWin.dll Not Found"