Y d Z ddlZddlZddlZddlZddlmZmZ ddlm Z ddl
mZ ddlm
Z
ddlmZmZ ddlmZ dd lmZ dd
lmZ ddlmZ G 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)MalwareMalwareSignatures) HookEvent)g)resource_limits)AIBOLIT_SCAN_INTENSITY_KEYMalwareScanResourceType)MalwareIgnorePath)MDS_PATH)MDSDetachedScanDir)
get_memoryc " e Zd Zd Zd ZddZdS )MalwareDatabaseScannerc h || _ || _ || _ || _ || _ || _ || _ d S N)scan_idinitial_pathpaths
intensity_cpuintensity_io
intensity_ram scan_type) selfr r r r r r r _s U/opt/imunify360/venv/lib/python3.11/site-packages/imav/malwarelib/scan/mds/scanner.py__init__zMalwareDatabaseScanner.__init__* s= (
*(*" c @ dt dd| j d dt j dt |j d| j dt |j d t |j d
t j dt | j dt t j
gS )
Nz/opt/ai-bolit/wrapperz--scanz--pathr z--avdbz
--report-filez
--detachedz
--progressz
--ignore-listz --procudbz--memoryz--db-timeout)r r r MDS_AI_BOLIT_HOSTERstrreport_filer
progress_fileignore_fileMDS_PROCU_DBr
r r MDS_DB_TIMEOUT)r work_dirs r _cmdzMalwareDatabaseScanner._cmd= s #JqM1$%%L&''$%%*t)**&''+
r Nc K t | j 5 }|j d d t j t j j D |
| }|| j | j d}|j
d 5 }t j || d d d n# 1 swxY w Y |j d 5 }|j d 5 }t' j | j | j | j |pt+ j }t, j | d {V t3 j || j | j d||t; | t<