관리-도구
편집 파일: event_hook_executor.cpython-311.opt-1.pyc
� ��g� � �� � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl m Z ddlmZ ddl mZ ej ej ej ej ej fZ d d �Z G d� de � � 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 <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> � )� HookEvent)�MessageType)�expect)� execute_hooks)�EventHookExecutor)�MalwareHitStatus)� MalwareHitNc � � K � t j |d�� � \ }}|r9t j ||||||||�� � } | � | � � � d {V �� d S d S )NT)� by_scan_id�ignore_cleaned)�scan_id� scan_type�error�started�path�total_files�total_malicious�DUMP)r �malicious_listr �MalwareDetectedCritical�process_message) �sinkr r r r �totalr r �hits�malware_detecteds �U/opt/imunify360/venv/lib/python3.11/site-packages/imav/plugins/event_hook_executor.py� detected_hookr ) s� � � � � '�5��4�� � ��O�T� � 5�$�<�������+�� � � �� �"�"�#3�4�4�4�4�4�4�4�4�4�4�4�5� 5� c � � e Zd Z ee� d� � � Z eej � � d� � � Z eej � � d� � � Z eej � � d� � � ZdS )�ImavEventHookExecutorc � �X K � | j � t |� � � � d S �N)�_loop�create_taskr )�self�events r � receive_eventz#ImavEventHookExecutor.receive_event>