AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.122   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python3/dist-packages/jeepney/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /usr/lib/python3/dist-packages/jeepney/tests/__pycache__/test_fds.cpython-310.pyc
o

���`�@sbddlZddlZddlZddlZddlmZmZdefdd�Zdd�Z	dd	�Z
d
d�Zdd
�ZdS)�N)�FileDescriptor�	NoFDError�fdcCsJt�t��
}t�|�Wd�n1swY|jjtjks#J�dS)z<Check that the given number is not open as a file descriptorN)�pytest�raises�OSError�os�stat�value�errno�EBADF)r�exc_info�r�8/usr/lib/python3/dist-packages/jeepney/tests/test_fds.py�
assert_not_fd	s�rcCs�t�|dtjtjB�}t|��}|��|ksJ�Wd�n1s#wYdt|�vs0J�t�t	��|��Wd�n1sDwYt
|�dS)N�a�closed)r�open�O_CREAT�O_RDWRr�fileno�reprrrrr��tmp_pathr�wfdrrr�
test_closes
�
�rc	Cs�t�|dtj�}t|�}|��|ksJ�|��|ksJ�z1dt|�vs&J�t�t	��|��Wd�n1s:wYWt�
|�dSWt�
|�dSt�
|�w)Nr�	converted)rrrrr�	to_raw_fdrrrr�closerrrr�test_to_raw_fds
��rcCs�t�|dtjtjB�}t|�}|�d��}|�d�sJ�Wd�n1s'wYdt|�vs4J�t�	t
��|��Wd�n1sHwYt|�|d�
�dks[J�dS)Nr�w�abcr)rrrrr�to_file�writerrrrrr�	read_text)rrr�frrr�test_to_file-s�
�r&cCs�t��\}}z[|�d�|��}t|�}|���}|�d�}|r%d�|�s'J�Wd�n1s1wYdt|�vs>J�t	�
t��|��Wd�n1sRwYt
|�W|��dS|��w)Nsabcd�r)�socket�
socketpair�sendall�detachr�	to_socket�recv�
startswithrrrrrrr)�s1�s2�sfdr�sock�brrr�test_to_socket=s


�
�
r4)
rrr(r�jeepneyrr�intrrrr&r4rrrr�<module>s

Anon7 - 2022
AnonSec Team