403Webshell
Server IP : 178.105.222.151  /  Your IP : 216.73.216.38
Web Server : nginx/1.28.3
System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.5.4
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3.14/test/support/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3.14/test/support/__pycache__/strace_helper.cpython-314.pyc
+
��3j���R�^RIt^RIt^RIt^RIt^RIt^RIHt^RIHt^RI	H
t
^RIHtRt
]P!R4t]P!R4t]!R	R
44t]!RR44tR
tRt]
P*!4RRl4tRtRRlt]R4tRt.ROtR#)�N)�	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�,a�]tRt^toV3RltRtVtR#)�StraceEventc�N<�V^8�dQh/S[;R&S[S[,;R&S[;R&#)��syscall�args�
returncode)�str�list)�format�
__classdict__s"��1/usr/lib/python3.14/test/support/strace_helper.py�__annotate__�StraceEvent.__annotate__s+����
�L���s�)�O���O�	��N)�__name__�
__module__�__qualname__�__firstlineno__�__annotate_func__�__static_attributes__�__classdictcell__�rs@rrrs����rrc�:a�]tRt^toRtRtV3RltRtVtR#)�StraceResultc��VPPRR4pVP4Uu.uFp\P	V4NK	ppVUUu.uFZqD'gK\VR,VR,P
R4Uu.uFqUP4NK	upVR,4NK\	upp#uupiuupiuuppi)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�surrogateescaperr�,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#�B8�	C�"'C�	B=�!C�=Cc��RpV./pVP4F�pVPR8Xd�\VP4^8�dxVP^,P	R4'dPVP^,PR^4^,P
R4pW9d\4W!&K�K�W!,PV4K�	V#)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")	r1r�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�V<�V^8�dQh/S[;R&S[;R&S[;R&S[;R&S[;R&#)r
�strace_returncode�python_returncoder%�stdout�stderr)�int�bytes)rrs"�rr�StraceResult.__annotate__sB�������������
�M��
�M�rrN)	rrrrr1r<rrrrs@rr r s����
F�
� �7�rr c��VPR8XdRVP^,9dR#VPR9dR#R#)�mmap�MAP_ANONTF)�munmap�mprotect)rr)�calls&r�_filter_memory_callrLJs5���|�|�v��*��	�	�!��"<���|�|�-�-��rc�V�VUu.uFp\V4'dKVNK	up#uupi)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��a
�Ro
V
3Rlp\R\P!V4\.V,R7wo
pT'd$S
P
'dS
P
T4S
PP4pTPR^4p\T4^8wd
T!RTRR4#\PT^,4pT'gT!RT^,R	,4#\TR
,4p	T'dT	'dS
P
T4\S
P
T	T^,S
PS
PR7# \dpT!RT4uRp?#Rp?ii;i)
z`Run strace and return the trace.

Sets strace_returncode and python_returncode to `-1` on error.Nc	�<�\RRRVRV:R2PR4S'd
SPMRS'dSPR7#RR7#)�zerror(z	,details=z) = -1r"r�r?r@r%rArB���)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�failrWr+�rsplitr7�_returncode_regexr)rCr rV)�code�strace_flags�checkr[�cmd_linerW�stripped�output�returncode_matchr@rZs&&&       @r�
strace_pythonro`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�E0�E+�%E0�+E0c���\P!V4p\P!V4p\P!V4pRVRVRVR2p\WA4pVP4pVR,#)z#
print("MARK prelude", flush=True)
z 
print("MARK code", flush=True)
z#
print("MARK cleanup", flush=True)
z*
print("MARK __shutdown", flush=True)
    rh)r`raror<)rhri�prelude�cleanup�to_run�trace�all_sectionss&&&&   r�
get_eventsrv�s{���o�o�g�&�G��?�?�4� �D��o�o�g�&�G���	�
�����	�
�
�F�
�&�/�E��>�>�#�L����rc��\WW#R7pV'd\V4pVUu.uFqfPNK	up#uupi)z=Get the syscalls which a given chunk of python code generates)rqrr)rvrOr)rhrirqrr�
ignore_memoryr1�evs&&&&&  r�get_syscallsrz�s7����G�
M�F���v�&��!'�(��2�J�J��(�(��(s�<c��\RR.RR7pVP^8Xd1VP^8Xd VP4'gQR4hR#R#)zimport sys; sys.exit(0)z--trace=%processF)rjz!Should have parsed multiple callsT)ror?r@r1)rZs r�_can_stracer|�sQ��
�1�+�,�#�%�C�����!�c�&;�&;�q�&@��z�z�|�|�@�@�@�|��rc�T�\PR8wd\P!R4#R\P
9d\P!R4#\P!RRR7'd\P!R4#\P!\4R4#)�linuxzLinux only, requires strace.�
LD_PRELOADz;Not supported when LD_PRELOAD is intercepting system calls.T)�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)rOrvrzr�rorr )�rer�r`r�r��dataclassesr�	functoolsr�testr�test.support.script_helperrrb�compiler(rgrr rLrO�requires_subprocessrorvrzr|r��__all__rrr�<module>r�s���	�
��	��!���;�"�����G�I���J�J�5�7��������.�.��.�`	�H�	����/(��/(�d �()�����I�";�r

Youez - 2016 - github.com/yon3zu
LinuXploit