g dZddlmZddlmZddlmZddlm Z m Z ddl m Z ddl mZddlmZeeZGd d e e Zd S) 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)ScopecJeZdZejZdZdZdZdZ e dZ dS) Conflictsc0d|_d|_d|_dSN)_loop_sink_pure_check_task)selfs K/opt/imunify360/venv/lib/python3.11/site-packages/imav/plugins/conflicts.py__init__zConflicts.__init__(s  $c KdSr)rloops r create_sinkzConflicts.create_sink-s  rcK||_||_|jttj|j|_dSr)rr create_taskrConfigCONFLICTS_CHECK_PERIOD _check_purer)rrsinks r create_sourcezConflicts.create_source0sX  $ 6 6 L :OF9 : :4;K L L N N! ! rcXK|jfD]}||d{VdSr)rcancel)rts rshutdownzConflicts.shutdown8sE'(  A HHJJJGGGGGGGG  rc KtjsdStj}|o tj }tjd{V}tj}|8|r4td|tj d{VdStj }|r|s3tdtj d{Vtj |s4tdtj|d{VtddS|r8|s8tdtj|d{VdSdSdS)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)rdetectr PURE_SCANINOTIFY_ENABLEDuploadscript_statusthirdparty_uploadscriptloggerinfouploadscript_disabler HostingPaneluploadscript_enablescan_in_config_enabledenable_scan_in_configdisable_purescan)active_in_configenabledrunningr*panels rrzConflicts._check_pure=s!!  F"+"A6+A'A!577777777"+"C"E"E " . 7 1+  4666666666 F*,,  4 6 899935555555553E:: = GHHH5e<<<<<<<<< KK- . . . . .  4W 4 KK3 4 4 4,U33 3 3 3 3 3 3 3 3 3 4 4 4 4rN) __name__ __module__ __qualname__r IM360SCOPErrr r$ staticmethodrrrrr r %sr KE%%%        !4!4\!4!4!4rr N)__doc__loggingr defence360agent.contracts.configrrdefence360agent.utilsr!defence360agent.contracts.pluginsrrimav.malwarelib.subsysrdefence360agent.subsys.panelsr r r7r+r rrrrDs*>>>>>>111111-,,,,,777777'''''' 8  :4:4:4:4:4 {:4:4:4:4:4r