Uname:Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64

403WebShell
403Webshell
Server IP : 3.111.61.48  /  Your IP : 216.73.216.67
Web Server : Apache
System : Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64
User : ubuntu ( 1000)
PHP Version : 8.2.31
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python3.10/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3.10/test/__pycache__/test_spwd.cpython-310.pyc
o

�9j�
�@s�ddlZddlZddlmZe�d�Ze�eed�oe��dkd�Gdd�dej	��Z
e�eed�o7e��dkd�Gd	d
�d
ej	��ZedkrMe�
�dSdS)�N)�
import_helper�spwd�geteuidzroot privileges requiredc@seZdZdd�Zdd�ZdS)�TestSpwdRootcCs0t��}|�|t�|D]	}|�|tj�qdS)N)r�getspall�assertIsInstance�list�struct_spwd)�self�entries�entry�r
�%/usr/lib/python3.10/test/test_spwd.py�
test_getspall
s
�zTestSpwdRoot.test_getspallcCs(t��}|s|�d�|dj}t�|�}|�|tj�|�|j|�|�|j|d�|�|j|j�|�|j	t
�|�|j	|d�|�|j	|j�|�|jt
�|�|j|d�|�|jt
�|�|j|d�|�|jt
�|�|j|d�|�|jt
�|�|j|d�|�|jt
�|�|j|d�|�|jt
�|�|j|d	�|�|jt
�|�|j|d
�|�t��
}t�d�Wd�n1s�wY|�t
|j�d�|�ttj�|�ttjd�|�ttj|d�zt�|�}Wnt�y	YdSw|�ttj|�dS)
Nzempty shadow password databaser��������zinvalid user namez'getspnam(): name not found')rr�skipTest�sp_namp�getspnamrr	�assertEqual�sp_nam�sp_pwdp�str�sp_pwd�	sp_lstchg�int�sp_min�sp_max�sp_warn�sp_inact�	sp_expire�sp_flag�assertRaises�KeyError�	exception�	TypeError�os�fsencode�UnicodeEncodeError)r
r�random_namer�cx�
bytes_namer
r
r�
test_getspnamsN


��zTestSpwdRoot.test_getspnamN)�__name__�
__module__�__qualname__rr2r
r
r
rr	srznon-root user requiredc@seZdZdd�ZdS)�TestSpwdNonRootc
Cs|d}z|�t��}t�|�Wd�WdS1swYWdSty=}z|�d||f�WYd}~dSd}~ww)N�binzspwd entry %r doesn't exist: %s)r(�PermissionErrorrrr)r)r
�name�cm�excr
r
r�test_getspnam_exception@s&� ��z'TestSpwdNonRoot.test_getspnam_exceptionN)r3r4r5r<r
r
r
rr6<sr6�__main__)r,�unittest�test.supportr�
import_moduler�
skipUnless�hasattrr�TestCaserr6r3�mainr
r
r
r�<module>s
�1��

Youez - 2016 - github.com/yon3zu
LinuXploit