Hacked By AnonymousFox
�
��g� � � � d Z ddlmZ ddlmZ ddlmZ ddlm Z m
Z
ddlmZ ddl
mZ ddlmZ ee� � Z G d � d
e
e � � 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>
� )� getLogger)�Malware)�recurring_check)�MessageSink�
MessageSource)� pure_ftpd)�
hosting_panel)�Scopec �J � e Zd Zej Zd� Zd� Zd� Zd� Z e
d� � � ZdS )� Conflictsc �0 � d | _ d | _ d | _ d S �N)�_loop�_sink�_pure_check_task)�selfs �K/opt/imunify360/venv/lib/python3.11/site-packages/imav/plugins/conflicts.py�__init__zConflicts.__init__( s � ���
���
� $����� c � �
K � d S r � )r �loops r �create_sinkzConflicts.create_sink- s � � � ��r c � � K � || _ || _ | j � t t j � � | j � � � � � � | _ d S r )r r �create_taskr �Config�CONFLICTS_CHECK_PERIOD�_check_purer )r r �sinks r �
create_sourcezConflicts.create_source0 sX � � � ���
���
� $�
� 6� 6�L�:�O�F�9�:�:�4�;K�L�L�N�N�!
� !
����r c � �X K � | j fD ]}|� � � |� d {V �� �d S r )r �cancel)r �ts r �shutdownzConflicts.shutdown8 sE � � � ��'�(� � �A�
�H�H�J�J�J��G�G�G�G�G�G�G�G� � r c � �
K � t j � � sd S t j } | ot j }t j � � � d {V ��}t j � � }|�8|r4t � d|� � t j � � � d {V �� d S t j � � }|r�|s3t � d� � t j � � � d {V �� t j
|� � s4t � d� � t j |� � � d {V �� t � d� � d S |r8|s8t � d� � t j |� � � d {V �� d S d S d S )NzEThird-party pure-uploadscript detected: %s, disabling pure-ftpd scanszEnabling pure-ftpd servicez)Enable upload script in pure-ftpd configszFTP scan is enabledzDisabling pure-ftpd scans)r �detectr � PURE_SCAN�INOTIFY_ENABLED�uploadscript_status�thirdparty_uploadscript�logger�info�uploadscript_disabler �HostingPanel�uploadscript_enable�scan_in_config_enabled�enable_scan_in_config�disable_purescan)�active_in_config�enabled�runningr* �panels r r zConflicts._check_pure= s� � � � ���!�!� ��F� "�+��"�A�6�+A�'A��!�5�7�7�7�7�7�7�7�7��"+�"C�"E�"E��"�.��
7����1�+�� � �
�4�6�6�6�6�6�6�6�6�6��F��*�,�,��� 4��
6����8�9�9�9��3�5�5�5�5�5�5�5�5�5��3�E�:�:�
=����G�H�H�H��5�e�<�<�<�<�<�<�<�<�<��K�K�-�.�.�.�.�.�
� 4�W� 4��K�K�3�4�4�4��,�U�3�3�3�3�3�3�3�3�3�3�3� 4� 4� 4� 4r N)�__name__�
__module__�__qualname__r
�IM360�SCOPEr r r r$ �staticmethodr r r r r r % sr � � � � � ��K�E�%� %� %�
�
�
�
�
�
�� � �
�!4� !4� �\�!4� !4� !4r r N)�__doc__�loggingr � defence360agent.contracts.configr r �defence360agent.utilsr �!defence360agent.contracts.pluginsr r �imav.malwarelib.subsysr �defence360agent.subsys.panelsr r
r7 r+ r r r r �<module>rD s� ��� �* � � � � � � >� >� >� >� >� >� 1� 1� 1� 1� 1� 1�� � � � � � � � -� ,� ,� ,� ,� ,� 7� 7� 7� 7� 7� 7� '� '� '� '� '� '� ��8� � ��:4� :4� :4� :4� :4�
�{� :4� :4� :4� :4� :4r
Hacked By AnonymousFox1.0, Coded By AnonymousFox