§ ž} gy ãóœ—dZddlZddlmZddlmZddlmZddlm Z ddl m Z ddl m Z dd lmZGd „d e ¦«ZGd „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)ÚCancelledError)Úsuppress)ÚIterator)ÚFileBasedResourceLimits)Ú"APP_VERSION_DETECTOR_INTENSITY_KEY)ÚScanFailedError)Úresource_limitscó—eZdZdS)ÚAVDExecutionErrorN)Ú__name__Ú __module__Ú __qualname__©óú^/opt/imunify360/venv/lib/python3.11/site-packages/imav/malwarelib/scan/app_version_detector.pyr r !s€€€€€Ø€Drr có8—eZdZgd¢Zd„Zdeeddfd„ZdS)ÚAppVersionDetector)z9/opt/app-version-detector/app-version-detector-wrapper.shzW--sqlite-db-report=/var/lib/cloudlinux-app-version-detector/components_versions.sqlite3z --stdin-dirsz--paths-in-base64z--scan-depth=3có—d|_dS)N)Ú_proc)Úselfs rÚ__init__zAppVersionDetector.__init__2s €ØˆŒ ˆ ˆ rÚpathsÚreturnNc ƒóžK—d |¦«}tj|jtjtjtjtjtjt¬¦«ƒd{V—†|_ dx}} |j   |¬¦«ƒd{V—†\}}nt#t$rgtt¦«5|j  ¦«|j  ¦«ƒd{V—†ddd¦«n #1swxYwYYnwxYw|j jdkr%t%d|j|j j||dd¬¦«‚dS)Nó )Ú intensity_cpuÚ intensity_ioÚstdoutÚstderrÚstdinÚkey)Úinputrz$AVD exited with non-zero return code)ÚmessageÚcommandÚ return_codeÚoutÚerrÚpathÚscan_id)Újoinr Úcreate_subprocessÚ_cmdrÚCPUÚIOÚ subprocessÚPIPErrÚ communicaterrÚProcessLookupErrorÚkillÚwaitÚ returncoder )rrr r&r's rÚstartzAppVersionDetector.start5s¶èè€Ø— ’ ˜5Ñ!Ô!ˆÝ*Ô<Ø ŒIÝ1Ô5Ý0Ô3Ý”?Ý”?Ý”/Ý2ð ñ ô ð ð ð ð ð 𠈌 ðЈˆcð (Ø!œZ×3Ò3¸%Ð3Ñ@Ô@Ð@Ð@Ð@Ð@Ð@Ð@‰HˆCøÝð (ð (ð (ÝÕ,Ñ-Ô-ð (ð (Ø” —’Ñ!Ô!Ð!Ø”j—o’oÑ'Ô'Ð'Ð'Ð'Ð'Ð'Ð'Ð'ð (ð (ð (ñ (ô (ð (ð (ð (ð (ð (ð (øøøð (ð (ð (ð (øøð (øøøð Œ:Ô  AÒ %Ð %Ý#Ø>Øœ Ø œJÔ1ØØØØðñôð ð &Ð %s6Á?$B$Â$DÃ9DÃ; DÄD Ä DÄD ÄDÄD)r r rr,rrÚbytesr6rrrrr%sZ€€€€€ð ð ð €Dðððð ¨%¤ð°Tððððððrr)Ú__doc__r/ÚasynciorÚ contextlibrÚtypingrÚ defence360agent.contracts.configrÚimav.malwarelib.configrÚimav.malwarelib.scanrÚdefence360agent.utilsr r rrrrúr@s÷ðððð*ÐÐÐØ"Ð"Ð"Ð"Ð"Ð"ØÐÐÐÐÐØÐÐÐÐÐàDÐDÐDÐDÐDÐDØEÐEÐEÐEÐEÐEØ0Ð0Ð0Ð0Ð0Ð0Ø1Ð1Ð1Ð1Ð1Ð1ð ð ð ð ð ˜ñ ô ð ð-ð-ð-ð-ð-ñ-ô-ð-ð-ð-r