404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@3.147.57.217: ~ $
3

\�me��@s�ddlZddlmZddlmZmZddlmZmZddl	m
Zddl	mZej
e�ZdZGdd	�d	ej
�Zd
d�Zdd
�ZGdd�de�ZeejffeejejffgZdd�ZdS)�N)�List)�dmi�sources)�
EventScope�	EventType)�
DataSourceEc2)�DataSourceHostnamezAlibaba Cloud ECScs^eZdZUdZdgZdZgZeee	dd��Z
�fdd�Zdd	d
�Zdd�Z
d
d�Z�ZS)�DataSourceAliYunZAliYunzhttp://100.100.100.200z
2016-01-01cCsdS)NzX-aliyun-ecs-metadata-token�)�selfr
r
�&/usr/lib/python3.6/DataSourceAliYun.py�imdsv2_token_put_headersz(DataSourceAliYun.imdsv2_token_put_headercs,tt|�j|||�|jtjjtj�dS)N)	�superr	�__init__Zdefault_update_eventsrZNETWORK�addrZBOOT)rZsys_cfgZdistro�paths)�	__class__r
rrszDataSourceAliYun.__init__FcCs*|jjd�}d}|dkr d}d}t||�S)N�hostnameFzlocalhost.localdomainT)�metadata�getr)rZfqdnZ
resolve_ipZ
metadata_onlyrZ
is_defaultr
r
r�get_hostname"szDataSourceAliYun.get_hostnamecCst|jjdi��S)Nzpublic-keys)�parse_public_keysrr)rr
r
r�get_public_ssh_keys*sz$DataSourceAliYun.get_public_ssh_keyscCst�rtjjStjjSdS)N)�
_is_aliyun�EC2Z
CloudNamesZALIYUNZNO_EC2_METADATA)rr
r
r�_get_cloud_name-sz DataSourceAliYun._get_cloud_name)FFF)�__name__�
__module__�__qualname__ZdsnameZ
metadata_urlsZmin_metadata_versionZextended_metadata_versionsr�str�propertyr
rrrr�
__classcell__r
r
)rrr	s

r	cCstjd�tkS)Nzsystem-product-name)rZ
read_dmi_data�ALIYUN_PRODUCTr
r
r
rr4srcCs�g}x�|j�D]|\}}t|t�r0|j|j��qt|t�rF|j|�qt|t�r|jdg�}t|t�rv|j|j��qt|t�r|j|�qW|S)Nzopenssh-key)	�items�
isinstancer�append�strip�list�extend�dictr)Zpublic_keys�keysZ_key_idZkey_body�keyr
r
rr8s




rc@seZdZdZdZdS)�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)rrr�__doc__Zperform_dhcp_setupr
r
r
rr,Hsr,cCstj|t�S)N)rZlist_from_depends�datasources)Zdependsr
r
r�get_datasource_list[sr/)ZloggingZtypingrZ	cloudinitrrZcloudinit.eventrrZcloudinit.sourcesrrrZ	getLoggerrZLOGr"r	rrr,ZDEP_FILESYSTEMZDEP_NETWORKr.r/r
r
r
r�<module>s
$


Filemanager

Name Type Size Permission Actions
DataSourceAkamai.cpython-36.opt-1.pyc File 8.18 KB 0644
DataSourceAkamai.cpython-36.pyc File 8.18 KB 0644
DataSourceAliYun.cpython-36.opt-1.pyc File 3.22 KB 0644
DataSourceAliYun.cpython-36.pyc File 3.22 KB 0644
DataSourceAltCloud.cpython-36.opt-1.pyc File 6.74 KB 0644
DataSourceAltCloud.cpython-36.pyc File 6.74 KB 0644
DataSourceAzure.cpython-36.opt-1.pyc File 47.95 KB 0644
DataSourceAzure.cpython-36.pyc File 47.95 KB 0644
DataSourceBigstep.cpython-36.opt-1.pyc File 1.84 KB 0644
DataSourceBigstep.cpython-36.pyc File 1.84 KB 0644
DataSourceCloudSigma.cpython-36.opt-1.pyc File 3.62 KB 0644
DataSourceCloudSigma.cpython-36.pyc File 3.62 KB 0644
DataSourceCloudStack.cpython-36.opt-1.pyc File 5.97 KB 0644
DataSourceCloudStack.cpython-36.pyc File 5.97 KB 0644
DataSourceConfigDrive.cpython-36.opt-1.pyc File 8.18 KB 0644
DataSourceConfigDrive.cpython-36.pyc File 8.18 KB 0644
DataSourceDigitalOcean.cpython-36.opt-1.pyc File 3.65 KB 0644
DataSourceDigitalOcean.cpython-36.pyc File 3.65 KB 0644
DataSourceEc2.cpython-36.opt-1.pyc File 23.49 KB 0644
DataSourceEc2.cpython-36.pyc File 23.49 KB 0644
DataSourceExoscale.cpython-36.opt-1.pyc File 5.92 KB 0644
DataSourceExoscale.cpython-36.pyc File 5.92 KB 0644
DataSourceGCE.cpython-36.opt-1.pyc File 9.83 KB 0644
DataSourceGCE.cpython-36.pyc File 9.93 KB 0644
DataSourceHetzner.cpython-36.opt-1.pyc File 3.78 KB 0644
DataSourceHetzner.cpython-36.pyc File 3.78 KB 0644
DataSourceIBMCloud.cpython-36.opt-1.pyc File 12.44 KB 0644
DataSourceIBMCloud.cpython-36.pyc File 12.44 KB 0644
DataSourceLXD.cpython-36.opt-1.pyc File 13.31 KB 0644
DataSourceLXD.cpython-36.pyc File 13.31 KB 0644
DataSourceMAAS.cpython-36.opt-1.pyc File 11.86 KB 0644
DataSourceMAAS.cpython-36.pyc File 11.86 KB 0644
DataSourceNWCS.cpython-36.opt-1.pyc File 3.77 KB 0644
DataSourceNWCS.cpython-36.pyc File 3.77 KB 0644
DataSourceNoCloud.cpython-36.opt-1.pyc File 7.97 KB 0644
DataSourceNoCloud.cpython-36.pyc File 7.97 KB 0644
DataSourceNone.cpython-36.opt-1.pyc File 1.47 KB 0644
DataSourceNone.cpython-36.pyc File 1.47 KB 0644
DataSourceOVF.cpython-36.opt-1.pyc File 9.15 KB 0644
DataSourceOVF.cpython-36.pyc File 9.15 KB 0644
DataSourceOpenNebula.cpython-36.opt-1.pyc File 11.75 KB 0644
DataSourceOpenNebula.cpython-36.pyc File 11.75 KB 0644
DataSourceOpenStack.cpython-36.opt-1.pyc File 7.91 KB 0644
DataSourceOpenStack.cpython-36.pyc File 7.91 KB 0644
DataSourceOracle.cpython-36.opt-1.pyc File 10.99 KB 0644
DataSourceOracle.cpython-36.pyc File 10.99 KB 0644
DataSourceRbxCloud.cpython-36.opt-1.pyc File 7.19 KB 0644
DataSourceRbxCloud.cpython-36.pyc File 7.19 KB 0644
DataSourceScaleway.cpython-36.opt-1.pyc File 10.84 KB 0644
DataSourceScaleway.cpython-36.pyc File 10.84 KB 0644
DataSourceSmartOS.cpython-36.opt-1.pyc File 24.51 KB 0644
DataSourceSmartOS.cpython-36.pyc File 24.51 KB 0644
DataSourceUpCloud.cpython-36.opt-1.pyc File 4.36 KB 0644
DataSourceUpCloud.cpython-36.pyc File 4.36 KB 0644
DataSourceVMware.cpython-36.opt-1.pyc File 23.66 KB 0644
DataSourceVMware.cpython-36.pyc File 23.66 KB 0644
DataSourceVultr.cpython-36.opt-1.pyc File 3.44 KB 0644
DataSourceVultr.cpython-36.pyc File 3.44 KB 0644
__init__.cpython-36.opt-1.pyc File 30.52 KB 0644
__init__.cpython-36.pyc File 30.52 KB 0644