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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python315/Lib/test/support/__pycache__/strace_helper.cpython-315.opt-1.pyc
R
>lqj�c�T�]PHs]PHs]PHs]PHs]PHs]QHGs]QHGs]QH$G
s
]QH,GsQs
\OQ2s\OQ2s\QQ	22s\Q
Q22sQsQ
s\
O*2QQk2sQsQQks\Q2sQs,QNsP!)�)�	dataclass)�cache)�support)�run_python_until_endz/usr/bin/stracez@(?P<syscall>[^(]*)\((?P<args>[^)]*)\)\s*[=]\s*(?P<returncode>.+)s-\+\+\+ exited with (?P<returncode>\d+) \+\+\+c�.`�\sQs]snU1QksQsUsP!)�StraceEventc�P:�U]6�cPg-RZ9Q$RZRZ*9Q$RZ9Q$!)��syscall�args�
returncode)�str�list)�format�
__classdict__s"��/C:\Python315\\Lib\test\support\strace_helper.py�__annotate__�StraceEvent.__annotate__s+����
�L���s�)�O���O�	��)�__name__�
__module__�__qualname__�__firstlineno__�__annotate_func__�__static_attributes__�__classdictcell__�rs@rrrs����rrc�<`�\sQs]snQsQsU1QksQsUsP!)�StraceResultc��UOOQQ2oUO2Tt,tFDo[O	U2MJ	ooSTTt,tFD[pD%fJ[UQ*UQ*O
Q2Tt,tFDpUO2MJ	toUQ*2MJ]	too!ttohttohttooh)z�Parse event_bytes data into system calls for easier processing.

This assumes the program under inspection doesn't print any non-utf8
strings which would mix into the strace output.�utf-8�surrogateescaper
r�,r)�event_bytes�decode�
splitlines�_syscall_regex�matchr�split�strip)�self�decoded_events�event�matchesr(�args&     r�events�StraceResult.events$s���
�)�)�0�0��:K�L��(�2�2�4�
�4��
� � ��'�4�	�
�;B�
�;B��U�
-�K��i�(�16�v��1D�1D�S�1I�K�1I�����1I�K��l�+�
-�:A�
�	
��	
��L��
s#� B<�C�%&C�C�%C�Cc��QoU,-oUO2FD�oUOQ6Xc�[UO2]6�cxUO]*O	Q2%cPUO]*OQ]2]*O
Q2oV7c[2V!$J�J�V!*OU2J�	U!)z�Find all "MARK <X>" writes and use them to make groups of events.

This is useful to avoid variable / overhead events, like those at
interpreter startup or when opening a file so a test can verify just
the small case under study.�	__startup�writez"MARK � z\n")	r0r
�lenr�
startswithr)�removesuffixr�append)r+�current_section�sectionsr-s&   rr;�StraceResult.sections4s���&��#�R�(���[�[�]�E��}�}��'�C��J�J�- �"#�-$�(-�
�
�1�
�(@�(@��(K�(K�#(�*�*�Q�-�"5�"5���#��#�+�|�F�3� �"�2�04��H�-�3��)�0�0��7�#��rc�X:�U]6�cPg-RZ9Q$RZ9Q$RZ9Q$RZ9Q$RZ9Q$!)r	�strace_returncode�python_returncoder$�stdout�stderr)�int�bytes)rrs"�rr�StraceResult.__annotate__sB�������������
�M��
�M�rr)	rrrrr0r;rrrrs@rrrs����
F�
� �7�rrc��UOQ7cQUO]*7cP	!UOQ7cP	!P
!)�mmap�MAP_ANON)rF�mmap2)�munmap�mprotect)r
r)�calls&r�_filter_memory_callrLJs6���|�|�(�(�Z�4�9�9�Q�<�-G���|�|�-�-��rc�Z�STt,tFDo[U2%cJUMJ	to!ttoh)z�Filter out memory allocation calls from File I/O calls.

Some calls (mmap, munmap, etc) can be used on files or to just get a block
of memory. Use this function to filter out the memory related calls from
other calls.)rL)�syscallsrKs& r�
filter_memoryrOVs&��&�G�X�T�-@��-F�D�D�X�G�G��Gs�(�(c��`
�Pn
U
1Qko[Q[OU2[,U*Q5vn
oU%c$R
O
%cR
O
U2R
OO2oUOQ]2o[U2]6wc
UQUQP2![OU]*2oU%fUQU]*Q*2![UQ	*2o	U%cU	%cR
O
U2[R
O
U	U]*R
OR
OQ
5![coSQS2tPo=!Po=hh9h)z`Run strace and return the trace.

Sets strace_returncode and python_returncode to `-1` on error.c	�:�[PPQUQU8Q0OQ2R%c
ROLQR%cROQ5!QQ5!)�zerror(z	,details=z) = -1r!r�r>r?r$r@rA)r�encode�out�err)�reason�details�ress&&�r�_make_error�"strace_python.<locals>._make_errorgsV���� � �!�&���7�+�V�D�K�K�G�T�!�3�7�7�s�!�3�7�7�,�	,�
(+�,�	,rz-c)�__run_using_commandzCaught OSError�
z)Expected strace events and exit code linez)Expected to find returncode in last line.:N�2NrrSi���)r�textwrap�dedent�_strace_binary�OSError�rc�failrVr*�rsplitr6�_returncode_regexr(rBrrU)�code�strace_flags�checkrZ�cmd_linerV�stripped�output�returncode_matchr?rYs&&&       @r�
strace_pythonrn`s@���
�C�,�2�,���O�O�D�!�!/� 0�<� ?�
�
��X�
�����������w�w�}�}��H�
�_�_�U�A�
&�F�
�6�{�a���F�#�C�D�>�+�	+�)�.�.�v�a�y�9����F�!�!�9�S�>�+�	+��,�\�:�;���"�������#�&�&�*;�$*�1�I�"�w�w�"�w�w�	(�(��-�2��+�S�1�1��2�s#�1E�	E1�E1�E,�&E1�,E1c���[OU2o[OU2o[OU2oQUQUQUQ0o[VA2oUO2oUQ*!)z#
print("MARK prelude", flush=True)
z 
print("MARK code", flush=True)
z#
print("MARK cleanup", flush=True)
z*
print("MARK __shutdown", flush=True)
    rg)r_r`rnr;)rgrh�prelude�cleanup�to_run�trace�all_sectionss&&&&   r�
get_eventsru�s{���o�o�g�&�G��?�?�4� �D��o�o�g�&�G���	�
�����	�
�
�F�
�&�/�E��>�>�#�L����rc��[VV#Q5oU%c[U2oSTt,tFDpfOMJ	to!ttoh)z=Get the syscalls which a given chunk of python code generates)rprq)rurOr
)rgrhrprq�
ignore_memoryr0�evs&&&&&  r�get_syscallsry�s7����G�
M�F���v�&��!'�(��2�J�J��(�(��(s�>c�n�[QQ,P
Q5oUO]6XcUO]6XcP	!P
!)zimport sys; sys.exit(0)z--trace=%process)ri)rnr>r?)rYs r�_can_stracer{�s;��
�1�+�,�#�%�C�����!�c�&;�&;�q�&@��rc�V�[OQ6wc[OQ2!Q[O
7c[OQ2![OP	P	Q5%c[OQ2![O[2Q2!)�linuxzLinux only, requires strace.�
LD_PRELOADz;Not supported when LD_PRELOAD is intercepting system calls.)�address�memoryz;LeakSanitizer does not work under ptrace (strace, gdb, etc)zRequires working strace)
�sys�platform�unittest�skip�os�environr�check_sanitizer�
skipUnlessr{rrr�requires_stracer��su��
�|�|�w���}�}�;�<�<��r�z�z�!�
�}�}�Z�[�[����t�D�9�9��}�}�Z�[�[����{�}�.G�H�Hr)T)�r�T)rOruryr�rnrr)�rer�r_r�r��dataclassesr�	functoolsr�testr�test.support.script_helperrra�compiler'rfrrrLrO�requires_subprocessrnruryr{r��__all__rrr�<module>r�s���	�
��	��!���;�"�����G�I���J�J�5�7��������.�.��.�`	�H�	����/(��/(�d �()�����I�";�r

Youez - 2016 - github.com/yon3zu
LinuXploit