MCPcopy Index your code
hub / github.com/JaveleyQAQ/WeChatOpenDevTools-Python / inject_wechatEx

Method inject_wechatEx

utils/commons.py:24–34  ·  view source on GitHub ↗
(self, pid, code)

Source from the content-addressed store, hash-verified

22 print(Color.RED + message['stack'], Color.END)
23
24 def inject_wechatEx(self, pid, code):
25 try:
26 session = frida.attach(pid)
27 script = session.create_script(code)
28 script.on("message", self.onMessage)
29 script.load()
30 print(f"Successfully injected into WeChat PID: {pid}")
31 return session
32 except Exception as e:
33 print(f"Error injecting into WeChat PID {pid}: {e}")
34 return None
35
36 def inject_wechatDLL(self, path, code):
37 pid = self.device.spawn(path)

Callers 1

load_wechatEx_configsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected