From a2f185ede137f01c6bd946144a5add936fbb09fe Mon Sep 17 00:00:00 2001 From: hyugogirubato <65763543+hyugogirubato@users.noreply.github.com> Date: Sat, 6 Jul 2024 21:41:33 +0200 Subject: [PATCH] Support frida server running error --- keydive/core.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/keydive/core.py b/keydive/core.py index 1ba30c4..63d798d 100644 --- a/keydive/core.py +++ b/keydive/core.py @@ -203,6 +203,8 @@ def hook_process(self, pid: int, vendor: Vendor, timeout: int = 0) -> bool: """ try: session: Session = self.device.attach(pid, persist_timeout=timeout) + except frida.ServerNotRunningError as e: + raise EnvironmentError('Frida server is not running') from e except Exception as e: self.logger.error(e) return False