def do_disconnect(self, arguments): """disconnects a drozer session""" response = self.__getServerConnector(arguments).stopSession(arguments.device) print SystemResponseFormatter.format(response) self.__getServerConnector(arguments).close()
def do_devices(self, arguments): """lists all devices bound to the drozer server""" response = self.__getServerConnector(arguments).listDevices() print SystemResponseFormatter.format(response) self.__getServerConnector(arguments).close()
def do_disconnect(self, arguments): """disconnects a drozer session""" response = self.__getServerConnector(arguments).stopSession( arguments.device) print SystemResponseFormatter.format(response) self.__getServerConnector(arguments).close()