404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@3.145.155.149: ~ $
3

�h>`l�@s�dZddlZddlZddlZddlmZddlmZdgZ	y
ej
Z
Wn�ek
r�ddlZddl
Z
ej�dZe
jde�r�dZ
n^e
jd	e�r�dZ
nLe
jd
e�r�dZ
n:e
jde�r�d
Z
n(e
jde�r�dZ
ne
jde�r�dZ
ndZ
YnXGdd�d�ZdS)z�Access control for setroubleshoot. For now this is only used for
determining which users are allowed to connect to the server: see
UserServerAccess for more information.�N)�
get_config)�syslog_trace�ServerAccess�z^i\d86�z^x86_64z^(ppc|powerpc)�z
^(alpha|mips)�z^sparc�@z^parisci@c@sZeZdZdZddiddid�Zdd�Zdd	�Zd
d�Zdd
�Zdd�Z	dd�Z
dd�ZdS)rzg
    Determine if a user should be given access to the server based
    on the configuration file.
    �wildcardTF)ZclientZfix_cmdcCs2i|_x&ttjj��D]}|j|�|j|<qWdS)N)�
privileges�listr�keys�init_privilege)�self�	privilege�r�$/usr/lib/python3.6/access_control.py�__init__LszServerAccess.__init__cCs"dd�tdd|�jd�D�}|S)NcSsg|]}|j��qSr)�strip)�.0�namerrr�
<listcomp>Xsz/ServerAccess.init_privilege.<locals>.<listcomp>�accessz%s_users�,)r�split)rrZ	cfg_namesrrrrWszServerAccess.init_privilegecCs(|tjk}|rdStjtjd|�dS)NTzunknown access privilege (%s)F)rr�syslog�LOG_ERR)rrZvalidrrr�valid_privilege\s

zServerAccess.valid_privilegecCs.|j|�sdStj|ds dSd|j|kS)NFr
�*)rrr)rrrrr�unrestricted_privilegecs

z#ServerAccess.unrestricted_privilegecCs6|j|�sdS|j|�rdS||j|kr.dSdSdS)z�
        Determine if the given user name is allowed access.
        Returns True if access should be given, False if not.
        FTN)rrr)rr�userrrr�user_allowedks

zServerAccess.user_allowedcCsX|j|�sdS|j|�rdSyddl}|j|�}Wntk
rFdSX|j||d�S)z�
        Determine if the given uid is allowed access. No error
        is returned if the uid is invalid (False is returned).
        Returns True if access should be given, False if not.
        FTrN)rr�pwd�getpwuid�KeyErrorr!)rr�uidr"Z	pwd_entryrrr�uid_allowedzs

zServerAccess.uid_allowedcCs�d}}}y|j}|tjkr&||fSWntk
r<YnXd}tj|�}yJ|jtjt|�}tj	||�\}}}|dkr|d}|dkr�d}|dkr�d}WnTt
k
r�}	z8d}}}ddl}
t|
j
��tjtjd|	�WYdd}	~	XnX||fS)	z�Obtain the effective user and group IDs of the process on
        the other end of a socket. SO_PEERCRED is used so the information
        returned is generally trustworthy (though root processes can
        impersonate any uid/gid).NZIII�rzget_credentials(): %s���r(r()�family�SocketZAF_UNIX�AttributeError�struct�calcsizeZ
getsockoptZ
SOL_SOCKET�SO_PEERCRED�unpack�	Exception�	tracebackr�
format_excrr)rZsock�pidr%�gidr)Zformat_ucredZsizeof_ucredZucred�er1rrr�get_credentials�s0

$zServerAccess.get_credentialsN)�__name__�
__module__�__qualname__�__doc__rrrrrr!r&r6rrrrrBs)r:r,Zsocketr*rZsetroubleshoot.configrZsetroubleshoot.utilr�__all__r.r+�os�re�uname�machine�searchrrrrr�<module>s4



Filemanager

Name Type Size Permission Actions
Plugin.cpython-36.opt-1.pyc File 5.11 KB 0644
Plugin.cpython-36.pyc File 5.11 KB 0644
__init__.cpython-36.opt-1.pyc File 113 B 0644
__init__.cpython-36.pyc File 113 B 0644
access_control.cpython-36.opt-1.pyc File 3.89 KB 0644
access_control.cpython-36.pyc File 3.89 KB 0644
analyze.cpython-36.opt-1.pyc File 22.17 KB 0644
analyze.cpython-36.pyc File 22.17 KB 0644
audit_data.cpython-36.opt-1.pyc File 27.42 KB 0644
audit_data.cpython-36.pyc File 27.42 KB 0644
avc_audit.cpython-36.opt-1.pyc File 12.36 KB 0644
avc_audit.cpython-36.pyc File 12.36 KB 0644
config.cpython-36.opt-1.pyc File 11.49 KB 0644
config.cpython-36.pyc File 11.49 KB 0644
email_alert.cpython-36.opt-1.pyc File 1.77 KB 0644
email_alert.cpython-36.pyc File 1.77 KB 0644
errcode.cpython-36.opt-1.pyc File 2.63 KB 0644
errcode.cpython-36.pyc File 2.63 KB 0644
html_util.cpython-36.opt-1.pyc File 5.25 KB 0644
html_util.cpython-36.pyc File 5.25 KB 0644
rpc.cpython-36.opt-1.pyc File 28.32 KB 0644
rpc.cpython-36.pyc File 28.32 KB 0644
rpc_interfaces.cpython-36.opt-1.pyc File 4.75 KB 0644
rpc_interfaces.cpython-36.pyc File 4.75 KB 0644
server.cpython-36.opt-1.pyc File 25.04 KB 0644
server.cpython-36.pyc File 25.04 KB 0644
serverconnection.cpython-36.opt-1.pyc File 5.24 KB 0644
serverconnection.cpython-36.pyc File 5.24 KB 0644
signature.cpython-36.opt-1.pyc File 28.08 KB 0644
signature.cpython-36.pyc File 28.08 KB 0644
util.cpython-36.opt-1.pyc File 25.73 KB 0644
util.cpython-36.pyc File 25.73 KB 0644
uuid.cpython-36.opt-1.pyc File 16.13 KB 0644
uuid.cpython-36.pyc File 16.13 KB 0644
xml_serialize.cpython-36.opt-1.pyc File 9.89 KB 0644
xml_serialize.cpython-36.pyc File 9.89 KB 0644