관리-도구
편집 파일: generic_sensor.cpython-311.opt-1.pyc
� ��go � �* � d Z ddlZddlZddlZddlZddlZddlmZ ddlm Z ddl mZmZ ddl mZ ddlmZ ddlmZ dd lmZ dd lmZ ddlmZ ddlmZ dd lmZ ee� � ee� � cZZ G d� dej � � Z G d� 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> Generic Sensor plugin - Creates listening unix domain socket on config.GenericSensor.SOCKET_PATH - Expects alert data formatted as � N)� getLogger)�MSGS_WITHOUT_IP)� SimpleRpc�GENERIC_SENSOR_SOCKET_PATH)�files)�MessageType)�Sensor)�g)�getNetworkLogger)�RpcServerAV)�Scope)� LineBufferc � � e Zd Zej ej ej ej ej ej ej ej d�Zd� Z d� Zd� Zd� Zd� Zd� ZdS ) �Protocol)�NOOP�MALWARE_SCAN�MALWARE_SCAN_TASK�MALWARE_SCAN_COMPLETE�MALWARE_CLEAN_COMPLETE�MALWARE_RESTORE_COMPLETE�MALWARE_CHECK_DETACHED_SCANS�MALWARE_SEND_FILESc �V � || _ || _ t � � | _ d | _ d S �N)�_loop�_sinkr �_line_buffer� transport)�self�loop�sink�_s �P/opt/imunify360/venv/lib/python3.11/site-packages/imav/plugins/generic_sensor.py�__init__zProtocol.__init__B s'