MCPcopy
hub / github.com/JaveleyQAQ/WeChatOpenDevTools-Python / load_wechatEXE_configs

Method load_wechatEXE_configs

utils/commons.py:73–82  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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()

Callers 2

mainFunction · 0.80

Calls 4

inject_wechatDLLMethod · 0.95
get_configs_pathMethod · 0.80

Tested by

no test coverage detected