Skip to content

Instantly share code, notes, and snippets.

@0x79H
Created December 12, 2019 12:04
Show Gist options
  • Save 0x79H/be13b09f971407d9a8f864c7a9edb9fb to your computer and use it in GitHub Desktop.
Save 0x79H/be13b09f971407d9a8f864c7a9edb9fb to your computer and use it in GitHub Desktop.
frida-trace wait windows process start (ʇıɥs)
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