Hacked By AnonymousFox
�
��g0 � � � d Z ddlZddlmZ ddlmZ ddlmZmZ ddl m
Z
ddlmZm
Z
mZ ddlmZ dd lmZmZ dd
lmZ ddlmZ ddlmZ dd
lmZ ddlmZ ddlm Z m!Z! ddl"m#Z# ddl$m%Z%m&Z& G d� de � � 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)�partial)�Path)�Malware�PermissionsConfig)�MessageType)�AV� AV_REPORT�FULL)�feature)�MalwareHitStatus�MalwareScanResourceType)�
MalwareHit)�QueueSupervisorSync)�MaliciousEndpointStatus)�FALSE_POSITIVE)�run_in_executor)�CommonEndpoints�bind)�Scope)�HackerTrapHitsSaver�
MalwareActionc � � � e Zd Zej Z� fd�Z eee e
g� � eddd� � dd d�� � � � Z� xZ
S )
�MalwareEndpointsc �t �� t � � � |� � t |�� � | _ d S )N)�sink)�super�__init__� ScanQueue�queue)�selfr � __class__s ��c/opt/imunify360/venv/lib/python3.11/site-packages/imav/malwarelib/advanced/rpc/endpoints/malware.pyr zMalwareEndpoints.__init__1 s1 �� �
����������D�)�)�)��
�
�
� �malware� maliciouszrestore-from-backupN�returnc � � K � t j ||�� � }|r6| j � t j ||�� � � � � d{V �� dS dS )z>Sends RestoreFromBackupTask message and releases the endpoint.)�user)�hits� initiatorN)r �malicious_select�_sink�process_messager �RestoreFromBackupTask)r �idsr( r) s r"