AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.122   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python3/dist-packages/sos/policies/distros/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /usr/lib/python3/dist-packages/sos/policies/distros/__pycache__/cos.cpython-310.pyc
o

���b��@s8ddlmZmZddlmZdd�ZGdd�de�ZdS)�)�	CosPlugin�IndependentPlugin)�LinuxPolicycCs|��p|���d�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)�line�r
�:/usr/lib/python3/dist-packages/sos/policies/distros/cos.py�_blank_or_commentsrc@s4eZdZdZdZdgZeegZdZ	e
d	dd��ZdS)
�	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:/sbin�c	Csx|r|j|vSz(tdd��}tdd�|D��}|ddkWd�WS1s(wYWdSttfy;YdSw)Nz/etc/os-release�rcss&�|]}t|�s|���d�VqdS)�=N)rr�split)�.0r	r
r
r�	<genexpr>.s��z"CosPolicy.check.<locals>.<genexpr>�ID�cosF)�distro�open�dict�IOError�KeyError)�cls�remote�fp�
os_releaser
r
r�check's

(��zCosPolicy.checkN)r)�__name__�
__module__�__qualname__r�vendor�vendor_urlsrr�valid_subclasses�PATH�classmethodrr
r
r
rr
s�r
N)�sos.report.pluginsrr�sos.policies.distrosrrr
r
r
r
r�<module>s


Anon7 - 2022
AnonSec Team