관리-도구
편집 파일: check_file.cpython-311.pyc
� ��g� � �V � d Z ddlZdZdZdZg eej eez � � �Zdefd�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> � N)z/sess\_\w*$z/stat/usage\_\w+\.htmlz/stat/site\_\w+\.htmlz/webstat/awstats.*\.txtz/awstats/awstats.*\.txtz/awstats/.{1,80}\.plz/awstats/.{1,80}\.htmlz/logs/error\_log\..*z/logs/xferlog\..*z/logs/access\_log\..*z/domlogs/.+z/logs/cron\..*z+/logs/exceptions/.+\.log(?:\.\d)?(?:\.gz)?$z#/mail(?:/[^/]+)*/[^,]+,S=[^,]+,W=.+z/mail(?:/[^/]+)*/[^,]+,S=.+z"/mail(?:/[^/]+)*/storage/u\.[0-9]+z"/mail(?:/[^/]+)*/storage/m\.[0-9]+z&/Maildir(?:/[^/]+)*/[^,]+,S=[^,]+,W=.+z/Maildir(?:/[^/]+)*/[^,]+,S=.+z^/var/ossec/.*)z+/var/log/imunify360/acronis-installer\.log$z3/var/log/imunify360/console\.log(?:\.\d)?(?:\.gz)?$z/var/log/imunify360/debug\.log$z/var/log/imunify360/error\.log$z=/var/log/install-mod\_remoteip\.log(?:\.\d{1.4})?(?:\.pid)?r$z//var/log/imunify360/malware\_scan\_\d{10}\.log$z!/var/log/imunify360/network\.log$z*/var/log/imunify360/process\_message\.log$z</var/log/imunify360-webshield/access.log(?:-\d{8})?(?:.gz)?$z;/var/log/imunify360-webshield/error.log(?:-\d{8})?(?:.gz)?$z(/.revisium_antivirus_cache/.revisium\d+/z9/admin/plib/modules/revisium-antivirus/library/externals/�2 �returnc �J � t D ]}|� | � � r dS �dS )z< Check if file extension matches log file extension TF)�REGEX_IGNORE�search)�data� regex_objs �U/opt/imunify360/venv/lib/python3.11/site-packages/imav/malwarelib/utils/check_file.py�check_log_and_mailr C s: � � "� � � ����D�!�!� ��4�4� ��5� ) �__doc__�re�LOG_AND_MAIL_REGEX�IMUNIFY_LOG_REGEX� BYTES_TO_READ�map�compiler �boolr � r r �<module>r su ��� �* � � � �� �. � � � �I���R�Z�!3�6G�!G�H�H�I���� � � � � � r