e7 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 .
Copyright © 2019 Cloud Linux Software Inc.
This software is also available under ImunifyAV commercial license,
see
N)malware_response)PENDINGfpfnOKfailedc 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_reasonnotify_timeoutNzFile z* uploading timed out. Marking as pending. z uploading failed. )
FALSE_POSITIVEr FALSE_NEGATIVEupload_with_retriesSUBMIT_TIMEOUTSUBMIT_SUCCESSTimeoutErrorloggerwarningSUBMIT_PENDINGClientUploadErrorerror
SUBMIT_FAILED)filenametypereasonr
es Q/opt/imunify360/venv/lib/python3.11/site-packages/imav/malwarelib/utils/submit.pysubmit_malwarer % s- >!! ''
,
2'+:
( KHKKKK
- =X==!==>>>s/ -A C$&B
CC"&CCC)N)__doc__loggingimav.malwarelib.utilsr imav.malwarelib.configr getLogger__name__r r r
r r r r r r&