403Webshell
Server IP : 156.238.232.47  /  Your IP : 216.73.216.150
Web Server : nginx/1.25.3
System : Linux C202504152095410 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : www ( 1000)
PHP Version : 8.3.25
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python2.7/site-packages/cloudinit/sources/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.7/site-packages/cloudinit/sources/DataSourceDigitalOcean.pyc
�
oB�]c@s�ddlmZddlmZddlmZddljjjZej	e
�Zidd6ZdZ
dZdZeZd	ejfd
��YZeejffgZd�ZdS(i����(tlog(tsources(tutilNs'http://169.254.169.254/metadata/v1.jsontmetadata_urliitDataSourceDigitalOceancBsAeZdZd�Zd�Zd�Zd�Zed��ZRS(tDigitalOceancCs�tjj||||�||_t�|_tjtj|ddgi�t	g�|_
|j
d|_|j
jdt
�|_|j
jdt�|_|j
jdt�|_|j
jdt�|_d|_dS(Nt
datasourceRRtretriesttimeoutt	use_ip4LLt
wait_retry(Rt
DataSourcet__init__tdistrotdicttmetadataRt
mergemanydicttget_cfg_by_pathtBUILTIN_DS_CONFIGtds_cfgtmetadata_addresstgett
MD_RETRIESRt
MD_TIMEOUTRt
MD_USE_IPV4LLR	t
MD_WAIT_RETRYR
tNonet_network_config(tselftsys_cfgR
tpaths((sL/usr/lib/python2.7/site-packages/cloudinit/sources/DataSourceDigitalOcean.pyR!s	cCs
tj�S(N(t	do_helpertread_sysinfo(R((sL/usr/lib/python2.7/site-packages/cloudinit/sources/DataSourceDigitalOcean.pyt_get_sysinfo/scCs;|j�\}}|stStjd|�d}|jrJtj�}ntj|j	d|j
d|jd|j�}||_
|jd|�|jd<|jd|�|jd<|jd	�|jd	<|jd
�|jd<|jdd
�|jd<|jdd�|_|jdd�|_|r7tj|�ntS(Ns'Running on digital ocean. droplet_id=%sRtsec_betweenRt
droplet_idsinstance-idthostnameslocal-hostnamet
interfacestpublic_keysspublic-keystregiontdefaulttavailability_zonetvendor_datat	user_data(R!tFalsetLOGtinfoRR	Rtassign_ipv4_link_localt
read_metadataRRR
Rt
metadata_fullRRtvendordata_rawtuserdata_rawtdel_ipv4_link_localtTrue(Rtis_doR#t
ipv4LL_nictmd((sL/usr/lib/python2.7/site-packages/cloudinit/sources/DataSourceDigitalOcean.pyt	_get_data2s*		cCstj|j�d�S(Nssystem-serial-number(Rtinstance_id_matches_system_uuidtget_instance_id(RR((sL/usr/lib/python2.7/site-packages/cloudinit/sources/DataSourceDigitalOcean.pytcheck_instance_idQscCsq|jr|jS|jjd�}tj|�|sDtd��n|jdd}tj||�|_|jS(s�Configure the networking. This needs to be done each boot, since
           the IP information may have changed due to snapshot and/or
           migration.
        R%s'Unable to get meta-data from server....tdnstnameservers(	RRRR-tdebugt	ExceptionR1Rtconvert_network_configuration(RR%R>((sL/usr/lib/python2.7/site-packages/cloudinit/sources/DataSourceDigitalOcean.pytnetwork_configUs	
(	t__name__t
__module__tdsnameRR!R9R<tpropertyRB(((sL/usr/lib/python2.7/site-packages/cloudinit/sources/DataSourceDigitalOcean.pyRs				cCstj|t�S(N(Rtlist_from_dependstdatasources(tdepends((sL/usr/lib/python2.7/site-packages/cloudinit/sources/DataSourceDigitalOcean.pytget_datasource_listqs(t	cloudinitRtloggingRRt&cloudinit.sources.helpers.digitaloceanthelperstdigitaloceanRt	getLoggerRCR-RRRRR5RRRtDEP_FILESYSTEMRHRJ(((sL/usr/lib/python2.7/site-packages/cloudinit/sources/DataSourceDigitalOcean.pyt<module>	s
O

Youez - 2016 - github.com/yon3zu
LinuXploit