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 :  /lib/python3.9/site-packages/sos/report/plugins/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3.9/site-packages/sos/report/plugins/__pycache__/sudo.cpython-39.pyc
a

ܓ�i��@s&ddlmZmZGdd�dee�ZdS)�)�Plugin�IndependentPluginc@s,eZdZdZdZdZdZdd�Zdd�Zd	S)
�SudozSudo command execution�sudo)�identity�system)rc
Cs�|�d�d}ddg}zXt|ddd��6}|D] }|�d�r,|�|��d	�q,Wd�n1sb0YWn:ty�}z"|�d
|�d|���WYd}~n
d}~00|�d�s�|�|�n|�d
d�|D��dS)Nz
/etc/sudo*z/etc/sudo.confz/var/log/sudo_debugz/var/log/sudoers_debug�rzUTF-8)�encodingZDebug�zCould not open conf file z: Zall_logscSsg|]}|�d��qS)�*�)�.0�logrr�;/usr/lib/python3.9/site-packages/sos/report/plugins/sudo.py�
<listcomp>&�zSudo.setup.<locals>.<listcomp>)Z
add_copy_spec�open�
startswith�append�split�IOErrorZ
_log_errorZ
get_option)�selfZconfig_fileZ	log_files�cfile�line�errorrrr�setups

6�
z
Sudo.setupcCsd}|�d|d�dS)Nz(\s*bindpw\s*)\S+z/etc/sudo-ldap.confz
\1********)Zdo_file_sub)rZregexprrr�postproc(sz
Sudo.postprocN)	�__name__�
__module__�__qualname__Z
short_descZplugin_nameZprofilesZpackagesrrrrrrrsrN)Zsos.report.pluginsrrrrrrr�<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit