def extract_output(self, keep_fs=False):
        """Extracts behav.out, prog.log, capture.pcap from filesystem.

        :param keep_fs: Do not delete target filesystem snapshotted
                        during analysis.
        """
        extract_behav = (
            'e2cp '
            f'{self._fs}:/stap/behav.out '
            f'{self._file.data_dir}/'
        )
        os.system(extract_behav)

        extract_progout = (
            'e2cp '
            f'{self._fs}:/stap/prog.log '
            f'{self._file.data_dir}/'
        )
        os.system(extract_progout)

        extract_pcap = (
            'e2cp '
            f'{self._fs}:/stap/capture.pcap '
            f'{self._file.data_dir}/'
        )
        os.system(extract_pcap)

        log.debug('Behavioral info (behav.out) saved in data directory.')

        if not keep_fs:
            os.system(f'rm {self._fs}')
Extracts behav.out, prog.log, capture.pcap from filesystem.

        :param keep_fs: Do not delete target filesystem snapshotted
                        during analysis.
        
lisa/core/qemu_guest.py