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

ܓ�i=�@s8ddlmZmZmZddlmZGdd�deee�ZdS)�)�Plugin�RedHatPlugin�UbuntuPlugin)�findc@s8eZdZdZdZdZdZdZdd�Zdd	�Z	d
d�Z
dS)
�DRBDz*Distributed Replicated Block Device (DRBD)Zdrbd)Zstorage)Z	drbdsetup�<cCs
d}tdd�D]�}t|ddd��}|����}Wd�n1sB0Y|d|�d|�d	�7}|��r�zJd
|�d�}t|ddd��}||��7}Wd�n1s�0YWn:ty�}z"|d|�d
|�d�7}WYd}~n
d}~00|d7}q|�|d�dS)N�z*_pidz!/sys/kernel/debug/drbd/resources/�rzutf-8)�encodingz--- z: z ---
z/proc/z/stackzCould not read /proc/z/stack: �
Zdrbd_thread_stacks)r�open�read�strip�isdigit�	ExceptionZadd_string_as_file)�selfZstacksZpid_file�f�pidZsfnZsf�e�r�;/usr/lib/python3.9/site-packages/sos/report/plugins/drbd.py�add_drbd_thread_stackss*.,
zDRBD.add_drbd_thread_stackscCs\|�gd��|��tdd�D](}|jd|��gd|�dd���d�q |�gd	��dS)
N)�drbdadm dumpzdrbdadm -d -vvv adjust allzdrbdsetup status -vs all�drbdsetup show allz	drbd*.ko*z/lib/moduleszmodinfo Zmodinfo_�/�_)Zsuggest_filename)z/etc/drbd.confz
/etc/drbd.d/*z
/proc/drbdz/sys/kernel/debug/drbd/*z/var/lib/drbd/*z/var/lib/drbd-support/*z/var/lib/linstor.d/*)Zadd_cmd_outputrr�replaceZ
add_copy_spec)rZkmodrrr�setup*s��z
DRBD.setupcCsLd}d}|�d||�d}d}|�d||�|�d||�|�d||�dS)	Nz!("nodehash"\s*:\s*")[a-zA-Z0-9]+"z\1********"z'/var/lib/drbd-support/registration.jsonz%(shared-secret\s+\"?).[^\"]+(\"?\s*;)z\1********\2z.*\.(conf|res)rr)Zdo_path_regex_subZdo_cmd_output_sub)rZnodehash_re�replZ	secret_rerrr�postproc@s�z
DRBD.postprocN)�__name__�
__module__�__qualname__Z
short_descZplugin_nameZprofilesZcommandsZcmd_timeoutrrrrrrrr
srN)Zsos.report.pluginsrrrZ
sos.utilitiesrrrrrr�<module>	s

Youez - 2016 - github.com/yon3zu
LinuXploit