Exemple #1
0
    def start(self):
        """
            Start our analysis by spawning a new process that will bridge the
            semantic gap for disk accesses
        """
        from lophi_semanticgap.disk import DiskEngine

        # Setup a queue to communicate with the process
        self.command_queue = multiprocessing.Queue()

        # Connect to our disk sensor
        self.machine.disk._connect()

        # Initialize our Volatility wrapper
        self.analysis_engine = DiskEngine(self.machine, self.command_queue,
                                          self.output_queue)
        if self.analysis_engine is None:
            logger.error("Analysis could not be started.")
            return

        # Spawn a new proccess
        logger.debug("Starting DiskAnalysisEngine...")
        self.analysis_engine.start()