(self)
run
run
run
def run(self):
        """ run
        """
        if self.device is not None:
            if isinstance(self.device, frida.core.Device):
                try:
                    procs = self.device.enumerate_processes()

                    for proc in procs:
                        proc_item = {'pid': proc.pid, 'name': proc.name}
                        self.add_proc.emit(proc_item)
                # ServerNotRunningError('unable to connect to remote frida-server: closed')
                except frida.ServerNotRunningError:
                    self.is_error.emit(
                        'Frida ServerNotRunningError: Server not running')
                except frida.TransportError:
                    self.is_error.emit('Frida TransportError: Server closed')
                except frida.TimedOutError:
                    self.is_error.emit('Frida TimedOutError: Server timedout')
                except Exception as e:  # pylint: disable=broad-except
                    self.is_error.emit('something was wrong...\n' + str(e))

        self.is_finished.emit()
def run ( self ) : if self . device is not None : if isinstance ( self . device , frida . core . Device ) : try : procs = self . device . enumerate_processes ( ) for proc in procs : proc_item = { 'pid' : proc . pid , 'name' : proc . name } self . add_proc . emit ( proc_item ) # ServerNotRunningError('unable to connect to remote frida-server: closed') except frida . ServerNotRunningError : self . is_error . emit ( 'Frida ServerNotRunningError: Server not running' ) except frida . TransportError : self . is_error . emit ( 'Frida TransportError: Server closed' ) except frida . TimedOutError : self . is_error . emit ( 'Frida TimedOutError: Server timedout' ) except Exception as e : # pylint: disable=broad-except self . is_error . emit ( 'something was wrong...\n' + str ( e ) ) self . is_finished . emit ( )