__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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]: ~ $
�

x[h�1�
�h�SrSSKrSSKrSSKrSSKrSSKJr SSKJr SSK	J
r
JrJr SSK
JrJr \R "\5r\R&"SSS	/5rS
r"SS\5rS
\\
\\
\44SjrSSSSSSSSSS.	S
\\\\
\\
\4S\4SjjrSSjrSS\\4SjjrSrSSjrg)z9Common utility functions for interacting with subprocess.�N)�ENOEXEC)�
TextIOWrapper)�List�Optional�Union)�performance�signal_handler�
SubpResult�stdout�stderrc�2�/n/n/nUH�n[U[5(a(UScUSSnOxUSU:waURSU5 O\[U[5(a+UR	US35(dURU5 OUR[U55 M�URU5 M� U(a'[RSUUSRU55 U(a([SRUSRU5S95eU$)	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.
rN�� 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�f�\rSrSrSrSrSSjrSrSS\\	\
4S\\	\
44S	jjrS
rg)
�ProcessExecutionError�Fzr%(description)s
Command: %(cmd)s
Exit code: %(exit_code)s
Reason: %(reason)s
Stdout: %(stdout)s
Stderr: %(stderr)s�-Nc	��U=(d URUlU(aXPlO U(dU[:XaSUlOSUl[	U[
5(aUOURUlU(dUcUROUUlOURU5UlU(dUcUROUUl	OURU5Ul	U=(d URUl
U(aXplURURUR5URUR5URUR5URUR5URUR5URUR5S.-n[RX5 g)Nz(Exec format error. Missing #! in script?z'Unexpected error while running command.)�description�cmd�	exit_coderr�reason)�
empty_attrr,r+rr�intr-r�_indent_textrr.�errno�MESSAGE_TMPL�_ensure_string�IOError�__init__)	�selfrrr-r,r+r.r2�messages	         r#r6�ProcessExecutionError.__init__QsN���)�$�/�/����*���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��#�#��.�.�t�/?�/?�@��&�&�t�x�x�0��,�,�T�^�^�<��)�)�$�+�+�6��)�)�$�+�+�6��)�)�$�+�+�6�
'
�
��	����'r%c�P�[U[5(aUR5$U$)z!
if data is bytes object, decode
�r�bytes�decode)r7�texts  r#r4�$ProcessExecutionError._ensure_string�s!��!+�4�� 7� 7�t�{�{�}�A�T�Ar%r>�returnc���[U[5(d'URS5RSSSU--5$URS5RSSSU--5$)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)r7r>�indent_levels   r#r1�"ProcessExecutionError._indent_text�s]���$��&�&��;�;�t�$�,�,�T�4�#��:L�3L�M�M��{�{�5�!�)�)�%����9L�1L�M�Mr%)r,r+r2r-r.rr)NNNNNNN)�)
�__name__�
__module__�__qualname__�__firstlineno__r3r/r6r4rrr<r1�__static_attributes__�r%r#r'r'Fsk��	���J��������-(�^B�56�N��#�u�*�%�N�	�s�E�z�	�N�Nr%r'�argsc��UHNn[U[5(aM[US5(aM-[R	SU5 [USU3S9e g)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')rO�	components  r#�raise_on_invalid_commandrT�sP���	��9�e�,�,��	�8�0L�0L��K�K�5�t�<�'��#<�T�F�!C��
�	r%TFrE)	�data�rcs�capture�shell�	logstringr=�
update_env�cwd�timeoutr@c	�^�UcS/n[RR5n
U(aU
RU5 [RSU(aUOUUUU5 SnSnU(a [Rn[RnUc[Rn
O5[Rn
[U[5(dUR5n[U[5(aUnOj[U[5(aURS5nOC[U5 UVs/sH+n[U[5(aUOURS5PM- nn[R"SR!U(aUOU55 [R""UUUU
U
UUS9nUR%XS9unnSSS5 T(aS
U4SjjnU"W5nU"W5nWR,nUU;a[)WWUUS9e[/WW5$s snf!,(df   N\=f![&a2n[)UUUR*T(aSOS	T(aSS
9UeS	S
9UeSnAff=f)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
NrzFRunning command %s with allowed return codes %s (shell=%s, capture=%s)�utf-8z
Running {})rr�stdin�envrXr[)r\r)�-)r,r.r2rrc�V>�[U[5(aURUT5$U$�Nr;)rU�mr=s  �r#�ldecode�subp.<locals>.ldecodes%���-7��e�-D�-D�4�;�;�q�&�)�N�$�Nr%)rrr-r,)r^)�os�environ�copy�updater�debug�
subprocess�PIPE�DEVNULLrr<rQrrTr�Timedr�Popen�communicate�OSErrorr'r2�
returncoder
)rOrUrVrWrXrYr=rZr[r\r`rrr_�
bytes_args�x�sp�out�err�ere�rcs      `               r#�subpr{�s/���d�{��c��
�*�*�/�/�
�C���
�
�:���I�I�	"��	�D��
��
��F�
�F�����������|��"�"�������$��&�&��;�;�=�D��$�����
�	�D�#�	�	��[�[��)�
� ��&�FJ�
�FJ���A�u�%�%�A�1�8�8�G�+<�<�d�	�
��
�
�
����Y�	�D�A�
��!�!���������B��~�~�d�~�<�H�C��
�*�	O��c�l���c�l��	���B�	��}�#��s�b�d�
�	
��c�3����M
�
�
����#����'�'� �3�d� �3�
��
	�
'+�
��
	���s<�"2H�.H�-H�2H�
H�H�H�
I�#-I�Ic��US;aSnO][U[5(d[SU35e[RRU5nUR
S5(aUSSnU(dU$[U5(a)USS:Xa USSn[U5(aUSS:XaM [RRX5$)N)N��/zUnexpected input for target: z//rr)	rr�
ValueErrorrg�path�abspathr�lenr)�targetr�s  r#�target_pathr�)s���
�����
���
$�
$��8���A�B�B�������(�����T�"�"��A�B�Z�F���
��d�)�)��Q��3���A�B�x���d�)�)��Q��3��
�7�7�<�<��%�%r%c���[U5n[RRU;a[	[X 55(aU$Uc�[R
R
SS5R[R5Vs/sHo3RS5PM nnUS:XaUO)UVs/sHo3RS5(dMUPM snnUVs/sH"n[RRU5PM$ nnUHJn[RRRXP45n[	[X&55(dMHUs $ gs snfs snfs snf)N�PATHr}�"r~)
r�rgr��sep�is_exerh�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�/E�E�)Ec��[RRU5=(a% [R"U[R5$rc)rgr��isfile�access�X_OK)�fpaths r#r�r�Ys)��
�7�7�>�>�%� �>�R�Y�Y�u�b�g�g�%>�>r%c
���U(a%[RRU5(dg/n/nUc/nOE[U[5(a
[	U5/nO#[U[
5(aUnO[
S5e[[R"U55H�n[RRX5n[U5(a?URU5 [R"5 [XW/-SS9 SSS5 Mq[RR%U5(a[ R'SU5 M�[ R#SU5 M� U(a>U(a6[)S[+U5SSRU5S	[+U5S
35egg!,(df   GM=f![a2n[ R#U5 URU5 SnAGMWSnAff=f)Nz%exe_prefix must be None, str, or listF)rWzjskipping %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)rgr��isdirrrrr�sorted�listdirrr�rr	�
suspend_crashr{r'rrkr�r�RuntimeErrorr�)	�dirp�
skip_no_exist�
exe_prefix�failed�	attempted�prefix�exe_name�exe_pathrys	         r#�runpartsr�^s����R�W�W�]�]�4�0�0��
�F��I�����	�J��	$�	$��j�/�"��	�J��	%�	%����?�@�@��2�:�:�d�+�,���7�7�<�<��/���(������X�&�
(�#�1�1�3���*�,�e�<�4�3�
�W�W�^�^�H�
%�
%��K�K�*��	
�
�I�I�7��B�%-�(�)����V��
�[����&�1A�0B�%��9�~��1�
3�
�	
��v�4�3��(�
(��	�	�!���
�
�h�'�'��
(�s6�F;�4F(�F;�(
F8	�2F;�8F;�;
G7�&G2�2G7)NN)TN) �__doc__�collections�loggingrgrlr2r�ior�typingrrr�	cloudinitrr	�	getLoggerrIr�
namedtupler
r$r5r'rr<rTr{r�r�r�r�rNr%r#�<module>r�s���?���	����(�(�1�
����!��
�
#�
#�L�8�X�2F�
G�
�0�fKN�G�KN�\�5��c��D��K�)?�#@��(
���
������A �
��U�D��I�t�E�{�2�
3�A ��A �H&�*���
��6?�
(
r%

Filemanager

Name Type Size Permission Actions
__init__.cpython-313.pyc File 149 B 0644
apport.cpython-313.pyc File 9.96 KB 0644
atomic_helper.cpython-313.pyc File 4.39 KB 0644
cloud.cpython-313.pyc File 4.96 KB 0644
dmi.cpython-313.pyc File 9.85 KB 0644
event.cpython-313.pyc File 2.56 KB 0644
features.cpython-313.pyc File 1.85 KB 0644
gpg.cpython-313.pyc File 9.41 KB 0644
helpers.cpython-313.pyc File 21.72 KB 0644
importer.cpython-313.pyc File 2.82 KB 0644
lifecycle.cpython-313.pyc File 10.41 KB 0644
netinfo.cpython-313.pyc File 24.76 KB 0644
performance.cpython-313.pyc File 4.42 KB 0644
persistence.cpython-313.pyc File 3.04 KB 0644
registry.cpython-313.pyc File 1.86 KB 0644
safeyaml.cpython-313.pyc File 12.13 KB 0644
settings.cpython-313.pyc File 1.25 KB 0644
signal_handler.cpython-313.pyc File 5.39 KB 0644
simpletable.cpython-313.pyc File 3.36 KB 0644
socket.cpython-313.pyc File 7.08 KB 0644
ssh_util.cpython-313.pyc File 25.03 KB 0644
stages.cpython-313.pyc File 47.25 KB 0644
subp.cpython-313.pyc File 15.1 KB 0644
temp_utils.cpython-313.pyc File 3.96 KB 0644
templater.cpython-313.pyc File 9.34 KB 0644
type_utils.cpython-313.pyc File 755 B 0644
url_helper.cpython-313.pyc File 43.18 KB 0644
user_data.cpython-313.pyc File 13.78 KB 0644
util.cpython-313.pyc File 111.33 KB 0644
version.cpython-313.pyc File 576 B 0644
warnings.cpython-313.pyc File 4.48 KB 0644
Filemanager