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/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python315/Lib/test/__pycache__/test_audit.cpython-315.pyc
R
>lqj�-c�*�Qs]PHs]PHs]PHs]QHGs]QHGs]QHGs\	\Q2%c\	\Q2%f\OQ2g\OQ2sQQ	\O2s\Q
6Xc\O 2P!P!)z)Tests for sys.audit and sys.addaudithook
)�support)�
import_helper)�	os_helper�addaudithook�auditz.test only relevant when sys.audit is availablezaudit-tests.pyc�`�\sQs]snPs\O2Q2sQsQP
-Qks	Qs
QsQsQs
Q	sQ
sQsQsQ
sQsQsQsQsQsQsQs\O4Q2Q2sQsQsQsQsQs Qs!Qs"Qs#Qs$Q s%Q!s&Q"s'\OP\ORQ#22s*Q$s+Q%s,Q&s-Q's.Us/P!)(�	AuditTestc�v�[O[OQ[,UNQQ[O
[O
Q59^tt^2oUO
2V"OO2UOO21ttPPP2!)%fhP!9h)z-X utf8zutf-8�backslashreplace)�encoding�errors�stdout�stderr)
�
subprocess�Popen�sys�
executable�AUDIT_TESTS_PY�PIPE�waitr�readr
)�self�args�ps&* �$C:\Python315\\Lib\test\test_audit.py�run_test_in_subprocess� AuditTest.run_test_in_subprocesss{��
�
�
�
�^�^�Y��>��>��%��?�?��?�?�
�
��
�F�F�H��h�h�m�m�o�q�x�x�}�}��6�
�
�
�
�s�AB'�'B8	�0B8	c��UOUvq#o[OOU2[OOU2UO
%cUO
U2P!P!)N)rrr�writer
�
returncode�fail)rr�procrr
s&*   r�do_test�AuditTest.do_test!sU��#�:�:�D�A���f��
�
���� ��
�
���� ��?�?�?��I�I�f����
expect_stderrc�H�,oUOUvqEoU%c[O%c [OOU2UOUO2Tt,tFD!pwO2OQ2MJ#	toU1!ttoh)� )
rr�verboserr
rr�
splitlines�strip�	partition)rr$r�eventsr rr
�lines&$*     r�
run_python�AuditTest.run_python)s|����#�:�:�D�A���f�������J�J���V�$��O�O�5;�5F�5F�5H�I�5H�T�Z�Z�\�
#�
#�C�
(�5H�I��
�	
��Is�1)Bc�*�UOQ2P!)�
test_basic�r!�rs&rr0�AuditTest.test_basic4s�����\�"r#c�*�UOQ2P!)�test_block_add_hookr1r2s&rr5�AuditTest.test_block_add_hook7s�����*�+r#c�*�UOQ2P!)�!test_block_add_hook_baseexceptionr1r2s&rr8�+AuditTest.test_block_add_hook_baseexception:s�����8�9r#c�V�[OQ2UOQ2P!)�marshal�test_marshal�r�
import_moduler!r2s&rr<�AuditTest.test_marshal=s���#�#�I�.����^�$r#c�V�[OQ2UOQ2P!)�pickle�test_pickler=r2s&rrB�AuditTest.test_pickleBs���#�#�H�-����]�#r#c�*�UOQ2P!)�test_monkeypatchr1r2s&rrE�AuditTest.test_monkeypatchGs�����'�(r#c�H�UOQ[O2P!)�	test_open)r!r�TESTFNr2s&rrH�AuditTest.test_openJs�����[�)�"2�"2�3r#c�*�UOQ2P!)�
test_cantracer1r2s&rrL�AuditTest.test_cantraceMs�����_�%r#c�*�UOQ2P!)�	test_mmapr1r2s&rrO�AuditTest.test_mmapPs�����[�!r#c�V�[OQ2UOQ2P!)�ctypes�test_ctypes_call_functionr=r2s&rrS�#AuditTest.test_ctypes_call_functionSs���#�#�H�-����0�1r#c�V�[OQ2UOQ2P!)�_posixsubprocess�test_posixsubprocessr=r2s&rrW�AuditTest.test_posixsubprocessWs���#�#�$6�7����+�,r#c��UOQ2vqoU%fUOQU02UOQ,U2P!)�test_excepthookzExpected fatal exception
)zsys.excepthookr&zRuntimeError('fatal-error'))r-r�assertSequenceEqual�rrr+r
s&   rrZ�AuditTest.test_excepthook[sC��%)�_�_�5F�%G�"�
�F���I�I�2�6�(�;�<�� � �
C�D�f�	
r#c��[OQ2UOQ2vqoU%cUOU2UO	U]*]*Q2UO	U]*]*Q2P!)�	_testcapi�test_unraisablehookzsys.unraisablehookzDRuntimeError('nonfatal-error') Exception ignored for audit hook test)rr>r-r�assertEqualr\s&   rr`�AuditTest.test_unraisablehookdsh���#�#�K�0�%)�_�_�5J�%K�"�
�F���I�I�f��������1��';�<�����1�I�a�L�R�	
r#c��[OQ2UOQ2vqoU%cUOU2UO	U]*]*Q2UO	U]*]*Q2U]*]*oUOU2UO
QQUQ0,U]*2UO
QQUQ0,U]*2UO
QQU,U]*2P!)	�winreg�test_winregzwinreg.OpenKeyzwinreg.OpenKey/resultzwinreg.EnumKeyr&z 0z 10000zwinreg.PyHKEY.Detach)rr>r-rra�
assertTruer[)rrr+r
�expecteds&    rre�AuditTest.test_winregps����#�#�H�-�%)�_�_�]�%C�"�
�F���I�I�f��������1��'7�8�������1��'>�?��!�9�Q�<������!�� � �"2�C�H�:�R��!I�6�RS�9�U�� � �"2�C�H�:�V�9L�!M�v�VW�y�Y�� � �"8�#�x�!H�&�QR�)�Tr#c���[OQ2UOQ2vqoU%cUOU2[O
%c
[
UQQ-UOU]*]*Q2UOU]*]*Q2UOU]*]*Q2UOU]*]*Q2P!)�socket�test_socket�sep�
zsocket.gethostnamezsocket.__new__zsocket.bindz('127.0.0.1', 8080))	rr>r-rrr'�printra�assertEndsWithr\s&   rrk�AuditTest.test_socket~s����#�#�H�-�%)�_�_�]�%C�"�
�F���I�I�f���?�?�?��6�$�t�$�������1��';�<�������1��'7�8�������1��}�5����F�1�I�a�L�*?�@r#c��UOQ2vqoU%cUOU2[O%c
[	UQQ-SOSTt,tFDpD]*MJ
	to,QN2P!ttoh)�test_gcrlrm)zgc.get_objectszgc.get_referrerszgc.get_referents�r-rrr'rnra�rrr+r
�events&    rrr�AuditTest.test_gc�sd��%)�_�_�Y�%?�"�
�F���I�I�f���?�?�?��6�$�t�$����#)�*�6�%�1�X�X�6�*�F�	
��*s�A>�networkc��[OQ2UOQ2vqoU%cUOU2[O
%c
[
UQQ-UOU]*]*Q2UOU]*]*Q2UOU]*]*Q2U]*]*Q6wc#UOQU]*]*2P!P!)	zhttp.client�test_http_clientrlrmzhttp.client.connectzwww.python.org 80zhttp.client.sendz
[cannot send]�HTTP)	rr>r-rrr'rnra�assertInr\s&   r�	test_http�AuditTest.test_http�s����#�#�M�2�%)�_�_�5G�%H�"�
�F���I�I�f���?�?�?��6�$�t�$�������1��'<�=�������1��':�;�������1��'9�:��!�9�Q�<�?�*��M�M�&�&��)�A�,�/�+r#c��[OQ2oUOQ2vq#oU%cUOU2[O
%c
[
UQQ-STt,tFDpU]*MJ
	ooQQ,]*o[UOQ2%cUQQ,*
oUOVg2P!ttoh)	�sqlite3�test_sqlite3rlrmzsqlite3.connectzsqlite3.connect/handle�enable_load_extensionzsqlite3.enable_load_extensionzsqlite3.load_extension)
rr>r-rrr'rn�hasattr�
Connectionra)rrrr+r
�ev�actualrgs&       rr��AuditTest.test_sqlite3�s����-�-�i�8��%)�_�_�^�%D�"�
�F���I�I�f���?�?�?��6�$�t�$�"(�)�&�B�Q�%�%�&��)�%�'?�@�1�D���7�%�%�'>�?�?��/�(��
�H�	
����*��*s�*Cc��UOQ2vqoU%cUOU2[O%c
[	UQQ-STt,tFDpD]*U]*1MJ	ooQ,oUOVV2P!ttoh)�test_sys_getframerlrm)z
sys._getframer�rs�rrr+r
r�r�rgs&      rr��AuditTest.test_sys_getframe�st��%)�_�_�5H�%I�"�
�F���I�I�f���?�?�?��6�$�t�$�+1�2�6�R�a�5�"�Q�%�.�6��2�:�;������*��3��Bc��UOQ2vqoU%cUOU2[O%c
[	UQQ-STt,tFDpD]*U]*1MJ	ooQ,oUOVV2P!ttoh)�test_sys_getframemodulenamerlrm)zsys._getframemodulename�0rsr�s&      rr��%AuditTest.test_sys_getframemodulename�st��%)�_�_�5R�%S�"�
�F���I�I�f���?�?�?��6�$�t�$�+1�2�6�R�a�5�"�Q�%�.�6��2�4�5������*��3r�c��UOQ2vqoU%cUOU2[O%c
[	UQQ-STt,tFDpD]*U]*1MJ	oo,QNoUOVV2P!ttoh)�test_threadingrlrm))z_thread.start_new_threadz(<test_func>, (), None)�ztest.test_funcz())z_thread.start_joinable_threadz(<test_func>, 1, None)r�rsr�s&      rr��AuditTest.test_threading�su��%)�_�_�5E�%F�"�
�F���I�I�f���?�?�?��6�$�t�$�+1�2�6�R�a�5�"�Q�%�.�6��2�
��	
����*��3s�B	c�F�[OQ2UOQ2vqoU%cUOU2[O
%c
[
UQQ-STt,tFDpD]*U]*1MJ	ooQ,oUOVV2P!ttoh)�_wmi�test_wmi_exec_queryrlrm)z_wmi.exec_queryz#SELECT * FROM Win32_OperatingSystem�rr>r-rrr'rnrar�s&      rr��AuditTest.test_wmi_exec_query�s����#�#�F�+�%)�_�_�5J�%K�"�
�F���I�I�f���?�?�?��6�$�t�$�+1�2�6�R�a�5�"�Q�%�.�6��2�N�O������*��3s�*Bc��[OQ2oUOQ2vq#oU%cUOU2[O
%c[
Q,UN3QQ-UOUQQQUO01QQUOQ	01Q
QUO1QQQUOQ01QQQUO01QQQ
UOQUO01QQQUO01Q,	2P!)�syslog�test_syslogzEvents:rlz
  zsyslog.openlogr&z	python 0 z
syslog.syslogz testzsyslog.setlogmaskz test2zaudit-tests.py 0 zaudit-tests.py zNone 0 )zsyslog.closelog�r�)
rr>r-rrr'rnr[�LOG_USER�LOG_INFO�	LOG_DEBUG�
LOG_NDELAY�
LOG_LOCAL0)rr�rr+r
s&    rr��AuditTest.test_syslog�s���,�,�X�6��%)�_�_�]�%C�"�
�F���I�I�f���?�?�?��)�1�f�1�&�1�� � ����y����0A�%B�
C�
�c�f�o�o�%6�e�#<�=�
 �#�&�*:�*:�);�=�'�
�c�f�o�o�%6�f�#=�>�
�s�&7����7H�$I�J�
�s�o�f�6G�6G�5H��&�J[�J[�I\�$]�^�
�s�g�f�o�o�->�$?�@�'�
)�	
r#c�f�UOQ2vqoU%cUOU2P!P!)�test_not_in_gc�r-r�rr�_r
s&   rr��AuditTest.test_not_in_gc
s*�� $���0@� A��
�v���I�I�f��r#c��UOQQ2vqoU%cUOU2[O%c
[	UQQ-STt,tFDpD]*U]*1MJ	oo,QNoUOVV2P!ttoh)�	test_timernrlrm))�
time.sleepr�)r�z0.0625)r�z-1rsr�s&      rr��AuditTest.test_timesv��%)�_�_�[�'�%J�"�
�F���I�I�f���?�?�?��6�$�t�$�+1�2�6�R�a�5�"�Q�%�.�6��2�*��	
����*��3s�B
c��UOQQP	Q5vqoUOU]2UOQUO2P*2P!)r�r)r$zhook failed)r-�assertNotEqualr{r(r\s&   r�test_time_fail�AuditTest.test_time_failsN��%)�_�_�[�&�CG�&5�&I�"�
�F����J��*��
�
�m�V�%6�%6�%8��%<�=r#c��UOQ2vqoU%cUOU2[O%c
[	UQQ-STt,tFDpD]*U]*1MJ	ooQ,oUOVV2P!ttoh)�%test_sys_monitoring_register_callbackrlrm)z sys.monitoring.register_callbackz(None,)rsr�s&      rr��/AuditTest.test_sys_monitoring_register_callback$st��%)�_�_�5\�%]�"�
�F���I�I�f���?�?�?��6�$�t�$�+1�2�6�R�a�5�"�Q�%�.�6��2�C�D������*��3r�c�Z�[OQ2oQoUOQU2vq4oU%cUOU2[O
%c
[
UQQ-STt,tFDpf]*U]*1MJ	ooQQU8Q01,oUOVx2P!ttoh)�_winapiz+\\.\pipe\LOCAL\test_winapi_createnamed_pipe�test_winapi_createnamedpiperlrmz_winapi.CreateNamedPipe�(z, 3, 8)r�)	r�winapi�	pipe_namerr+r
r�r�rgs	&        rr��%AuditTest.test_winapi_createnamedpipe0s����,�,�Y�7��B�	�%)�_�_�5R�T]�%^�"�
�F���I�I�f���?�?�?��6�$�t�$�+1�2�6�R�a�5�"�Q�%�.�6��2�.�!�I�=��0H�I�J������*��3s�-B(c�f�UOQ2vqoU%cUOU2P!P!)�test_assert_unicoder�r�s&   rr��AuditTest.test_assert_unicode?s*�� $���0E� F��
�v���I�I�f��r#c
�2�UOQ2vqoSO[STt,tFDoQU7MJ
	to22SO[STt,tFDoQU7MJ
	to22U%cUOU2P!P!ttohttoh)�test_sys_remote_execzsys.remote_execzcpython.remote_debugger_script)r-rf�anyrrts&    rr��AuditTest.test_sys_remote_execEs���&*�_�_�5K�%L�"�
�F�����V�L�V�E�.�%�7�V�L�M�N�����TZ�[�TZ�5�=��F�TZ�[�\�]���I�I�f����M��[s�B�Bc�*�UOQ2P!)�test_import_moduler1r2s&rr��AuditTest.test_import_moduleNs�����)�*r#c�*�UOQ2P!)�test_builtin__import__r1r2s&rr�� AuditTest.test_builtin__import__Qs�����-�.r#c�*�UOQ2P!)�test_import_statementr1r2s&rr��AuditTest.test_import_statementTs�����,�-r#�)0�__name__�
__module__�__qualname__�__firstlineno__�maxDiffr�requires_subprocessrr!r-r0r5r8r<rBrErHrLrOrSrWrZr`rerkrr�requires_resourcer|r�r�r�r�r�r�r�r�r�r�r�r��support_remote_exec_only�cpython_onlyr�r�r�r��__static_attributes__�__classdictcell__)�
__classdict__s@rrrs�����G�� � �"�	7�#�	7��	
�e�	
�#�,�:�%�
$�
)�4�&�"�2�-�
�

�U�A�

�
���y�)�0�*�0�+�&
+�
+�+�$+�
�.�

+�>�
+�
+��
�%�%������&��+�/�.�.r#r�__main__)�__doc__rr�unittest�testr�test.supportrrr��SkipTest�findfiler�TestCaserr��mainr�r#r�<module>r�s�����
���&�"��s�N�#�#�7�3��+@�+@�
�
�
�L�
M�M��!�!�"2�3��C.��!�!�C.�J
�z���M�M�O�r#

Youez - 2016 - github.com/yon3zu
LinuXploit