__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
�

"j4g1����SrSSKrSSKrSSKrSSKrSSKrSSKJr SSKrSSKJ	r	 SSKJ
r
 SSKJr SSKJ
r
 SSKJr SS	KJr SS
KJr SSKJr SSKJr SS
KJr SSKJr SSKJr SSKJr SSKJr SSKJr SSKJr SSKJr SSKJr SSKJr SSKJr SSKJr SSKJ r  SSKJ!r! SSKJ"r" SSKJ#r# SSKJ$r$ SSKJ%r% SSKJ&r& \(aS r"S!r'"S"S#\5r(\#\RR"\S$5\RR"\=(a \
(+S%5"S&S'\(5555r*\RR"\S(5"S)S*\*55r+"S+S,\(5r,\-S-:XaSS.K.J/r/ \/"\05 gg)/a:	Notes about unicode handling in psutil
======================================.

Starting from version 5.3.0 psutil adds unicode support, see:
https://github.com/giampaolo/psutil/issues/1040
The notes below apply to *any* API returning a string such as
process exe(), cwd() or username():

* all strings are encoded by using the OS filesystem encoding
  (sys.getfilesystemencoding()) which varies depending on the platform
  (e.g. "UTF-8" on macOS, "mbcs" on Win)
* no API call is supposed to crash with UnicodeDecodeError
* instead, in case of badly encoded data returned by the OS, the
  following error handlers are used to replace the corrupted characters in
  the string:
    * Python 3: sys.getfilesystemencodeerrors() (PY 3.6+) or
      "surrogatescape" on POSIX and "replace" on Windows
    * Python 2: "replace"
* on Python 2 all APIs return bytes (str type), never unicode
* on Python 2, you can go back to unicode by doing:

    >>> unicode(p.exe(), sys.getdefaultencoding(), errors="replace")

For a detailed explanation of how psutil handles unicode see #1040.

Tests
=====

List of APIs returning or dealing with a string:
('not tested' means they are not tested to deal with non-ASCII strings):

* Process.cmdline()
* Process.connections('unix')
* Process.cwd()
* Process.environ()
* Process.exe()
* Process.memory_maps()
* Process.name()
* Process.open_files()
* Process.username()             (not tested)

* disk_io_counters()             (not tested)
* disk_partitions()              (not tested)
* disk_usage(str)
* net_connections('unix')
* net_if_addrs()                 (not tested)
* net_if_stats()                 (not tested)
* net_io_counters()              (not tested)
* sensors_fans()                 (not tested)
* sensors_temperatures()         (not tested)
* users()                        (not tested)

* WindowsService.binpath()       (not tested)
* WindowsService.description()   (not tested)
* WindowsService.display_name()  (not tested)
* WindowsService.name()          (not tested)
* WindowsService.status()        (not tested)
* WindowsService.username()      (not tested)

In here we create a unicode path with a funky non-ASCII name and (where
possible) make psutil return it back (e.g. on name(), exe(), open_files(),
etc.) and make sure that:

* psutil never crashes with UnicodeDecodeError
* the returned path matches
�N)�closing)�BSD)�POSIX)�WINDOWS)�PY3)�super)�u)�APPVEYOR)�ASCII_FS)�
CI_TESTING)�HAS_CONNECTIONS_UNIX)�HAS_ENVIRON)�HAS_MEMORY_MAPS)�INVALID_UNICODE_SUFFIX)�PYPY)�
TESTFN_PREFIX)�UNICODE_SUFFIX)�PsutilTestCase)�bind_unix_socket)�chdir)�copyload_shared_lib)�
create_py_exe)�
get_testfn)�
safe_mkdir��safe_rmpath)�	serialrun)�skip_on_access_denied)�spawn_testproc)�	terminatec�j�SSKJn U"U5$![a [R"5 gf=f)Nrr)�psutil.testsr�WindowsError�	traceback�	print_exc)�path�rms  �;/usr/lib/python3/dist-packages/psutil/tests/test_unicode.pyrrss0��	3�	"��d�8�O���	"����!�	"�s��2�2c�x�Sn[US9n[U5 [U5 [U/S9n[R
"X"S-5 [US-5 Ub[
U5 [U5 g![[4a Ub[
U5 [U5 gf=f!Ub[
U5 [U5 f=f)zXReturn True if both the fs and the subprocess module can
deal with a unicode file name.
N��suffix)�cmdz-2TF)	rrrr�shutil�copyfiler �UnicodeEncodeError�IOError)r+�sproc�testfns   r(�try_unicoder3�s���
�E�
�v�
&�F�
��F���f���F�8�,�������
�.��F�T�M�"�����e���F���
��(������e���F����
���e���F��s$�AA/�/B�?B�B�B�B9c�B^�\rSrSrSr\U4Sj5rU4SjrSrU=r	$)�BaseUnicodeTest�Nc�>�[5R5 SUlSUlURbP[UR5(dSUlg[
URS9Ul[UR5 gg)NFTr*)r�
setUpClass�
skip_tests�
funky_name�funky_suffixr3rr)�cls�	__class__s �r(r8�BaseUnicodeTest.setUpClass�sf���
��������������'��s�/�/�0�0�!%���!+�3�3C�3C�!D����c�n�n�-�(�c�z>�[5R5 UR(aURS5eg)Nzcan't handle unicode str)r�setUpr9�skipTest)�selfr=s �r(rA�BaseUnicodeTest.setUp�s*���
��
�
���?�?��-�-� :�;�;�r?�)
�__name__�
__module__�__qualname__�__firstlineno__r;�classmethodr8rA�__static_attributes__�
__classcell__)r=s@r(r5r5�s$����L��	.��	.�<�<r?r5zASCII fsztoo much trouble on PYPY2c���\rSrSrSr\rSrSrSr	Sr
Sr\R"\=(a \S5S	5r\R"\(+S
5S5r\R"\(+S
5\R"\(+S5\"5S
555rSr\R"\(+S5\R"\(+S5\R"\S5S555rSrg)�
TestFSAPIs�z1Test FS APIs with a funky, valid, UTF8 path name.c�,�[UR[5(aSO
[S5n[R
"5 [R"S5 UR[R"U5;sSSS5 $!,(df   g=f)N�.�ignore)	�
isinstancer:�strr	�warnings�catch_warnings�simplefilter�os�listdir)rC�heres  r(�expect_exact_path_match�"TestFSAPIs.expect_exact_path_match�sZ��!����#�6�6�s�A�c�F��
�
$�
$�
&��!�!�(�+��?�?�b�j�j��&6�6�'�
&�
&�s�9B�
Bc��URSS/nURU5n[R"UR5nUR5nUR
U[5 UR5(aWUR[RRU5[RRUR55 gg�Nz-czimport time; time.sleep(10))
r:r�psutil�Process�pid�exe�assertIsInstancerTr[�assertEqualrXr&�normcase)rCr,�subp�prbs     r(�
test_proc_exe�TestFSAPIs.test_proc_exe�s�������&C�D���"�"�3�'���N�N�4�8�8�$���e�e�g�����c�3�'��'�'�)�)������� � ��%�r�w�w�'7�'7����'H�
�*r?c�j�URSS/nURU5n[R"UR5R5nUR
U[5 UR5(a:URU[RRUR55 ggr^)
r:rr_r`ra�namercrTr[rdrXr&�basename)rCr,rfrks    r(�test_proc_name�TestFSAPIs.test_proc_name�s�������&C�D���"�"�3�'���~�~�d�h�h�'�,�,�.�����d�C�(��'�'�)�)����T�2�7�7�#3�#3�D�O�O�#D�E�*r?c�0�URSS/nURU5n[R"UR5nUR5nUHnUR
U[5 M UR5(aURXA5 ggr^)
r:rr_r`ra�cmdlinercrTr[rd)rCr,rfrgrp�parts      r(�test_proc_cmdline�TestFSAPIs.test_proc_cmdline�s|������&C�D���"�"�3�'���N�N�4�8�8�$���)�)�+���D��!�!�$��,���'�'�)�)����W�*�*r?c��URS-nUR[U5 [U5 [	U5 [
R"5nUR5nSSS5 URWR5[5 UR5(aURWU5 gg!,(df   N[=f�N�2)r:�
addCleanuprrrr_r`�cwdrcrTr[rd)rC�dnamergrxs    r(�
test_proc_cwd�TestFSAPIs.test_proc_cwd�s������#�%������U�+��5��
�5�\���� �A��%�%�'�C��	
���a�e�e�g�s�+��'�'�)�)����S�%�(�*�	�\�s�&B7�7
Czfails on PYPY + WINDOWSc�v�[R"5n[UR55n[	UR
S5 [UR55nSSS5 WU-
R
5RnURU[5 [(aU(dURS5$UR5(aWUR[RRU5[RRUR
55 gg!,(df   N�=f)N�rbzopen_files on BSD is broken)r_r`�set�
open_files�openr:�popr&rcrTrrBr[rdrXre)rCrg�start�newr&s     r(�test_proc_open_files�TestFSAPIs.test_proc_open_files�s����N�N����A�L�L�N�#��
�$�/�/�4�
(��a�l�l�n�%�C�)��e�� � �"�'�'�����d�C�(��3�t��=�=�!>�?�?��'�'�)�)������� � ��&����(8�(8����(I�
�*�)�
(�s�D*�*
D8z
POSIX onlyc��URURS9n[U5n[U5 [R"5RS5SnURUR[5 URURU5 SSS5 g![a# [(ae[
R"S5ef=f!,(df   g=f)Nr*�
not supported�unixr)rr;rr/r�unittest�SkipTestrr_r`�connectionsrc�laddrrTrd)rCrk�sock�conns    r(�test_proc_connections� TestFSAPIs.test_proc_connectionss������d�&7�&7��8��	9�#�D�)�D��T�]��>�>�#�/�/��7��:�D��!�!�$�*�*�c�2����T�Z�Z��.��]��"�	9��s���'�'��8�8�		9��
�]�s�B�A$C�-C�
Czcan't list UNIX socketsc��SnURURS9n[U5n[U5 [R"SS9nU"U5nURUR[5 URURU5 SSS5 g![a# [(ae[
R"S5ef=f!,(df   g=f)Nc��UHHn[RRUR5R	[
5(dMFUs $ [
S5e)Nzconnection not found)rXr&rlr��
startswithr�
ValueError)�consr�s  r(�	find_sock�2TestFSAPIs.test_net_connections.<locals>.find_socksC�����7�7�#�#�D�J�J�/�:�:�=�I�I��K���3�4�4r?r*r�r�)�kind)rr;rr/rr�r�rr_�net_connectionsrcr�rTrd)rCr�rkr�r�r�s      r(�test_net_connections�TestFSAPIs.test_net_connectionss���	5����d�&7�&7��8��	9�#�D�)�D��T�]��)�)�v�6�D��T�?�D��!�!�$�*�*�c�2����T�Z�Z��.�	�]��"�	9��s���'�'��8�8�		9��
�]�s�B�AC�-C�
Cc��URS-nUR[U5 [U5 [R
"U5 gru)r:rwrrr_�
disk_usage)rCrys  r(�test_disk_usage�TestFSAPIs.test_disk_usage's4�����#�%������U�+��5�����%� r?r�z&ctypes does not support unicode on PY2zunstable on PYPYc��[URS9nSn[R"5R	5Vs/sHo2"UR
5PM nnUVs/sHn[U;dMUPM nnURU"U5U5 UHnURU[5 M SSS5 gs snfs snf!,(df   g=f)Nr*c�z�[RR[RRU55$)N)rXr&�realpathre)rgs r(�normpath�-TestFSAPIs.test_memory_maps.<locals>.normpath5s&���w�w�'�'����(8�(8��(;�<�<r?)
rr;r_r`�memory_mapsr&r�assertInrcrT)rC�
funky_pathr��x�libpathsr&s      r(�test_memory_maps�TestFSAPIs.test_memory_maps-s���!��(9�(9�
:�j�
=�+1�.�.�*:�*F�*F�*H��*H�Q����� �*H�
��$,�B�8�a�}��/A��8�H�B��M�M�(�:�.��9� ���%�%�d�C�0�!�;�
:��
��C�;�
:�s.�)C�B8�C�B=�0B=�69C�8
C�
CrEN)rFrGrHrI�__doc__rr;r[rhrmrrrzr��skipIfrrr�rr�r
rr�r�rrr�rKrEr?r(rNrN�s��<�!�L�7�	�F�+�	)��_�_�T�%�g�'@�A�
�B�
��_�_��Y��-�/�.�/��_�_��Y��-�
�_�_�-�-�/H�I���/��J�.�/�*!��_�_��(�/�:�
�_�_��W�F�G�
�_�_�T�-�.�1�/�H�;�1r?rNzunreliable on CIc�"�\rSrSrSr\rSrSrg)�TestFSAPIsWithInvalidPathiBz-Test FS APIs with a funky, invalid path name.c��g)NTrE)rCs r(r[�1TestFSAPIsWithInvalidPath.expect_exact_path_matchHs��r?rEN)	rFrGrHrIr�rr;r[rKrEr?r(r�r�Bs��7�)�L�r?r�c��\rSrSrSr\(a\OSr\R"\
(+S5\R"\=(a \S5S55r
Srg)	�
TestNonFSAPISiRz&Unicode tests for non fs-related APIs.�èr�zsegfaults on PYPY + WINDOWSc��[RR5nURUS'UR	US9n[
R"UR5nUR5nUR5H1upEURU[5 URU[5 M3 URUSUR5 g)N�	FUNNY_ARG)�env)rX�environ�copyr;rr_r`ra�itemsrcrTrd)rCr�r1rg�k�vs      r(�test_proc_environ�TestNonFSAPIS.test_proc_environWs����j�j�o�o����,�,��K���#�#��#�,���N�N�5�9�9�%���i�i�k���I�I�K�D�A��!�!�!�S�)��!�!�!�S�)� �	
����[�)�4�+<�+<�=r?rEN)rFrGrHrIr�rrr;r�r�rrrr�rKrEr?r(r�r�RsG��0�%(�>�d�L�
�_�_��_�o�6�
�_�_�T�%�g�'D�E�>�F�7�>r?r��__main__)�
run_from_name)1r�rXr-r$r�rU�
contextlibrr_rrr�psutil._compatrrr	r"r
rrr
rrrrrrrrrrrrrrrrrr r3r5r�rNr�r�rF�psutil.tests.runnerr��__file__rEr?r(�<module>r�s-��A�F
�
�����
����� ��!�!�#�-�$�(�/��&�'�'�)��,�&�#�#�$�"�.�'�"��"�&�6<�n�<�*�	����:�&�	����!�c�'�#>�?�F1��F1�@�'��F1�R
����/�0��
��1��>�O�>�0�z��1��(��r?

Filemanager

Name Type Size Permission Actions
__init__.cpython-313.pyc File 91.2 KB 0644
__main__.cpython-313.pyc File 295 B 0644
runner.cpython-313.pyc File 17.87 KB 0644
test_aix.cpython-313.pyc File 5.58 KB 0644
test_bsd.cpython-313.pyc File 35.72 KB 0644
test_connections.cpython-313.pyc File 28.36 KB 0644
test_contracts.cpython-313.pyc File 23.74 KB 0644
test_linux.cpython-313.pyc File 138.04 KB 0644
test_memleaks.cpython-313.pyc File 34.66 KB 0644
test_misc.cpython-313.pyc File 54.59 KB 0644
test_osx.cpython-313.pyc File 11.29 KB 0644
test_posix.cpython-313.pyc File 24.29 KB 0644
test_process.cpython-313.pyc File 98.9 KB 0644
test_process_all.cpython-313.pyc File 25.5 KB 0644
test_sunos.cpython-313.pyc File 2.33 KB 0644
test_system.cpython-313.pyc File 56.49 KB 0644
test_testutils.cpython-313.pyc File 29.34 KB 0644
test_unicode.cpython-313.pyc File 17.55 KB 0644
test_windows.cpython-313.pyc File 57.12 KB 0644
Filemanager