403Webshell
Server IP : 178.105.222.151  /  Your IP : 216.73.216.38
Web Server : nginx/1.28.3
System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.5.4
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/uaclient/cli/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/uaclient/cli/__pycache__/cli_util.cpython-314.pyc
+
���gQ ��~�^RIt^RIt^RIt^RIt^RIt^RIHt^RIHt^RI	H
t
HtHtH
t
HtHtHtHtHtHt^RIHt^RIHt^RIHtHt^RIHt^R	IHt]P>!4t R
t!!RR]PD4t#R
t$RRlt%RRlt&Rt'Rt(RRlt)Rt*Rt+Rt,RRlt-RRlt.Rt/R RRllt0Rt1R#)!�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�Va�]tRt^!toV3RlRltV3RlRltV3RlRltRtVtR#)	�CLIEnableDisableProgressc� <�V^8�dQhRS[/#)��
assume_yes��bool)�format�
__classdict__s"��7/usr/lib/python3/dist-packages/uaclient/cli/cli_util.py�__annotate__�%CLIEnableDisableProgress.__annotate__"s���%�%�d�%�c�*�V'*VnWnR#�N)�is_interactiver)�selfrs&$r �__init__�!CLIEnableDisableProgress.__init__"s��",�n���$�r#c	�R<�V^8�dQhRS[RS[RS[S[,RS[S[,/#)r�total_steps�
done_steps�previous_step_message�current_step_message)�intr�str)rrs"�r r!r"&s=���	(�	(��	(��		(�
 (��}�	(�'�s�m�
	(r#c�(�Ve\V4R#R#r%)�print)r'r+r,r-r.s&$$$$r �progress�!CLIEnableDisableProgress.progress&s�� �+��&�'�,r#c� <�V^8�dQhRS[/#)r�event)r0)rrs"�r r!r"1s���5�5�s�5r#c��VR8Xd\V4R#VR8Xd>\P!W P4'g\P
!4hR#R#)�info�message_operationN)r2r�handle_message_operationsrr�PromptDeniedError)r'r6�payloads&&&r �	_on_event�"CLIEnableDisableProgress._on_event1sH���F�?��'�N�
�)�
)��1�1�'�?�?�K�K� �2�2�4�4�L�*r#)rr&N)	�__name__�
__module__�__qualname__�__firstlineno__r(r3r=�__static_attributes__�__classdictcell__)rs@r rr!s#����%�%�	(�	(�5�5r#rc��R#r%�)�args�kwargss*,r �_null_printrI9s��r#c�$�V^8�dQhR\/#)r�json_outputr)rs"r r!r!=s�����r#c�*�V'd\#\#r%)rIr2)rKs&r �&create_interactive_only_print_functionrM=s������r#c�a�V3RlpV#)z1Decorator asserting exclusive access to lock filec�4<a�\S4VV3Rl4pV#)c�<�\P!S^R7;_uu_4S!VRV/VBpRRR4V# +'giX#;i)�)�lock_holder�
sleep_time�cfgN)r�	RetryLock)rTrGrH�retval�frRs$*, ��r �new_f�0assert_lock_file.<locals>.wrapper.<locals>.new_fHsB������K�A�F�F��D�4�c�4�V�4��G��M�G�F��M�s	�7�A	r)rWrXrRsf �r �wrapper�!assert_lock_file.<locals>.wrapperGs ���	�q��	�
�	�
�r#rF)rRrZsf r �assert_lock_filer\Ds�����Nr#c�0a�\S4V3Rl4pV#)zDecorator asserting root userc�t<�\P!4'g\P!4hS!V/VB#r%)r�we_are_currently_rootr�NonRootUserError)rGrHrWs*,�r rX�assert_root.<locals>.new_fVs1����)�)�+�+��-�-�/�/��d�%�f�%�%r#r�rWrXsf r �assert_rootrcSs"����1�X�&��&��Lr#c�0a�\S4V3Rl4pV#)z>Decorator to verify if correct params are used for json formatc�<�V'g
S!V.VO5/VB#VPR8Xd(VP'g\P!4hS!V.VO5/VB#)�json)rrr�CLIJSONFormatRequireAssumeYes)�cmd_argsrGrHrWs&*,�r rX�&verify_json_format_args.<locals>.new_fcsV�����X�/��/��/�/��?�?�f�$�X�-@�-@�-@��:�:�<�<��X�/��/��/�/r#rrbsf r �verify_json_format_argsrj`s"����1�X�0��0��Lr#c�a�V3RlpV#)z�Decorator asserting attached config.
:param msg_function: Optional function to generate a custom message
if raising an UnattachedError
c�4<a�\S4VV3Rl4pV#)c��<�\V4P'gCS'd&\VRR4p\VRR4pS!W4VR7M\P!4hS!V3RV/VB#)�command��service)rn�
service_namesrTrT)r�is_attached�getattrr�UnattachedError)rGrTrHrnrqrW�raise_custom_error_functions&&,  ��r rX�/assert_attached.<locals>.wrapper.<locals>.new_fwsf�����$�0�0�0�.�%�d�I�r�:�G�$+�D�)�R�$@�M�/� '�#��%�4�4�6�6��T�-�s�-�f�-�-r#r)rWrXrusf �r rZ� assert_attached.<locals>.wrappervs ���	�q��
	.�
�
	.��r#rF)rurZsf r �assert_attachedrxps���� �Nr#c�0a�\S4V3Rl4pV#)z&Decorator asserting unattached config.c��<�\V4P'dG\P!4p\P
!VPPRR4R7hS!V3RV/VB#)�namero)�account_namerT)rrrr�get_machine_token_filer�AlreadyAttachedError�account�get)rGrTrH�machine_token_filerWs&&, �r rX�"assert_not_attached.<locals>.new_f�sc������(�(�(�!.�!E�!E�!G���1�1�/�7�7�;�;�F�B�G��
���)�3�)�&�)�)r#rrbsf r �assert_not_attachedr��s"����1�X�*��*��Lr#c�a�V3RlpV#)c�4<a�\S4VV3Rl4pV#)c�<�\VRR4p\P!\V4'g\P
!VSR7hS!V3RV/VB#)�security_issuero)�issue�cmdrT)rs�re�matchrr�InvalidSecurityIssueIdFormat)rGrTrHr�r�rWs&&, ��r rX�@assert_vulnerability_issue_valid.<locals>.wrapper.<locals>.new_f�sT���$�T�+;�R�@�N��8�8�,�n�=�=� �=�=�(����
�T�-�s�-�f�-�-r#r)rWrXr�sf �r rZ�1assert_vulnerability_issue_valid.<locals>.wrapper�s ���	�q��	.�
�	.��r#rF)r�rZsf r � assert_vulnerability_issue_validr��s�����Nr#c�t�\P!WR7wppV'dAV'd9\P!RP	V4VRP	V4RR7hV'd(\P
!RP	V4VR7h\P!VRP	V4RR7h)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.)�namesrTz, ro)�
valid_service�	operation�invalid_service�service_msg)r�r�)r�r�r�)r	�get_valid_entitlement_namesr�UnattachedMixedServicesError�join�UnattachedValidServicesError�UnattachedInvalidServicesError)rnrqrT�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#c�(�V^8�dQhR\RR/#)rrT�returnNr)rs"r r!r!�s������d�r#c�4�\P!V4pVPpV'd5\P	\
PPVR74M#\P	\
P4\P!4\P!V4\P!V4wr4\P!V4p\P	\P !V44\P#4R#))�
contract_nameN)rr}r�r6r8r
�ATTACH_SUCCESS_TMPLr�ATTACH_SUCCESS_NO_CONTRACT_NAMEr�stop�cleanuprr�format_tabularr�handle_unicode_characters�process_events)rTr�r��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#c
�b�V^8�dQhR\R\R\R\\,RR/#)rrT�scope�set_key�	set_valuer�N)rrr0r)rs"r r!r!�s>����	��������}�	�

�r#c���V\P8XdVPpVPpM-V\P8XdVP
pVPpRV9dTpMTp\XXVR7R#)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)rTr�r�r�r�r�s&&&&  r �configure_apt_proxyr��sm��
�
�$�$�$��.�.�
��0�0��	�-�(�(�	(��*�*�
��,�,���'�����
���;�E�r#c��\P!.RO4pVP4'g�\PPRP
V\V4\44\PP4\P!R4\PPR4K�R#)�|z
{}{}{}g�������?�N)r��/�-�\)�	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#c�:�V^8�dQhR\\,/#)rr�)rr0)rs"r r!r!�s����h�s�m�r#c�a�V3RlpV#)c�4<a�\S4VV3Rl4pV#)c��<�\PP4'gS!V3RV/VB#\P!4p\P
!\VS3R7pVP4S!V3RV/VBpVP4VP4\PPR\,4\PP4V#)rT)�targetrG�
)
r�r��isatty�	threading�Event�Threadr��start�setr�r�r�r�)rGrTrHr��spinner_threadrVrWr�s&$,   ��r rX�,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)rWrXr�sf �r rZ�with_spinner.<locals>.wrapper�s ���	�q��	�
�	�*�r#rF)r�rZsf r �with_spinnerr��s����2�Nr#c�>�VR8XdA\PPV,\PP,#VR8XdA\PPV,\PP,#VR8XdA\PP
V,\PP,#VR8XdA\PPV,\PP,#V#)�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%)ro)2r�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_loggerr6r��AbstractProgressrrIrMr\rcrjrxr�r�r�r�r�r�r�r�rFr#r �<module>r�s����	�
��������E�A�7�$�(��%�%�'�� ��5�s�3�3�5�0	���
�
� �2��$
�8�(�0��:r#

Youez - 2016 - github.com/yon3zu
LinuXploit