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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/cloudinit/__pycache__/subp.cpython-314.pyc
+
��ir1��6�Rt^RIt^RIt^RIt^RIt^RIHt^RIHt^RI	H
t
HtHt^RI
Ht]P!]4t]P$!RRR.4tR	t!R
R]4tRR
ltRRRRRRRRRRRRRRRRRR/	RRlltR!RltR!RRlltRtR"R ltR#)#z9Common utility functions for interacting with subprocess.N)�ENOEXEC)�
TextIOWrapper)�List�Optional�Union)�performance�
SubpResult�stdout�stderrc�^�.p.p.pVF�p\V\4'd7V^,fVR,pMV^,V8wdVP^V4M^\V\4'd-VP	VR24'gVPV4MVP\V44K�VPV4K�	V'd(\PRVVRPV44V'd,\RPVRPV4R74hV#)acEnsure user-provided commands start with base_command; warn otherwise.

Each command is either a list or string. Perform the following:
   - If the command is a list, pop the first element if it is None
   - If the command is a list, insert base_command as the first element if
     not present.
   - When the command is a string not starting with 'base-command', warn.

Allow flexibility to provide non-base-command environment/config setup if
needed.

@commands: List of commands. Each command element is a list or string.

@return: List of 'fixed up' commands.
@raise: TypeError on invalid config item type.
��NN� z Non-%s commands in %s config:
%s�
zHInvalid {name} config. These commands are not a string or list:
{errors})�name�errors)�
isinstance�list�insert�str�
startswith�append�LOG�warning�join�	TypeError�format)�base_command�commands�warningsr�fixed_commands�commands&&    �0/usr/lib/python3/dist-packages/cloudinit/subp.py�prepend_base_commandr#s��"�H�
�F��N����g�t�$�$��q�z�!�!�"�+�����|�+����q�,�/��
���
%�
%��%�%���a�&8�9�9�����(���M�M�#�g�,�'�����g�&������/����I�I�h��		
���
B�BH�&�!�$�)�)�F�*;�CI�C�
�	
���c�Na�]tRt^FtoRtRtR	RltRtR
V3RlRlltRt	Vt
R#)�ProcessExecutionErrorzr%(description)s
Command: %(cmd)s
Exit code: %(exit_code)s
Reason: %(reason)s
Stdout: %(stdout)s
Stderr: %(stderr)s�-Nc��T;'g
VPVnV'dWPnM"V'gV\8Xd	RVnMRVn\	V\
4'dTMVPVnV'gVf
VPMTVnMVPV4VnV'gVf
VPMTVn	MVPV4Vn	T;'g
VPVn
V'dWpnVPRVPVP4RVPVP4RVPVP4RVPVP4RVPVP4RVPVP4/,p\PW4R#)	z(Exec format error. Missing #! in script?z'Unexpected error while running command.N�description�cmd�	exit_coder	r
�reason)�
empty_attrr*r)rr�intr+r
�_indent_textr	r,�errno�MESSAGE_TMPL�_ensure_string�IOError�__init__)	�selfr	r
r+r*r)r,r0�messages	&&&&&&&& r"r4�ProcessExecutionError.__init__Qs`���)�)�$�/�/����*���u��/�I�D��H�D��$�I�s�3�3�I����	
���-3�^�$�/�/��D�K��+�+�F�3�D�K��-3�^�$�/�/��D�K��+�+�F�3�D�K��/�/��������J��#�#��4�.�.�t�/?�/?�@��4�&�&�t�x�x�0���,�,�T�^�^�<��d�)�)�$�+�+�6��d�)�)�$�+�+�6��d�)�)�$�+�+�6�
'
�
��	����'r$c�R�\V\4'dVP4#T#)z!
if data is bytes object, decode
�r�bytes�decode)r5�texts&&r"r2�$ProcessExecutionError._ensure_string�s!��!+�4�� 7� 7�t�{�{�}�A�T�Ar$c�R<�V^8�dQhRS[S[S[3,RS[S[S[3,/#)�r<�return)rrr:)r�
__classdict__s"�r"�__annotate__�"ProcessExecutionError.__annotate__�s3���N�N��#�u�*�%�N�	�s�E�z�	�Nr$c���\V\4'g0VPR4PRRRV,,4#VPR4PRRRV,,4#)z�
indent text on all but the first line, allowing for easy to read output

remove any newlines at end of text first to prevent unneeded blank
line in output
rr�
� )rr:�rstrip�replace)r5r<�indent_levels&&&r"r/�"ProcessExecutionError._indent_text�s]���$��&�&��;�;�t�$�,�,�T�4�#��:L�3L�M�M��{�{�5�!�)�)�%����9L�1L�M�Mr$)r*r)r0r+r,r
r	)NNNNNNN)�)�__name__�
__module__�__qualname__�__firstlineno__r1r-r4r2r/�__static_attributes__�__classdictcell__)rAs@r"r&r&Fs4����	���J�-(�^B�N�N�Nr$r&c�r�V^8�dQhR\\\,\\,3,/#)r?�args)rrrr:)rs"r"rBrB�s%����5��c��D��K�)?�#@�r$c��VFSp\V\4'dK\VR4'dK/\P	RV4\VRV2R7h	R#)z�check argument types to ensure that subp() can run the argument

Throw a user-friendly exception which explains the issue.

args: list of arguments passed to subp()
raises: ProcessExecutionError with information explaining the issue
�encodezRunning invalid command: %szRunning invalid command: )r*r,N)rr:�hasattrrrr&)rS�	components& r"�raise_on_invalid_commandrX�sP���	��9�e�,�,��	�8�0L�0L��K�K�5�t�<�'��#<�T�F�!C��
�	r$�data�rcs�captureT�shellF�	logstringr;rH�
update_env�cwd�timeoutc��V^8�dQhR\\\\\,\\,3,R\/#)r?rSr@)rrr:rr)rs"r"rBrB�s8��A �A �
��U�D��I�t�E�{�2�
3�A ��A r$c	�a�Vf^.p\PP4p
V'dV
PV4\PRV'dTMTVVV4RpRpV'd!\Pp\PpVf\Pp
M6\Pp
\V\4'gVP4p\V\4'dTpMk\V\4'dVPR4pMC\V4VUu.uF,p\V\4'dTMVPR4NK.	pp\P!RP!V'dTMT44;_uu_4\P"!VVVV
V
VVR7pVP%WR7wppRRR4S'dRT3R
llpT!X4pT!X4pXP,pTT9d\)XXTTR7h\/XX4#uupi +'giLc;i \&d;p\)TTTP*S'dRMRS'd	RR	7ThRR	7ThRp?ii;i)
a`Run a subprocess.

:param args: command to run in a list. [cmd, arg1, arg2...]
:param data: input to the command, made available on its stdin.
:param rcs:
    a list of allowed return codes.  If subprocess exits with a value not
    in this list, a ProcessExecutionError will be raised.  By default,
    data is returned as a string.  See 'decode' parameter.
:param capture:
    boolean indicating if output should be captured.  If True, then stderr
    and stdout will be returned.  If False, they will not be redirected.
:param shell: boolean indicating if this should be run with a shell.
:param logstring:
    the command will be logged to DEBUG.  If it contains info that should
    not be logged, then logstring will be logged instead.
:param decode:
    if False, no decoding will be done and returned stdout and stderr will
    be bytes.  Other allowed values are 'strict', 'ignore', and 'replace'.
    These values are passed through to bytes().decode() as the 'errors'
    parameter.  There is no support for decoding to other than utf-8.
:param update_env:
    update the environment for this command with this dictionary.
    this will not affect the current processes os.environ.
:param cwd:
    change the working directory to cwd before executing the command.
:param timeout: maximum time for the subprocess to run, passed directly to
    the timeout parameter of Popen.communicate()

:return
    if not capturing, return is (None, None)
    if capturing, stdout and stderr are returned.
        if decode:
            entries in tuple will be string
        if not decode:
            entries in tuple will be bytes
NzFRunning command %s with allowed return codes %s (shell=%s, capture=%s)�utf-8zRunning {!r})r	r
�stdin�envr\r_)r`r'�-)r*r,r0r	r
c�X<�\V\4'dVPVS4#T#�Nr9)rY�mr;s&&�r"�ldecode�subp.<locals>.ldecodes%���-7��e�-D�-D�4�;�;�q�&�)�N�$�Nr$)r	r
r+r*)rc)�os�environ�copy�updater�debug�
subprocess�PIPE�DEVNULLrr:rUrrXr�Timedr�Popen�communicate�OSErrorr&r0�
returncoder)rSrYrZr[r\r]r;r^r_r`rer	r
rd�
bytes_args�x�sp�out�err�erj�rcs&$$$$$d$$$            r"�subpr��s4���d�{��c��
�*�*�/�/�
�C���
�
�:���I�I�	"��	�D��
��
��F�
�F�����������|��"�"�������$��&�&��;�;�=�D��$�����
�	�D�#�	�	��[�[��)�
� ��&�FJ�
�FJ���A�u�%�%�A�1�8�8�G�+<�<�d�	�
��
�
�
��!�!�y�)�d�C�
�
��!�!���������B��~�~�d�~�<�H�C��
�*�	O��c�l���c�l��	���B�	��}�#��s�b�d�
�	
��c�3����M
�
�
����#����'�'� �3�d� �3�
��
	�
'+�
��
	���sH�*2H�"H7�H7�3H$�	H7�$H4	�/H7�4H7�7I<�$I7�'I7�7I<c��VR9dRpMc\V\4'g\RV24h\PPV4pVP
R4'd
VR,pV'gV#\V4'dV^,R8XdVR,pK*\PPW4#)N�/zUnexpected input for target: z//r)N�)	rr�
ValueErrorrl�path�abspathr�lenr)�targetr�s&&r"�target_pathr�)s���
�����
���
$�
$��8���A�B�B�������(�����T�"�"��B�Z�F���
��d�)�)��Q��3���B�x��
�7�7�<�<��%�%r$c�:�V^8�dQhR\\,/#)r?r@)rr)rs"r"rBrB>s������
�r$c���\V4p\PPV9d\	\W 44'dV#Vf�\P
P
RR4P\P4Uu.uFq3PR4NK	ppVR8XdTM)VUu.uFq3PR4'gKVNK	uppVUu.uF"p\PPV4NK$	ppVFKp\PPPWP34p\	\W&44'gKIVu#	R#uupiuupiuupi)N�PATHr��"r�)
r�rlr��sep�is_exerm�get�split�pathsep�striprr�r)�program�searchr��p�pathsr��ppaths&&&    r"�whichr�>s��
��
 �F�	�w�w�{�{�g��&��V�)E�"F�"F���
�~�"$�*�*�.�.���"<�"B�"B�2�:�:�"N�
�"N�Q�G�G�C�L�"N�	�
��s�]�E�E�(O�E�q�\�\�#�=N���E�(O�	�+1�
1�&�Q�b�g�g�o�o�a� �&�F�
1�������� � �$��1���+�f�,�-�-��L��
��
��)P��2s�
E�2E�E�(E#c��\PPV4;'d&\P!V\P4#rh)rlr��isfile�access�X_OK)�fpaths&r"r�r�Ys,��
�7�7�>�>�%� �>�>�R�Y�Y�u�b�g�g�%>�>r$c
��V'd(\PPV4'gR#.p.pVf.pMG\V\4'd\	V4.pM$\V\
4'dTpM\
R4h\\P!V44F�p\PPW4p\V4'd)VPV4\WW.,RR7K[\PP!V4'd\P#RV4K�\PRV4K�	V'dAV'd7\%R\'V4RRPV4R	\'V4R
24hR#R# \d3p\PT4TPT4Rp?EK4Rp?ii;i)Nz%exe_prefix must be None, str, or listF)r[zjskipping %s as its not executable or the underlying file system is mounted without executable permissions.zNot executing special file [%s]z
Runparts: z failures (�,z) in z attempted commands)rlr��isdirrrrr�sorted�listdirrr�rr�r&rrpr�r�RuntimeErrorr�)	�dirp�
skip_no_exist�
exe_prefix�failed�	attempted�prefix�exe_name�exe_pathr~s	&&&      r"�runpartsr�^so���R�W�W�]�]�4�0�0��
�F��I�����	�J��	$�	$��j�/�"��	�J��	%�	%����?�@�@��2�:�:�d�+�,���7�7�<�<��/���(������X�&�
(��V�j�(�%�8��W�W�^�^�H�
%�
%��K�K�*��	
�
�I�I�7��B�#-�&�)����V��
�[����&�1A�0B�%��9�~��1�
3�
�	
��v��)�
(��	�	�!���
�
�h�'�'��
(�s�&F�G�(&G�G)NN)TN)�__doc__�collections�loggingrlrqr0r�ior�typingrrr�	cloudinitr�	getLoggerrLr�
namedtuplerr#r3r&rXr�r�r�r�r��r$r"�<module>r�s���?���	����(�(�!�
����!��
�
#�
#�L�8�X�2F�
G�
�0�fKN�G�KN�\�"A �
�A �	
�	A �

�A ��
A ��A ��A ��A �	
�A �
�A �H&�*�6?�
'
r$

Youez - 2016 - github.com/yon3zu
LinuXploit