Файловый менеджер - Редактировать - /opt/imunify360/venv/lib/python3.11/site-packages/imav/malwarelib/scan/mds/__pycache__/restore.cpython-311.opt-1.pyc
Назад
� �l�h& � �" � d Z ddlZddlZddlZddlmZ ddlmZmZ ddl m Z ddlmZ ddl mZ ddlmZ dd lmZmZ dd lmZ ddlmZ ddlmZ dd lmZ ej e� � Z G d� d� � Zde de fd�Z! dde"e de dedz fd�Z#dS )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)�cast)�Malware�MalwareScanIntensity)�TheSink)�resource_limits)�MalwareDatabaseRestoreTask)�CleanupRevertInitiator)�RESTORE_ORIGINAL_INTENSITY_KEY�MalwareScanResourceType)� MalwareHit)�MDS_PATH)�MDSDetachedRestoreDir)� hash_pathc �L � e Zd Zddd�dedededz dedz fd�Zdefd �Zd � ZdS )�MalwareDatabaseRestoreN)�signature_id� restore_id�app_name�pathr r c �n � || _ || _ || _ |pt j � � j | _ d S �N)r r r �uuid�uuid4�hexr )�selfr r r r s �U/opt/imunify360/venv/lib/python3.11/site-packages/imav/malwarelib/scan/mds/restore.py�__init__zMalwareDatabaseRestore.__init__- s3 � � !�� ��� �(���$�8�� ���(8����� �work_dirc �* � dt d| j d| j dt |j � � d| j dt |j � � dt t j � � g}| j r |d| j gz }n|d t | j | j � � gz }|S ) Nz/opt/ai-bolit/wrapperz--pathz --app-namez --report-filez --detachedz --progressz--db-timeoutz--restore-sig-idz --restore)r r r �str�report_filer � progress_filer �MDS_DB_TIMEOUTr �storage_path)r r �commands r �cmdzMalwareDatabaseRestore.cmd: s� � �#����I���M����$�%�%���O����&�'�'����&�'�'� ��"