OwlCyberSecurity - MANAGER
Edit File: vulnerability.cpython-311.opt-1.pyc
� ����N�6h� ����������������������������d�Z�ddlZddlmZ�ddlmZ�ddlmZ�ddlm Z �ddl mZmZ�ddl mZmZ��ej��������e������������Z�G�d ��d e������������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)�defaultdict)�Iterable)�urljoin)�Request)�API�APIError)�IndependentAgentIDAPI�IAIDTokenErrorc��������������������^�����e�Zd�Z�eej��������d������������Zddddd�Zede de fd���������������ZdS�)�VulnerabilityAPIz/api/patch/vulnerabilities��)�cveId�app�type�name�ids�returnc�������������������"��K����t����������|�j��������j��������������������}|s|S� �t����������j������������������������d{V���}n4#�t ����������$�r'}t�������������������������������d|�������������|cY�d}~S�d}~ww�xY�w|�j��������dd� ��������������������|���������������z���}t����������||dd��������������} �|����������������������|��������������d{V���}n4#�t����������$�r'}t�������������������������������d|�������������|cY�d}~S�d}~ww�xY�w|� ��������������������|d ����������������������|S�) zc Get vulnerabilities details for specific *ids*. More details in DEF-32152 NzACan't get iaid token: %s. Return default vulnerabilities details.z?ids=�,zapplication/json)zX-AuthzContent-Type)�headerszRFailed to get vulnerabilities details: %s. Return default vulnerabilities details.�vulnerabilities)r����_STUB_VULNERABILITY_INFO�copyr ���� get_tokenr ����logger�error�URL�joinr���� async_requestr����update)�clsr����info�token�exc�url�request�results��� �V/opt/imunify360/venv/lib/python3.11/site-packages/imav/malwarelib/api/vulnerability.py�get_detailszVulnerabilityAPI.get_details)���sz�����������3�7�<�=�=���� ��K� �/�9�;�;�;�;�;�;�;�;�E�E���� �� �� ��L�L�:�� �� �� � ��K�K�K�K�K�K����� ������g�/����� � �/�/�/����$�6H�I�I� �� �� �� ��,�,�W�5�5�5�5�5�5�5�5�F�F���� �� �� ��L�L�:�� �� �� � ��K�K�K�K�K�K����� ����� ���F�,�-�.�.�.��s9����;�� A,�A'�!A,�'A,�$C���� C1� C,�&C1�,C1N)�__name__� __module__�__qualname__r���r���� _BASE_URLr���r����classmethodr����dictr)����������r(���r���r���%���sf�������������� �'�#�-�!=� >� >�C�)+�B��B�O�O���#�H��#���#��#��#���[�#��#��#r1���r���)�__doc__�logging�collectionsr����typingr����urllib.parser����urllib.requestr����defence360agent.api.serverr���r����defence360agent.internals.iaidr ���r ���� getLoggerr*���r���r���r0���r1���r(����<module>r;������s���������*������#��#��#��#��#��#�������������� �� �� �� �� �� ��"��"��"��"��"��"��4��4��4��4��4��4��4��4���������������� � �� �8� $� $��(��(��(��(��(�s��(��(��(��(��(r1���