403Webshell
Server IP : 77.50.203.18  /  Your IP : 192.168.0.10
Web Server : Apache/2.4.62 (CentOS Stream) OpenSSL/3.5.7 mpm-itk/2.4.7-04 PHP/8.4.23
System : Linux web2 5.14.0-722.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jul 6 09:07:51 UTC 2026 x86_64
User : warsnews.ru ( 1001)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python3.9/site-packages/sos/report/plugins/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3.9/site-packages/sos/report/plugins/__pycache__/saltmaster.cpython-39.opt-1.pyc
a

ܓ�i�
�@s6ddlZddlZddlmZmZGdd�dee�ZdS)�N)�Plugin�IndependentPluginc@s4eZdZdZdZdZdZdd�Zdd�Zd	d
�Z	dS)�
SaltMasterzSalt MasterZ
saltmaster)Zsysmgmt)zsalt-masterzsalt-apicCsXg|_|�d�r|�d�n
|�d�|�d�|�d�|��|jgd�dd�dS)	NZall_logsz
/var/log/saltz/var/log/salt/masterz	/etc/saltz/etc/salt/pki/*/*.pem)zsalt-master --versionz#systemctl --full status salt-masterz systemctl --full status salt-apizsalt-key --list allz"salt-run jobs.list_jobs --out=yamlz%salt-run manage.list_state --out=yamlz)salt-run manage.list_not_state --out=yamlz!salt-run manage.joined --out=yaml�)�timeout)�collected_pillar_rootsZ
get_option�
add_copy_specZadd_forbidden_path�add_pillar_rootsZadd_cmd_output)�self�r�A/usr/lib/python3.9/site-packages/sos/report/plugins/saltmaster.py�setups




	�zSaltMaster.setupc
Cs�t�d�}d}|�|�r"|�|�g}|D]r}t|ddd��P}zt�|��di��dg�}Wntyrg}Yn0|�|�Wd�q*1s�0Yq*||_	|�
|�dS)	z+ Collect pilliar_roots of all salt configs z/etc/salt/master.d/*confz/etc/salt/master�rzUTF-8)�encodingZpillar_roots�baseN)�globZpath_exists�append�open�yamlZ	safe_load�get�AttributeError�extendrr)r
ZcfgsZmain_cfgZall_pillar_rootsZcfg�fileZcfg_pillar_rootsrrrr	.s"


��
*zSaltMaster.add_pillar_rootscCsRd}d}|�d||�|jD]0}|�d�r.|n|�d�}|�|�d�||�qdS)NzL(^\s*.*(pass|secret|(?<![A-z])key(?![A-z])|api_?key|encryption_?key).*:\ ).+z\1******z/etc/salt/*�/�*)Zdo_path_regex_subr�endswith)r
Zregexp�substZpillar_rootZnormalized_rootrrr�postprocEs�
�zSaltMaster.postprocN)
�__name__�
__module__�__qualname__Z
short_descZplugin_nameZprofilesZpackagesr
r	rrrrrrsr)rrZsos.report.pluginsrrrrrrr�<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit