- GRAYBYTE UNDETECTABLE CODES -

403Webshell
Server IP : 184.154.167.98  /  Your IP : 3.145.49.90
Web Server : Apache
System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
User : puertode ( 1767)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3.6/site-packages/cloudinit/sources/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3.6/site-packages/cloudinit/sources/__pycache__/DataSourceVultr.cpython-36.pyc
3

\�me��	@sddlZddlmZddljjjZddlmZmZm	Z	m
Z
eje�Z
ddddde
j�e	j�d	e	j�d
fd�ZGdd
�d
ej�ZeejffgZdd�Zedk�rddlZej�s�ed�ejd�ejdd�jZejeededededed�ZedZej�Z dS)�N)�Tuple)�sources�stages�util�versionzhttp://169.254.169.254��
�z"Cloud-Init/%s - OS: %s Variant: %s�systemZvariant)�url�retries�timeout�waitz
user-agentcs~eZdZUdZejjdZeedf�fdd�Z	e
dd��Zdd	�Zd
d�Z
dd
�Zdd�Zedd��Zedd��Z�ZS)�DataSourceVultr�Vultr�startup-script.cs6tt|�j|||�tjtj|ddgi�tg�|_dS)NZ
datasourcer)�superr�__init__rZ
mergemanydictZget_cfg_by_path�BUILTIN_DS_CONFIG�ds_cfg)�self�sys_cfg�distro�paths)�	__class__��%/usr/lib/python3.6/DataSourceVultr.pyr%szDataSourceVultr.__init__cCstj�S)N)�vultr�is_vultrrrrr�	ds_detect.szDataSourceVultr.ds_detectcCsTtjd�|j�|_|jd|_|j|j�tjd|jd�tjd|jd�dS)NzMachine is a Vultr instancez	user-dataz	SUBID: %szinstance-idzHostname: %szlocal-hostnameT)�LOG�debug�get_metadata�metadata�userdata_raw�get_datasource_data)rrrr�	_get_data3s

zDataSourceVultr._get_datacCsrd|kr"tj|d�|d|_ntj|d�|_|d|_|jddkrTd|jd<|d|_|jdkrnd|_dS)NZcloud_interfacesZ
interfaceszvendor-datazlocal-hostname�Zguestz	user-data)rZadd_interface_names�netcfgZgenerate_network_configZvendordata_rawr#r$)r�mdrrrr%Es



z#DataSourceVultr.get_datasource_datac	Cs>tj|j|jd|jd|jd|jd|jd|jj�d�S)Nrr
rrz
user-agent)Ztmp_dir)rr"rrZget_tmp_exec_path)rrrrr"ZszDataSourceVultr.get_metadatacCs.tj�sdStj�rdStj�d}tj|�S)NF�subid)rrZis_baremetal�get_sysinforZinstance_id_matches_system_uuid)rrr*rrr�check_instance_idfsz!DataSourceVultr.check_instance_idcCsdS)Nr)rrrr�launch_indexrszDataSourceVultr.launch_indexcCs|jS)N)r()rrrr�network_configvszDataSourceVultr.network_config)r)�__name__�
__module__�__qualname__Zdsnamer�
DataSourceZsensitive_metadata_keysr�strr�staticmethodrr&r%r"r,�propertyr-r.�
__classcell__rr)rrrs
	rcCstj|t�S)N)rZlist_from_depends�datasources)Zdependsrrr�get_datasource_list�sr8�__main__zMachine is not a Vultr instance�T)Zreporterrr
rrz
user-agentzvendor-data)!ZloggingZtypingrZcloudinit.sources.helpers.vultrrZhelpersrZ	cloudinitrrrZ	getLoggerr/r Zversion_stringZsystem_inforr2rZDEP_FILESYSTEMr7r8�sysr�print�exitZInitrr"r)�configr+Zsysinforrrr�<module>s<

`




Youez - 2016 - github.com/yon3zu
LinuXploit