w < d Z ddlZddlZddlZddlmZ ddlmZ ddlm Z m
Z
ddlmZ ddl
mZ ddlmZ dd lmZ dd
lmZ ddlmZ ddlmZ ej e Zg d
Zg edddZg dZ G d d Zd Z d Z! G d d Z" G d d 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 .
Copyright © 2019 Cloud Linux Software Inc.
This software is also available under ImunifyAV commercial license,
see
Nwraps)NamedTemporaryFile)AnyDict)uuid4) HookEvent)
hosting_panel)encode_filename)Malware)MalwareScanType)fill_results_owner)
intensity_cpuintensity_io
intensity_ram
detect_elfuse_filtersfollow_symlinksexclude_patterns
file_patterns)r r r r r r c : e Zd Zd Zd Zd dZd Zd Zd Zd Z dS )
ScanResultc g | _ d| _ d | _ g | _ d x| _ | _ i | _ || _ || _ || _ d | _
d S )Nr )scanstotal_fileserrorerrors_begin_time _end_time_aggregated_results_path_scan_id
_scan_typeargs)selfpathscan_id scan_types U/opt/imunify360/venv/lib/python3.11/site-packages/imav/malwarelib/scan/scan_result.py__init__zScanResult.__init__A sV
,004>#%
# c V | j t j t j t j fv S N)r# r
BACKGROUND ON_DEMANDUSERr% s r) is_detachedzScanResult.is_detachedO s( &% #
r+ Nc . |r|| _ |r || _ d S d S r- )r r )r%
begin_timeend_times r) set_start_stopzScanResult.set_start_stopV s/ *)D &%DNNN &