403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.146
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/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python315/Lib/test/__pycache__/test_dtrace.cpython-315.opt-1.pyc
R
>lqj�Dc��]PHs]PHs]PHs]PHs]PHs]PHs]PHs]PH s]PH$s	]PH(s
]QH,Gs]QH4GsGs\O %f\
O"Q2g\O$Q2%f\
O"Q2gQsQs\\Q29%c
\\Q	2sQ
sQsQsQ
Q2sQQ\2sQQ\2sQQ\2sQQ\
O<2s\
O@\Q2QQ22s!QQ\!\
O<2s"QQ\!\
O<2s#QQ\!\
O<2s$Q Q!\!\
O<2s%Q"Q#\!\
O<2s&Q$Q%\!\
O<2s'Q&Q'\
O<2s(\)Q(6Xc\
OT2P!P!))�)�support)�findfile�
MS_WINDOWSztest module requires subprocess�WITH_DTRACEz9CPython must be configured with the --with-dtrace option.c�X�[OO[UQQ52!)�
dtracedata)�subdir)�os�path�abspathr)�filenames&�%C:\Python315\\Lib\test\test_dtrace.pyrrs��
�7�7�?�?�8�H�\�B�C�C�c�`�[OQPU2oUO2Tt,tFDPoU%fJ
UOQ2%cJ&UOQ2%cJ?UO	Q2MJR	ooUOQQ5STt,tFDp]*MJ
	oo,oSFD,o[OQQU2oUO
U2J.	Q	OU2!ttohttoh[[1c[Q
OS22gh9h)a=Normalize DTrace output for comparison.

DTrace keeps a per-CPU buffer, and when showing the fired probes, buffers
are concatenated. So if the operating system moves our thread around, the
straight result can be "non-causal". So we add timestamps to the probe
firing, sort by that field, then strip it from the outputz\[[0-9]+ refs\]�#�@�	c�(�[U]*2!)r)�int)�rows&r
�<lambda>�(normalize_trace_output.<locals>.<lambda>,s��C��A��Kr)�keyz/[^:]+/([^/:]+\.py)z\1�
z%tracer produced unparsable output:
{})�re�sub�
splitlines�
startswith�split�sort�append�join�
IndexError�
ValueError�AssertionError�format)�outputr�result�
normalized�lines&    r
�normalize_trace_outputr*s���V�V�&��F�
3�F�
��(�(�*�
�*���
��>�>�#�.�
�7:�~�~�c�7J�
�C�I�I�d�O�*�	�
�
	���/��0�$*�+�F�S�a�&�&�F��+��
��D��6�6�0�%��>�D����d�#���y�y��$�$��
��,��
�
�#�
��4�;�;�F�C�
�	
�
�s@�D�C7�C7�C7�/C7�D�C<�/AD�7
D�D-�D-�setsid�killpgc�T�[%cP	UQ$[OU-U@!)T�start_new_session)�USE_PROCESS_GROUP�
subprocess�Popen)�args�kwargss*,r
�create_process_groupr4=s)����&*��"�#����T�,�V�,�,rc���[%c2[OUO[O
2LUO2UO2P![cKh9h�N)	r/r	r,�pid�signal�SIGKILL�ProcessLookupError�kill�communicate)�procs&r
�kill_process_groupr>BsN����	��I�I�d�h�h����/�	
�	�	�������	"�	��	�s�/A!�!	A/�+A/�.A/c
��[[OQQ5o[OU[O
[O
P	UQ5oU9^tt^2UO2vq4PPP2UO%c9[Q[OU28QUOQW8QW802gW![c[OQ2gh9h)%fhK�9h)�C)�LC_ALL)�stdout�stderr�text�envz!Couldn't find readelf on the path�Command � failed with exit code z	: stdout=� stderr=)�dictr	�environr0r1�PIPE�OSError�unittest�SkipTestr<�
returncoder$�shlexr!)�cmdrEr=rBrCs&    r
�run_readelfrRMs���
�r�z�z�#�
&�C�	E������?�?��?�?���
��
���)�)�+���
�������u�z�z�#��)�*�"�o�o�.�/��Z�x��z�
3�
�	
��M���E���� C�D�D�E��
��s#�7C�C+�	C(�C(�+C;	�4C;	c�h`�\sQs]hsnPsPs,sQ	QksQ	QksQ	QPQP
-Qkks	Q	Qks
QsQsUs
P!)
�TraceBackendc	���[UO[VO*2[UQ*2UQ52o[[VO*Q*229^tt^2oUO2O2oPPP2VS1![O
c![
SO]*Q02gh9h)%fhWS1!9h)�.py)�script_file�python_file�optimize_pythonz
 timed outz	.expected)r*�trace_pythonr�	EXTENSIONr0�TimeoutExpiredr$�COMMAND�open�read�rstrip)�self�namerY�
actual_output�f�expected_outputs&&&   r
�run_case�TraceBackend.run_casems���	A�2�4�3D�3D�#�D�>�>�$9�:�#�D�5�L�1� /�4E�41�2�M��'�$���/�+�=�>�
?�
?�1��f�f�h�o�o�/�O�@� �/�/��
�(�(�	A� �D�L�L��O�#4�J�!?�@�@�	A��@�
?� ��/�/�s$�AB&�<C�&C�:!C�C1	�'C1	c�V�UOU,*oU%cUQU,*
oU!)�-c)r])rarW�
subcommand�commands&&& r
�generate_trace_command�#TraceBackend.generate_trace_command{s)���,�,�+��.�����j�)�)�G��r�timeout�check_returncodec��UOV2o[U[O[OP	Q5oUOUQ5vqxU%cGUO%c5[Q[OU28QUOQU802gU![Oc[S2gh9h)T�rBrC�universal_newlines�rnrFrGz	: output=)rlr4r0rK�STDOUTr<r\r>rOr$rPr!)	rarWrjrnrorkr=rB�_s	&&&$$    r
�trace�TraceBackend.trace�s����-�-�k�F��#�G�+5�?�?�+5�+<�+<�7;�=��	��(�(��(�9�I�F������ ��5�:�:�g�.�1�2"�"&�/�/�!2�)�F�:�G��
��
���(�(�	��t�$��	�s�B#�#C�7Cc���,oU%cUOQ,U*2[O[O,U*U,*2oUOV]<P	Q5!)�-O)rnro)�extendrPr!�sys�
executablerv)rarWrXrY�python_flagsrjs&&&&  r
rZ�TraceBackend.trace_python�s]����������� 8�9��Z�Z���� 0�<� ?�;�-� O�P�
��z�z�+�2�+/��1�	1rc���UO[QUO*2]
Q5oUO2oUQ6wc8[OQOUO]*U22gP![O
c,[OSO]*Q02g[[[1co[S2oPo=K�Po=hh9h)�
assert_usablersz! timed out during usability check�probe: successz{}(1) failed: {})rvrr[�stripr0r\rMrNr]�FileNotFoundError�NotADirectoryError�PermissionError�strr%)rar&�fnfes&  r
r��TraceBackend.assert_usable�s���		��Z�Z���$�.�.�(H� I�(*� �,�F��\�\�^�F��%�%��#�#�"�)�)�$�,�,�q�/�6�B��
�&��
�(�(�	��#�#��<�<��?�#�#D�E��
�"�#5��G�	���Y�F��	�s#�=B�C)�>C)�C)�C$�$C)�r6)�__name__�
__module__�__qualname__�__firstlineno__r[r]�COMMAND_ARGSrfrlrvrZr��__static_attributes__�__classdictcell__��
__classdict__s@r
rTrThsA�����I��G��L�0���T��$��&1��rrTc�r�\sQs]�sQs,QNs\OQ6Xc\O]Q2Qs	P!Qs	P!)�
DTraceBackendz.d�sunos5z-Zr�)�dtracez-qz-s)
r�r�r�r�r[r]r{�platform�insertr�r�rr
r�r��s.���I�$�G�
�|�|�x�����q�$��� rr�c�$�\sQs]�sQsQQ,sQsP!)�SystemTapBackendz.stp�stapz-gr�)r�r�r�r�r[r]r�r�rr
r�r��s���I��t�n�Grr�c�l`�\sQs]�snQsQ,sQQQQ-sQQ-s\Q2s	QQ	QQ
-s
QQksQsQ
s
UsP!)�BPFTraceBackendz.bt�bpftrace�
call_stacka}
            usdt:{python}:python:function__entry {{
                printf("%lld\tfunction__entry:%s:%s:%d\n",
                       nsecs, str(arg0), str(arg1), arg2);
            }}
            usdt:{python}:python:function__return {{
                printf("%lld\tfunction__return:%s:%s:%d\n",
                       nsecs, str(arg0), str(arg1), arg2);
            }}
        �gca�
            usdt:{python}:python:function__entry {{
                if (str(arg1) == "start") {{ @tracing = 1; }}
            }}
            usdt:{python}:python:function__return {{
                if (str(arg1) == "start") {{ @tracing = 0; }}
            }}
            usdt:{python}:python:gc__start {{
                if (@tracing) {{
                    printf("%lld\tgc__start:%d\n", nsecs, arg0);
                }}
            }}
            usdt:{python}:python:gc__done {{
                if (@tracing) {{
                    printf("%lld\tgc__done:%lld\n", nsecs, arg0);
                }}
            }}
            END {{ clear(@tracing); }}
        �
call_stack.pyc�N�QOQUO222!)rc3��SF �D6oUOQ2]*O2%fJ1Uw�	J8	P!3h)r)�	partition�isdigit)�.0r)s& r
�	<genexpr>�5BPFTraceBackend._filter_probe_rows.<locals>.<genexpr>�s2��0���0�T��~�~�d�#�A�&�.�.�0�
�D�0�s
�.A�A)r!r)r&s&r
�_filter_probe_rows�"BPFTraceBackend._filter_probe_rows�s)���y�y�
�#�.�.�0�
�
�	
raafunction__entry:call_stack.py:<module>:0
function__entry:call_stack.py:start:23
function__entry:call_stack.py:function_1:1
function__entry:call_stack.py:function_3:9
function__return:call_stack.py:function_3:10
function__return:call_stack.py:function_1:2
function__entry:call_stack.py:function_2:5
function__entry:call_stack.py:function_1:1
function__entry:call_stack.py:function_3:9
function__return:call_stack.py:function_3:10
function__return:call_stack.py:function_1:2
function__return:call_stack.py:function_2:6
function__entry:call_stack.py:function_3:9
function__return:call_stack.py:function_3:10
function__entry:call_stack.py:function_4:13
function__return:call_stack.py:function_4:14
function__entry:call_stack.py:function_5:18
function__return:call_stack.py:function_5:21
function__return:call_stack.py:start:28
function__return:call_stack.py:<module>:30z[gc__start:0
gc__done:0
gc__start:1
gc__done:0
gc__start:2
gc__done:0
gc__start:2
gc__done:1c	�f�VO7c[OQU02g[UQ*2o,oU%cUO	Q,U*2[
O,U*U,*oUOU*O[
OQ5o[QQUQ[OU2,[O[OP	Q5oUO]<Q5vq�UO&]6wc[!QUO&QU	02gUO)U2oVO*7cMUO*U*oUO-2Tt,tFD
oV�7fJUMJ	o
oQ
OU
2o[/U2oUO0U*O32oV�1![Oc[W2[!Q	2g["[$1co
[OQ
S
02gPo
=
hh9httoh)zNo bpftrace program for rVry)�pythonr��-erirqrszbpftrace timed out�bpftrace not available: zbpftrace failed with code z:
r)�PROGRAMSrMrNrrzr{r|r%r4rPr!r0rKr<r\r>r$r�r�rOr��FILTER_BY_FILENAMErr*�EXPECTEDr�)rarbrYrXr}rj�programr=rBrC�e�filter_filenamer)�filtered_linesrcres&&&             r
rf�BPFTraceBackend.run_case
s����}�}�$��#�#�&>�t�f�$E�F�F��d�U�l�+����������� 8�9��n�n�%��4��}�D�
��-�-��%�,�,�C�N�N�,�C��	D�'��T�7�D�%�*�*�Z�2H�I�!���!���#'�	�D�"�-�-�b�-�9�N�F��?�?�a�� �,�T�_�_�,=�S���I��
��(�(��0���*�*�*�"�5�5�d�;�O�!'�!2�!2�!4��!4��"�*���!4�
���Y�Y�~�.�F�.�v�6�
��-�-��-�3�3�5���/�/��3�(�(�	7��t�$� �!5�6�6�!�?�3�	D��#�#�&>�q�c�$B�C�C��	D��s1�2AG�;
H.�
H.�H+�&%H+�H+�
H&�&H+c�~�Q[OQ0o[QQUQ[O[OQQ,2,[
O[
OP	Q5oUO]
Q5vq4UO]6wc'[OQ
UOQU02gQU7c[OQ
U8QU802gP![
Oc#[W2[OQ2g[co[OQ	S02gPo=hh9h)zusdt:z?:python:function__entry { printf("probe: success\n"); exit(); }r�r�ri�passrqrsz)bpftrace timed out during usability checkr�zbpftrace(1) failed with code z: r�zbpftrace(1) failed: stdout=rH)r{r|r4rPr!r0rKr<r\r>rMrNrLrO)rar�r=rBrCr�s&     r
r��BPFTraceBackend.assert_usable9s1���#�.�.�)�)k�l��
	D�'��T�7�D����S�^�^�T�6�:�;�=�!���!���#'��D�"�-�-�b�-�9�N�F��?�?�a���#�#�/����/@��6�(�K��
��6�)��#�#�-�f�Z�x��z�J��
�*���(�(�	Q��t�$��#�#�$O�P�P��	D��#�#�&>�q�c�$B�C�C��	D�s$�A)C�D<�2*D<�D<�D7�7D<r�r6)r�r�r�r�r[r]r�r��staticmethodr�r�rfr�r�r�r�s@r
r�r��sw�����I��l�G�	�	�	
���H�B'��8���
��
�	�.�(	
��+�H�>-0�^�rr�c�(`�\sQsQsnQsQsUsP!)�BPFTraceOutputTests�Wc�V�QoUO[OU2Q2P!)z�stdin:1-19: WARNING: found external warnings
HINT: include/vmlinux.h:1439:3: warning: declaration does not declare anything
4623214882928	gc__start:0
4623214885575	gc__done:0
z24623214882928	gc__start:0
4623214885575	gc__done:0)�assertEqualr�r�)rar&s& r
�'test_filter_probe_rows_ignores_warnings�;BPFTraceOutputTests.test_filter_probe_rows_ignores_warningsXs*����
	
����.�.�v�6�C�	
rr�)r�r�r�r�r�r�r�r�s@r
r�r�Ws����	
�	
rr�z*Tests not compliant with trace on Windows.c�V`�\sQsQsnPsPs]s\Q2sQs	Qs
QsQsQs
UsP!)�
TraceTests�dc�<�UOO2P!r6)�backendr��ras&r
�
setUpClass�TraceTests.setUpClassms�����"�"�$rc�z�UOOVOQ5vq#UOV#2P!))rY)r�rfrYr�)rarbrcres&&  r
rf�TraceTests.run_caseqs5��)-���)>�)>��"6�"6�*?�*8�&�
�����8rc�*�UOQ2P!)r��rfr�s&r
�test_function_entry_return�%TraceTests.test_function_entry_returnvs���
�
�l�#rc�N``�[,QN2o[[Q229^tt^2oUO2nPPP2UU1QkoUQ2FDoUO	UO
2J 	RO
[2U2P!)%fhK^9h)z9Ensure our call stack test hits all function call opcodesr�c�:�[RQQROQ5oUOFDOo[U[O
2%fJ%UOU6XfJ8[OU2t!	,!)z<string>�exec)�sourcer�mode�optimize)	�compilerY�	co_consts�
isinstance�types�CodeType�co_name�dis�get_instructions)�funcname�code�c�code_stringras&  ��r
�get_function_instructions�FTraceTests.test_verify_call_opcodes.<locals>.get_function_instructions�sb����+�$.� &�$(�$8�$8�:�D�
�^�^���a����0�0�Q�Y�Y�(�5J��/�/��2�2�$��Ir�start)�CALL�CALL_FUNCTION_EX�CALL_KW)�setr^rr_�discard�opnamer�)ra�opcodesrdr��instructionr�sf    @r
�test_verify_call_opcodes�#TraceTests.test_verify_call_opcodesysw����=�>��
�'�/�*�
+�
+�q��&�&�(�K�,�
	�5�W�=�K��O�O�K�.�.�/�>�	
������(�%,�
+�s�B�B$	�B$	c�*�UOQ2P!)r�r�r�s&r
�test_gc�TraceTests.test_gc�s���
�
�d�rr�)r�r�r�r��maxDiffr�rY�classmethodr�rfr�r�r�r�r�r�s@r
r�r�dsC�����G��G��O��%��%�9�
$�)�4�rr�c�*�\sQsQs\2s]sQsP!)�DTraceNormalTests�r��r�r�r�r�r�r�rYr�r�rr
r�r������o�G��Orr�c�*�\sQsQs\2s]sQsP!)�DTraceOptimizedTests�r�r�r�rr
r�r��r�rr�c�*�\sQsQs\2s]sQsP!)�SystemTapNormalTests�r��r�r�r�r�r�r�rYr�r�rr
r�r������ �G��Orr�c�*�\sQsQs\2s]sQsP!)�SystemTapOptimizedTests�r�r�r�rr
rr�rrrc�*�\sQsQs\2s]sQsP!)�BPFTraceNormalTests�r��r�r�r�r�r�r�rYr�r�rr
rr������G��Orrc�*�\sQsQs\2s]sQsP!)�BPFTraceOptimizedTests�r�rr�rr
r
r
�rrr
c�r`�\sQsQsn\Q2s\Q2sQsQs	\
OQ2sQs
UsP!)�CheckDtraceProbes�c�~�UO2vq[O%c[QUQU02P!P!)zreadelf version: �.)�get_readelf_versionr�verbose�print)�cls�readelf_major_version�readelf_minor_versions&  r
r��CheckDtraceProbes.setUpClass�s<��7:�7N�7N�7P�4���?�?�?��%�&;�%<�A�>S�=T�U�V�rc���[QQ,2o[OQU2oUe[OQU02g[UO
]22[UO
]221!)�readelfz	--versionz!^(?:GNU) readelf.*?\b(\d+)\.(\d+)z!Unable to parse readelf version: )rRr�searchrMrNr�group)�version�matchs  r
r�%CheckDtraceProbes.get_readelf_version�sg���y�+�6�7���	�	�>��H���=��#�#�&G��y�$Q�R�R��5�;�;�q�>�"�C����A��$7�7�7rc���[Oo[OQ2%Cc8[OQ2oU%c[O2%cK[
OO[
OO[O22o,o[OQ2[OQ21FD&oU%fJ
VC7fJUOU2J(	U%cTSFDLo[
OOV$2o[
OOU2%fJISoL	[QQU,2!)�Py_ENABLE_SHARED�LIBDIR�
INSTSONAME�	LDLIBRARYrz-n)
r{r|�	sysconfig�get_config_var�is_python_buildr	r
r�dirnamer r!�existsrR)ra�binary�lib_dir�	lib_namesrb�libpython_paths&     r
�get_readelf_output�$CheckDtraceProbes.get_readelf_output�s��������#�#�$6�7�7��.�.�x�8�G��i�7�7�9�9��'�'�/�/�"�'�'�/�/�#�.�.�*I�J���I��(�(��6��(�(��5����4�D�1��$�$�T�*���%�D�%'�W�W�\�\�'�%@�N��w�w�~�~�n�5�5�!/���	&��I�t�V�4�5�5rc	���UO2o,QNoSFD7oUOUQ59^tt^2UOV12PPP2J9	P!)%fhJN9h)�Name: import__find__load__done��
probe_name)r0zName: import__find__load__startzName: auditzName: gc__startzName: gc__donezName: function__entryzName: function__return�r-�subTest�assertIn)ra�readelf_output�available_probe_namesr2s&   r
�test_check_probes�#CheckDtraceProbes.test_check_probes�sS���0�0�2��!
��0�J������4�4��
�
�j�9�5�4�0�4�4�4�s�A	�A'
�A'
c	���UO2oQ,oSFD7oUOUQ59^tt^2UOV12PPP2J9	P!)%fhJN9h)z
Name: liner1r3)rar6�missing_probe_namesr2s&   r
�test_missing_probes�%CheckDtraceProbes.test_missing_probes�sX���0�0�2��
�
��.�J������4�4��
�
�j�9�5�4�.�4�4�4�s�A	�A&
�A&
r�)r�r�r�r�r�r�r�rr-r8rM�expectedFailurer<r�r�r�s@r
r
r
�sQ�����W��W��	8��	8�6�0:�"���
:��
:rr
�__main__)+r��os.pathr	rrPr8r0r{r$r�rM�testr�test.supportrr�has_subprocess_supportrNr%rr*�hasattrr/r4r>rRrTr�r�r��TestCaser��skipIfr�r�r�r�rrr
r
r��mainr�rr
�<module>rHs���
��	��
��
�����-��%�%�%�
�
�
�=�
>�>����
�.�.�
�
�
�C���
D�
�>�R��*�D�D�w�r�8�/D��-�
��6B�B�J �L� ��|��
[�l�[�|

�(�+�+�

�
����I�J�/�/�K�/�d�
�H�$5�$5��
�:�x�'8�'8��
�:�x�'8�'8��
�j�(�*;�*;��
�*�h�&7�&7��
�Z��):�):��
H:��)�)�H:�V�z���M�M�O�r

Youez - 2016 - github.com/yon3zu
LinuXploit