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__/sudo.cpython-36.pyc
3

~�g��@s&ddlmZmZGdd�dee�ZdS)�)�Plugin�IndependentPluginc@s,eZdZdZdZd
ZdZdd�Zdd�Zd	S)�SudozSudo command execution�sudo�identity�systemcCs�|jd�d}ddg}yHt|ddd��0}x(|D] }|jd�r.|j|j�d	�q.WWdQRXWn8tk
r�}z|jd
|�d|���WYdd}~XnX|jd�s�|j|�n|jd
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.6/sudo.py�
<listcomp>&szSudo.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


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

NineSec Team - 2022