예제 #1
0
파일: console.py 프로젝트: Andlab/andsploit
    def do_disconnect(self, arguments):
        """disconnects a andsploit session"""

        response = self.__getServerConnector(arguments).stopSession(arguments.device)

        print SystemResponseFormatter.format(response)
        
        self.__getServerConnector(arguments).close()
예제 #2
0
파일: console.py 프로젝트: Andlab/andsploit
    def do_devices(self, arguments):
        """lists all devices bound to the andsploit server"""

        response = self.__getServerConnector(arguments).listDevices()

        print SystemResponseFormatter.format(response)

        self.__getServerConnector(arguments).close()