Uname : Linux serv1.rebootns.com 5.14.0-570.62.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 11 10:10:59 EST 2025 x86_64
Soft : LiteSpeed
Ip : 139.99.125.122
Port : 443
~
/
opt
/
imunify360
/
venv
/
lib
/
python3.11
/
site-packages
/
imav
/
malwarelib
/
utils
/
__pycache__
[ HOME ]
Exec
Submit
submit.cpython-311.pyc
� e���7�� �f � d Z ddlZddlmZ ddlmZ ej e� � ZdZ dZ dZeZdZ d d �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)�malware_response)�PENDING�fp�fn�OK�failedc � � K � |t k rt j nt j } t j | |t j �� � � d{V �� t S # t j $ r1}t � d| � d|� �� � t cY d}~S d}~wt j $ r1}t � d| � d|� �� � t cY d}~S 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 :return: one of SUBMIT_SUCCESS, SUBMIT_PENDING, SUBMIT_FAILED :raises LicenseError: )� upload_reason�notify_timeoutNzFile z* uploading timed out. Marking as pending. z uploading failed. ) �FALSE_POSITIVEr �FALSE_NEGATIVE�upload_with_retries�SUBMIT_TIMEOUT�SUBMIT_SUCCESS�TimeoutError�logger�warning�SUBMIT_PENDING�ClientUploadError�error� SUBMIT_FAILED)�filename�type�reasonr �es �Q/opt/imunify360/venv/lib/python3.11/site-packages/imav/malwarelib/utils/submit.py�submit_malwarer % s- � � � � �>�!�!� �'�'� � ,� � ��2��'�+�:� � � � � � � � � � � ����(� � � ����K�H�K�K��K�K� � � � ������������-� � � ����=�X�=�=�!�=�=�>�>�>���������������s/ �-A �C�$&B� C�C�"&C�C�C)N)�__doc__�logging�imav.malwarelib.utilsr �imav.malwarelib.configr � getLogger�__name__r r r r r r r � � r �<module>r&