Created
December 12, 2019 12:04
-
-
Save 0x79H/be13b09f971407d9a8f864c7a9edb9fb to your computer and use it in GitHub Desktop.
frida-trace wait windows process start (ʇıɥs)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/frida_tools/application.py b/frida_tools/application.py | |
index b577be8..82b85b6 100644 | |
--- a/frida_tools/application.py | |
+++ b/frida_tools/application.py | |
@@ -232,6 +232,14 @@ class ConsoleApplication(object): | |
self._reactor.stop() | |
def _try_start(self): | |
+ while True: | |
+ try: | |
+ self.__try_start() | |
+ return | |
+ except: | |
+ sleep(0.5) | |
+ | |
+ def __try_start(self): | |
if self._device is not None: | |
return | |
if self._device_id is not None: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment