관리-도구
편집 파일: restore_from_backup.cpython-311.pyc
� ��g� � � � d Z ddlZddlZddlmZ ddlmZ ddlmZ ddl m Z ddlmZ ee � � Zd d�Z d d ed edeeef fd�ZdS )u This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>. Copyright © 2019 Cloud Linux Software Inc. This software is also available under ImunifyAV commercial license, see <https://www.imunify360.com/legal/eula> � N)� getLogger)�Tuple)�MalwareScanType)�MalwareScanner)� BackupRestorec �4 � �� dt dt f� �fd�}|S )N�files�returnc � �� �K � | sg S g }t ���� � }|� | t j d�� � |� � � � d{V ��}|�d� |d D � � }|S )z<Used for checking files from backups before their recovering)�sink�tmpdirF)� scan_type�use_filtersNc � � g | ] }|d ��S )� file_name� )�.0�rs �_/opt/imunify360/venv/lib/python3.11/site-packages/imav/malwarelib/subsys/restore_from_backup.py� <listcomp>zE_get_scan_function.<locals>._custom_scan_function.<locals>.<listcomp>0 s � �H�H�H��a��n�H�H�H� �results)r �startr �RESTORE_FROM_BACKUP� async_wait)r �still_infected�scanner�resultr r s ��r �_custom_scan_functionz1_get_scan_function.<locals>._custom_scan_function# s� �� � � �� ��I��� �d�6�:�:�:��� � ��%�9�� � � � � �)�)�+�+�+�+�+�+�+�+����H�H�f�Y�6G�H�H�H�N��r )�list)r r r s `` r �_get_scan_functionr! "