(self)
| 71 | time.sleep(5) # 每5秒检查一次 |
| 72 | |
| 73 | def load_wechatEXE_configs(self): |
| 74 | wechat_instances = self.wechatutils_instance.get_wechat_pids_and_versions() |
| 75 | if wechat_instances: |
| 76 | print(Color.RED + f"[-] 请退出所有微信实例后再执行该命令 " + Color.END) |
| 77 | return 0 |
| 78 | |
| 79 | wechatEXEpath = self.wechatutils_instance.find_installation_path("微信") |
| 80 | path = self.wechatutils_instance.get_configs_path() |
| 81 | wechatEXE_hookcode = open(path + "..\\scripts\\WechatWin.dll\\hook.js", "r", encoding="utf-8").read() |
| 82 | self.inject_wechatDLL(wechatEXEpath, wechatEXE_hookcode) |
| 83 | |
| 84 | def load_wechatEXE_and_wechatEx(self): |
| 85 | wechat_instances = self.wechatutils_instance.get_wechat_pids_and_versions() |
no test coverage detected