NineSec Team Shell
Server IP : 184.107.3.203  /  Your IP : 216.73.216.51
Web Server : Apache
System : Linux dedicated2.avenfashion.com.ph 4.18.0-553.40.1.el8_10.x86_64 #1 SMP Mon Feb 10 12:11:18 EST 2025 x86_64
User : adminteladeoro ( 1015)
PHP Version : 8.2.28
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /usr/lib/python3.6/site-packages/sos/report/plugins/__pycache__/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //usr/lib/python3.6/site-packages/sos/report/plugins/__pycache__/sos_extras.cpython-36.opt-1.pyc
3

~�g��@s6ddlZddlZddlmZmZGdd�dee�ZdS)�N)�Plugin�IndependentPluginc@s&eZdZdZdZdZefZdd�ZdS)�	SosExtrasz/Collect extra data defined in /etc/sos/extras.dZ
sos_extrasz/etc/sos/extras.d/c$Cs�yJtj|j�}|jdks0|jtj@s0|jtj@rH|jd|j�d��dSWn(tk
rr|jd|j�d��dSX�xRtj	|j�D�]@\}}}�x2|D�](}|j
||�}|jd|���y�t|ddd	���}x�|j�j
�D]�}t|j��dks�|jd
�r�q�|jd��r||j�}	d}
t|	�dk�r`yt|	d�}
Wn.tk
�r^|jd
|�d|�d��YnX|j|	ddd�|
d�q�|j||d�q�WWdQRXWq�tk
�r�|jd|���Yq�Xq�Wq�WdS)NrzSkipping sos extras as z' has too wide permissions or ownership.zcan't stat z, skipping sos extrasz!Collecting data from extras file �rzUTF-8)�encoding�#�:�zCan't decode size limit on linez in z, using default)Z	sizelimit)Zsubdirzunable to read extras file )�os�stat�
extras_dir�st_uid�st_mode�S_IWGRP�S_IWOTHZ	_log_warn�OSError�walkZ	path_join�open�read�
splitlines�len�split�
startswith�int�
ValueErrorZ
add_copy_specZadd_cmd_output�IOError)�selfZst_res�path�_Zfilelist�fileZ_fileZsfile�lineZwords�limit�r"� /usr/lib/python3.6/sos_extras.py�setup.s@
 zSosExtras.setupN)�__name__�
__module__�__qualname__Z
short_descZplugin_namer�filesr$r"r"r"r#rs
r)r
rZsos.report.pluginsrrrr"r"r"r#�<module>	s

NineSec Team - 2022