Skip to content

Commit

Permalink
Support frida server running error
Browse files Browse the repository at this point in the history
  • Loading branch information
hyugogirubato committed Jul 6, 2024
1 parent d6c5c6d commit a2f185e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions keydive/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a2f185e

Please sign in to comment.