관리-도구
편집 파일: submit.cpython-311.pyc
� ��gk � �h � d Z ddlZddlZddlmZ ddlmZ ej e� � Z dZ dZd d�Zd� 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)�malware_response)�LicenseError�fp�fnc � � K � |t k rt j nt j } t j | |�� � � d{V �� dS # t j $ r'}t � d| |� � Y d}~dS d}~ww xY w)a Submit file to MRS for analysis :param filename: str -> path to file to submit :param type: str -> report type (fp or fn) :param scanner: int -> scanner id :param reason: str -> malware name provided by scanner :raises LicenseError: )� upload_reasonNzFile %s uploading failed. %s.)�FALSE_POSITIVEr �FALSE_NEGATIVE�upload_with_retries�ClientError�logger�error)�filename�type�reasonr �es �Q/opt/imunify360/venv/lib/python3.11/site-packages/imav/malwarelib/utils/submit.py�submit_malwarer "