Hacked By AnonymousFox

Current Path : /opt/imunify360/venv/lib/python3.11/site-packages/imav/malwarelib/advanced/rpc/endpoints/__pycache__/
Upload File :
Current File : //opt/imunify360/venv/lib/python3.11/site-packages/imav/malwarelib/advanced/rpc/endpoints/__pycache__/malware.cpython-311.pyc

�

��g0	���dZddlZddlmZddlmZddlmZmZddl	m
Z
ddlmZm
Z
mZddlmZdd	lmZmZdd
lmZddlmZddlmZdd
lmZddlmZddlm Z m!Z!ddl"m#Z#ddl$m%Z%m&Z&Gd�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���eZdZejZ�fd�Zeee	e
g��eddd��dd	d�����Z�xZ
S)
�MalwareEndpointsc�t��t���|��t|���|_dS)N)�sink)�super�__init__�	ScanQueue�queue)�selfr�	__class__s  ��c/opt/imunify360/venv/lib/python3.11/site-packages/imav/malwarelib/advanced/rpc/endpoints/malware.pyrzMalwareEndpoints.__init__1s1���
����������D�)�)�)��
�
�
��malware�	maliciouszrestore-from-backupN�returnc��K�tj||���}|r6|j�t	j||������d{V��dSdS)z>Sends RestoreFromBackupTask message and releases the endpoint.)�user)�hits�	initiatorN)r�malicious_select�_sink�process_messager�RestoreFromBackupTask)r �idsr(r)s    r"�restore_from_backupz$MalwareEndpoints.restore_from_backup5s������*�3�T�:�:�:���	��*�,�,��1�t�t�L�L�L���
�
�
�
�
�
�
�
�
�	�	r#)N)r&N)�__name__�
__module__�__qualname__r�IM360�SCOPErrrr
r	rr0�
__classcell__)r!s@r"rr.s���������K�E�*�*�*�*�*�
�W�R�$�	�"�#�#�	�T�)�[�"7�8�8�����9�8�$�#�����r#r)(�__doc__�asyncio�	functoolsr�pathlibr� defence360agent.contracts.configrr�"defence360agent.contracts.messagesr�,defence360agent.feature_management.constantsrr	r
�)defence360agent.feature_management.lookupr�imav.malwarelib.configrr
�imav.malwarelib.modelr�*imav.malwarelib.scan.queue_supervisor_syncrr�imav.malwarelib.utils.endpointsr�imav.malwarelib.utils.submitr�$defence360agent.model.simplificationr� defence360agent.rpc_tools.lookuprr�defence360agent.utilsr�imav.malwarelib.subsys.malwarerrr�r#r"�<module>rIs�����*����������������G�G�G�G�G�G�G�G�:�:�:�:�:�:�L�L�L�L�L�L�L�L�L�L�=�=�=�=�=�=���������-�,�,�,�,�,�������D�C�C�C�C�C�7�7�7�7�7�7�@�@�@�@�@�@�B�B�B�B�B�B�B�B�'�'�'�'�'�'�M�M�M�M�M�M�M�M�����������r#

Hacked By AnonymousFox1.0, Coded By AnonymousFox