Hacked By AnonymousFox

Current Path : /opt/cloudlinux/venv/lib64/python3.11/site-packages/pyvirtualdisplay/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib64/python3.11/site-packages/pyvirtualdisplay/__pycache__/xauth.cpython-311.pyc

�

�܋f���P�dZddlZddlZddlZGd�de��Zd�Zd�Zd�ZdS)zUtility functions for xauth.�Nc��eZdZdZdS)�
NotFoundErrorzError when xauth was not found.N)�__name__�
__module__�__qualname__�__doc__���g/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/pyvirtualdisplay/xauth.pyrrs������)�)�)�)r
rc��	tjddgtjtj���}|���\}}dS#t$rYdSwxYw)z3
    Return whether or not xauth is installed.
    �xauthz-V��stdout�stderrTF)�
subprocess�Popen�PIPE�communicate�FileNotFoundError)r
�_s  r�is_installedrsq���� �
�d�O��?��?�	
�
�
��� � �"�"���1��t�������u�u����s�AA�
A�Ac�v�tjd��}tj|�����S)z6
    Generate a cookie string suitable for xauth.
    �)�os�urandom�hashlib�md5�	hexdigest)�datas r�generate_mcookier !s-���:�b�>�>�D��;�t���&�&�(�(�(r
c��tjdgt|��ztjtj���}|���\}}dS)z)
    Call xauth with the given args.
    r
rN)rr�listrr)�argsr
rs   r�callr$)sP��
��	�	�D��J�J������	
�
�
�E������D�A�q�q�qr
)	rrrr�	Exceptionrrr r$r	r
r�<module>r&s���"�"�����	�	�	�	�����*�*�*�*�*�I�*�*�*����,)�)�)�
�
�
�
�
r

Hacked By AnonymousFox1.0, Coded By AnonymousFox