PATH:
opt
/
imunify360
/
venv
/
lib
/
python3.11
/
site-packages
/
imav
/
plugins
/
__pycache__
/
Editing: detect_admin_tools_watcher.cpython-311.opt-1.pyc
� d��i' � � � d Z ddlZddlmZ ddlmZ ddlmZmZ ddl m Z ddlmZ ddlmZ ej e� � Z G d � d 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> � N)�SystemConfig)�ConfigUpdate)�MessageSink�expect)�Scope)�Malware)�aibolitc �X � e Zd Zej Zd� Zdd�Z ee � � de fd�� � Z dS )�DetectAdminToolsWatcherc �6 � d | _ t j | _ d S �N)�_loop� MalwareConfig�DETECT_ADMIN_TOOLS�_previous_detect_admin_tools)�selfs �\/opt/imunify360/venv/lib/python3.11/site-packages/imav/plugins/detect_admin_tools_watcher.py�__init__z DetectAdminToolsWatcher.__init__% s � ��� �,9�,L��)�)�)� �returnNc � � K � || _ d S r )r )r �loops r �create_sinkz#DetectAdminToolsWatcher.create_sink) s � � � ��� � � r �messagec � � K � t |d t � � rZt j }| j |k rEt � d| j |� � || _ t j � � � d {V �� d S d S d S )N�confz=DETECT_ADMIN_TOOLS changed from %s to %s, restarting ai-bolit) � isinstancer r r r �logger�infor �$restart_on_detect_admin_tools_update)r r � current_values r �on_config_updatez(DetectAdminToolsWatcher.on_config_update, s� � � � ��g�f�o�|�4�4� E�)�<�M��0�M�A�A���� ��5�!� � � � 5B��1��B�D�D�D�D�D�D�D�D�D�D�D� E� E�A�Ar )r N)�__name__� __module__�__qualname__r �IM360�SCOPEr r r r r"