HEX
Server: LiteSpeed
System: Linux us-phx-web1284.main-hosting.eu 4.18.0-553.109.1.lve.el8.x86_64 #1 SMP Thu Mar 5 20:23:46 UTC 2026 x86_64
User: u300739242 (300739242)
PHP: 8.2.30
Disabled: system, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
Upload Files
File: //opt/alt/python311/lib/python3.11/site-packages/pyroute2/remote/__pycache__/shell.cpython-311.pyc
�

�;f$���ddlZddlZddlZddlZddlZddlmZddlmZddl	m
Z
mZeje
��ZGd�dee
��ZdS)�N)�RTNL_API)�MarshalRtnl)�RemoteSocket�	Transportc�D��eZdZ�fd�Zd�Zd�Zejfd�Zd�Z	�xZ
S)�ShellIPRc���||_d|z}tj|���dtjtj���|_t
|jj��}t
|jj��}	tt|���||��n##t$r|�
���wxYwtj|j
��t!��|_dS)Nz%s python -m pyroute2.remoter)�bufsize�stdin�stdout)�target�
subprocess�Popen�split�PIPE�shellrrr�superr�__init__�	Exception�close�atexit�registerr�marshal)�selfr
�cmd�trnsp_in�	trnsp_out�	__class__s     ��H/opt/alt/python311/lib/python3.11/site-packages/pyroute2/remote/shell.pyrzShellIPR.__init__s�������,�v�5���%��I�I�K�K���/��?�	
�
�
��
��T�Z�.�/�/���d�j�.�/�/�	�	��(�D�!�!�*�*�8�Y�?�?�?�?���	�	�	��J�J�L�L�L��	����	���
�#�#�#�"�}�}����s�)B.�. Cc�<�t|��|j��S�N)�typer
�rs r�clonezShellIPR.clone#s���t�D�z�z�$�+�&�&�&�c���ttd��rtj|j��dS	tj�|jdif��dS#t$rYdSwxYw)N�
unregister�)�hasattrrr'r�
_exithandlers�remove�
ValueErrorr#s r�_cleanup_atexitzShellIPR._cleanup_atexit&sz���6�<�(�(�	���d�j�)�)�)�)�)�
��$�+�+�T�Z��R�,@�A�A�A�A�A���
�
�
����
���s�'A�
A)�(A)c���|���	|j�ddi��|dkr>dtjddddd|dd��dd�}|jj�|��n#t$rYnwxYw|jj	|jj	fD]}	|���#t$rY�wxYw|j
���|j
���dS)	N�stage�shutdownr�	broadcast�IHHQIQQ��)r/�data�error)
r-r�send�struct�packr�	brd_queue�putrrr�kill�wait)r�coder5rs    rrzShellIPR.close/s$��������
	��N����*� 5�6�6�6��a�x�x�(�"�K�	�2�q�!�Q��a��K�K�!����
�
�'�+�+�D�1�1�1����	�	�	��D�	�����m�)�4�>�+?�@�	�	�E�
���������
�
�
���
����	
�
�������
�������s$�A A7�7
B�B�"
B-�-
B:�9B:c��dSr!r(r#s r�	post_initzShellIPR.post_initGs���r%)�__name__�
__module__�__qualname__rr$r-�errno�
ECONNRESETrr@�
__classcell__)rs@rrrs��������%�%�%�%�%�('�'�'�����)�����0
�
�
�
�
�
�
r%r)rrD�loggingr8r�pyroute2.iprouter�pyroute2.netlink.rtnl.iprsocketr�pyroute2.remote.transportrr�	getLoggerrA�logrr(r%r�<module>rMs���
�
�
�
���������
�
�
�
�����%�%�%�%�%�%�7�7�7�7�7�7�=�=�=�=�=�=�=�=��g���!�!��:
�:
�:
�:
�:
�x��:
�:
�:
�:
�:
r%