403Webshell
Server IP : 118.27.122.248  /  Your IP : 216.73.216.15
Web Server : Apache
System : Linux web0264.sh.tyo1 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64
User : c9415830 ( 11735)
PHP Version : 8.4.17
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/alt/python36/lib64/python3.6/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/alt/python36/lib64/python3.6/test/__pycache__/test_spwd.cpython-36.opt-1.pyc
3

�w2_�
�@s�ddlZddlZddlmZejd�Zejeed�o>ej�dkd�Gdd�dej	��Z
ejeed�onej�dkd�Gd	d
�d
ej	��Zedkr�ej
�dS)�N)�support�spwd�geteuidzroot privileges requiredc@seZdZdd�Zdd�ZdS)�TestSpwdRootcCs4tj�}|j|t�x|D]}|j|tj�qWdS)N)r�getspall�assertIsInstance�list�struct_spwd)�self�entries�entry�r
�3/opt/alt/python36/lib64/python3.6/test/test_spwd.py�
test_getspalls
zTestSpwdRoot.test_getspallcCstj�}|s|jd�|dj}tj|�}|j|tj�|j|j|�|j|j|d�|j|j|j�|j|j	t
�|j|j	|d�|j|j	|j�|j|jt
�|j|j|d�|j|jt
�|j|j|d�|j|jt
�|j|j|d�|j|jt
�|j|j|d�|j|jt
�|j|j|d�|j|jt
�|j|j|d	�|j|jt
�|j|j|d
�|jt��}tjd�WdQRX|jt
|j�d�|jttj�|jttjd�|jttj|d�ytj|�}Wntk
�r�YnX|jttj|�dS)
Nzempty shadow password databaser��������zinvalid user namez'getspnam(): name not found')rr�skipTestZsp_namp�getspnamrr	ZassertEqualZsp_namZsp_pwdp�strZsp_pwdZ	sp_lstchg�intZsp_minZsp_maxZsp_warnZsp_inactZ	sp_expireZsp_flag�assertRaises�KeyErrorZ	exception�	TypeError�os�fsencode�UnicodeEncodeError)r
rZrandom_namerZcxZ
bytes_namer
r
r�
test_getspnamsJ


zTestSpwdRoot.test_getspnamN)�__name__�
__module__�__qualname__rr"r
r
r
rrsrznon-root user requiredc@seZdZdd�ZdS)�TestSpwdNonRootcCsbd}y$|jt��}tj|�WdQRXWn4tk
r\}z|jd||f�WYdd}~XnXdS)N�binzspwd entry %r doesn't exist: %s)r�PermissionErrorrrrr)r
�name�cm�excr
r
r�test_getspnam_exception?sz'TestSpwdNonRoot.test_getspnam_exceptionN)r#r$r%r,r
r
r
rr&;sr&�__main__)rZunittestZtestr�
import_modulerZ
skipUnless�hasattrrZTestCaserr&r#�mainr
r
r
r�<module>s

1


Youez - 2016 - github.com/yon3zu
LinuXploit