403Webshell
Server IP : 15.235.198.142  /  Your IP : 216.73.216.190
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/cloudinit/sources/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/cloudinit/sources/__pycache__/DataSourceAliYun.cpython-312.pyc
�

�f8��$�ddlZddlZddlmZddlmZmZddlmZm	Z	ddl
mZddl
m
Z
eje�ZdZGd�d	ej�Zd
�Zd�ZGd�d
e�Zeej,ffeej,ej.ffgZd�Zy)�N)�List)�dmi�sources)�
EventScope�	EventType)�
DataSourceEc2)�DataSourceHostnamezAlibaba Cloud ECSc�f��eZdZUdZdgZdZgZeee	d<e
d��Z�fd�Zd
d�Z
d�Zd	�Z�xZS)�DataSourceAliYun�AliYunzhttp://100.100.100.200z
2016-01-01�extended_metadata_versionsc��y)NzX-aliyun-ecs-metadata-token���selfs �D/usr/lib/python3/dist-packages/cloudinit/sources/DataSourceAliYun.py�imdsv2_token_put_headerz(DataSourceAliYun.imdsv2_token_put_headers��,�c����tt|�|||�tj|j
�|_|j
tjjtj�y�N)�superr�__init__�copy�deepcopy�default_update_eventsr�NETWORK�addr�BOOT)r�sys_cfg�distro�paths�	__class__s    �rrzDataSourceAliYun.__init__sQ���
���.�w���F�%)�]�]�4�3M�3M�%N��"��"�"�:�#5�#5�6�:�:�9�>�>�Jrc�`�|jjd�}d}|�d}d}t||�S)N�hostnameFzlocalhost.localdomainT)�metadata�getr	)r�fqdn�
resolve_ip�
metadata_onlyr$�
is_defaults      r�get_hostnamezDataSourceAliYun.get_hostname$s8���=�=�$�$�Z�0���
���.�H��J�!�(�J�7�7rc�L�t|jjdi��S)Nzpublic-keys)�parse_public_keysr%r&rs r�get_public_ssh_keysz$DataSourceAliYun.get_public_ssh_keys,s�� ����!2�!2�=�"�!E�F�Frc�~�t�rtjjStjjSr)�
_is_aliyun�EC2�
CloudNames�ALIYUN�NO_EC2_METADATArs r�_get_cloud_namez DataSourceAliYun._get_cloud_name/s'���<��>�>�(�(�(��>�>�1�1�1r)FFF)�__name__�
__module__�__qualname__�dsname�
metadata_urls�min_metadata_versionr
r�str�__annotations__�propertyrrr+r.r5�
__classcell__)r"s@rrrsQ���
�F�-�.�M�(��,.���S�	�.��-��-�K�
8�G�2rrc�:�tjd�tk(S)Nzsystem-product-name)r�
read_dmi_data�ALIYUN_PRODUCTrrrr0r06s�����2�3�~�E�Erc���g}|j�D]�\}}t|t�r |j|j	���6t|t
�r|j
|��Xt|t�s�i|jdg�}t|t�r |j|j	����t|t
�s��|j
|���|S)Nzopenssh-key)	�items�
isinstancer<�append�strip�list�extend�dictr&)�public_keys�keys�_key_id�key_body�keys     rr-r-:s���
�D�(�.�.�0�
!�����h��$��K�K����(�)�
��$�
'��K�K��!�
��$�
'��,�,�}�b�1�C��#�s�#����C�I�I�K�(��C��&����C� �
!��Krc��eZdZdZdZy)�DataSourceAliYunLocalayDatasource run at init-local which sets up network to query metadata.

    In init-local, no network is available. This subclass sets up minimal
    networking with dhclient on a viable nic so that it can talk to the
    metadata service. If the metadata service provides network configuration
    then render the network configuration for that instance based on metadata.
    TN)r6r7r8�__doc__�perform_dhcp_setuprrrrQrQJs����rrQc�6�tj|t�Sr)r�list_from_depends�datasources)�dependss r�get_datasource_listrX]s���$�$�W�k�:�:r)r�logging�typingr�	cloudinitrr�cloudinit.eventrr�cloudinit.sourcesrr1r	�	getLoggerr6�LOGrBrr0r-rQ�DEP_FILESYSTEM�DEP_NETWORKrVrXrrr�<module>rbs������"�1�2�0��g����!��$��"2�s�(�(�"2�JF�
� 	�,�	��W�3�3�5�6���.�.��0C�0C�D�E���;r

Youez - 2016 - github.com/yon3zu
LinuXploit