(self, pid, code)
| 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) |
no outgoing calls
no test coverage detected