관리-도구
편집 파일: report.cpython-311.opt-1.pyc
� ��g� � �� � d Z ddlZddlZddlZddlZddlmZ ddlmZ ddl m Z ddlmZ ddlm Z d \ ZZZZd ddeeeed �ZeeeehZ edg d�� � Zde fd�Zdd�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)� namedtuple)�suppress)�Path)�time� )�AIBOLIT)� suspicious�vulnerszextended-suspiciouszignored-suspicious�php_malware� js_malware� cloudhash)�p�j�c�s�v�es�is�AiBolitCSVReport)�section�path� signature�ctime�mtime�size�etime�signature_id�hash�signature_name�sha256�report_pathc # �d K � | � d�� � 5 }t j |d�� � D �]e}t |� } t |j }n# t $ r Y �,w xY w|j pd� ||j � � }|j dk r!t t |j � � � � nt t � � � � }|j }t t j � � 5 t% j |d�� � }d d d � � n# 1 swxY w Y t) j |� � }t, ||t |j � � t |j � � |t2 v t |j pd � � |j p|j pd ||t: k d � V � ��g d d d � � d S # 1 swxY w Y d S )N� )�newline�,)� delimiterz{}.{}r T��validater ) �name� file_namer r �modification_timer r r � timestamp�extended_suspicious)�open�csv�readerr �SECTIONSr �KeyErrorr �formatr �int�floatr r r r �binascii�Error�base64� b64decode�os�fsdecoder r r �SUSPICIOUS_SECTIONSr r r �EXTENDED_SUSPICIOUS)r! � report_stream�raw_row�rowr �sigr, r* s �Y/opt/imunify360/venv/lib/python3.11/site-packages/imav/malwarelib/scan/ai_bolit/report.py�parse_report_csvrC O sQ � � � � � � �"� � %� %� ���z�-�3�?�?�?� � �G�"�G�,�C� �"�3�;�/����� � � ��� �����$� ������)�)� )�C� *-���);�);��E�#�)�$�$�%�%�%��T�V�V��� � ��I��(�.�)�)� G� G�"�,�Y��F�F�F� � G� G� G� G� G� G� G� G� G� G� G���� G� G� G� G���I�.�.�I��&� ��S�Y���%(���^�^�%�)<�<��C�H�M��*�*�� �6�c�h�6�$�&�'.�2E�'E�� � � � � �! �� � � � � � � � � � � ���� � � � � � sZ �#F%�A�F%� A�F%�A�BF%�)D� F%�D�F%�D�BF%�%F)�,F)Tc # � K � t � � � D �]b}| � |g � � D �]G}|� d� � p)d� |t |d � � g� � }|dk r"t t |d � � � � nt t � � � � }|d }|rGt t j � � 5 t j |d�� � }d d d � � n# 1 swxY w Y t j |� � }t |||t v |d |d |d |� d|� d � � � � ||t"