y
0 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 .
Copyright © 2019 Cloud Linux Software Inc.
This software is also available under ImunifyAV commercial license,
see
) 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 ConfigCONFLICTS_CHECK_PERIOD_check_purer )r r sinks r
create_sourcezConflicts.create_source0 sX
$
6 6L:OF9::4;KLLNN!
!
r c X K | j fD ]}| | d {V d S r )r cancel)r ts r shutdownzConflicts.shutdown8 sE '( A
HHJJJGGGGGGGG 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_SCANINOTIFY_ENABLEDuploadscript_statusthirdparty_uploadscriptloggerinfouploadscript_disabler HostingPaneluploadscript_enablescan_in_config_enabledenable_scan_in_configdisable_purescan)active_in_configenabledrunningr* panels r r zConflicts._check_pure= s !! F "+"A6+A'A!577777777"+"C"E"E".
71+
4666666666F*,, 4
6899935555555553E::
=GHHH5e<<<<<<<<<KK-.....
4W 4KK3444,U33333333333 4 4 4 4r N)__name__
__module____qualname__r
IM360SCOPEr r r r$ staticmethodr r r r r r % sr KE% % %
!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 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