403Webshell
Server IP : 178.105.222.151  /  Your IP : 216.73.216.38
Web Server : nginx/1.28.3
System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.5.4
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__/DataSourceExoscale.cpython-314.pyc
+
��i~"����^RIt^RIHtHtHtHtHtHt^RIH	t	]P!]4tRt
RtRt^
t^tRt!RR	]P&4t]]P*]P,33.tR
t]
]]]]3Rlt]
]]]]3Rlt]R
8Xd�^RIt]P8!RR7t]P=RRR]
R7]P=RRR]R7]P=RR]R]R7]P=RR]R]R7]P=RR]R]R7]PA4t!]!]!PD]!PF]!PH]!PJ]!PLR 7t'](!]PR!]'44R#R#)!�N)�
atomic_helper�dmi�helpers�sources�
url_helper�util)�ec2zhttp://169.254.169.254z1.0i��Exoscalec�haa�]tRt^toRt^xtV3RltRtRtRt	Rt
Rt]R4t
R	tVtV;t#)
�DataSourceExoscaler
c��<�\\V`WV4\P	R4VP
P
R\4VnVP
P
R\4Vn
\VP
P
R\44Vn
VP
P
R\4VnVP
P
R\ 4Vn/VnR#)z$Initializing the Exoscale datasource�metadata_url�api_version�password_server_port�timeout�retriesN)�superr�__init__�LOG�debug�ds_cfg�get�METADATA_URLr�API_VERSIONr�int�PASSWORD_SERVER_PORTr�URL_TIMEOUT�url_timeout�URL_RETRIES�url_retries�extra_config)�self�sys_cfg�distro�paths�	__class__s&&&&��F/usr/lib/python3/dist-packages/cloudinit/sources/DataSourceExoscale.pyr�DataSourceExoscale.__init__s����
� �$�0��%�H��	�	�8�9� �K�K�O�O�N�L�I����;�;�?�?�=�+�F���$'��K�K�O�O�2�4H�I�%
��!� �;�;�?�?�9�k�B����;�;�?�?�9�k�B������c���RpVPPR4p\P!V4pVP	RV,R4'd\
P
R4R#R#)z<Adjust set_passwords module to run 'always' during each boot�
set_passwords�sem�config_Nz5Overriding module set_passwords with frequency always)r%�
get_ipath_curr�FileSemaphores�clearrr)r"�cfg�is_new_instance�mod�sem_path�
sem_helpers&&&   r'�activate�DataSourceExoscale.activate*sV�����:�:�+�+�E�2���+�+�H�5�
����I��O�T�2�2��I�I�M�N�3r)c���RPVPVP4p\P!V.VP
VP\PR7wr#\V4#)z.Wait for the metadata service to be reachable.z{}/{}/meta-data/instance-id)�urls�max_waitr�	status_cb)
�formatrrr�wait_for_url�url_max_waitrr�critical�bool)r"r�url�	_responses&   r'�wait_for_metadata_service�,DataSourceExoscale.wait_for_metadata_service9sc��5�;�;����t�/�/�
��$�0�0����&�&��$�$��l�l�	
����C�y�r)c���VP4pV'g\PR4/#\VPVP
VPVPVP4#)z_
Crawl the metadata service when available.

@returns: Dictionary of crawled metadata content.
z,Unable to get response from metadata service)	rCr�error�
read_metadatarrrrr )r"�metadata_readys& r'�crawl_metadata�!DataSourceExoscale.crawl_metadataIsa���7�7�9����I�I�D�E��I���������%�%�������
�	
r)c�
�VP4pV'gR#VR,VnVR,VnVPR4p/pV'dRRRVRRR//p\P
!VPV.4VnR#)	z�Fetch the user data, the metadata and the VM password
from the metadata service.

Please refer to the datasource documentation for details on how the
metadata server and password server are crawled.
F�	user-data�	meta-data�password�
ssh_pwauthT�chpasswd�expire)rI�userdata_raw�metadatarr�
mergemanydictr!)r"�datarN�password_configs&   r'�	_get_data�DataSourceExoscale._get_data]s����"�"�$���� ��-����[�)��
��8�8�J�'������d��H���e���O�!�.�.�
�
�
��0�
���r)c��VP#�N)r!)r"s&r'�get_config_obj�!DataSourceExoscale.get_config_obj�s��� � � r)c�T�\P!R4P\4#)zsystem-product-name)r�
read_dmi_data�
startswith�EXOSCALE_DMI_NAME�r)r'�	ds_detect�DataSourceExoscale.ds_detect�s$��� � �!6�7�B�B��
�	
r))rr!rSrrr rrR)�__name__�
__module__�__qualname__�__firstlineno__�dsnamer>rr6rCrIrWr[�staticmethodrb�__static_attributes__�__classdictcell__�
__classcell__)r&�
__classdict__s@@r'rrsH����
�F��L��
O�� 
�(%�N!��
��
�
r)rc�8�\P!V\4#rZ)r�list_from_depends�datasources)�dependss&r'�get_datasource_listrr�s���$�$�W�k�:�:r)c���RPWV4p\P!VRRR/VVR7pVPP	R4pVR9dR#\P!VRRR/VVR7V#)	z�Obtain the VM's password if set.

Once fetched the password is marked saved. Future calls to this method may
return empty string or 'saved_password'.z	{}:{}/{}/N�DomU_Request�send_my_password)�ssl_details�headersrrzutf-8�saved_password)�rx)r<r�read_file_or_url�contents�decode)rrrrr �password_url�responserNs&&&&&   r'�get_passwordr�s����%�%��K��L��*�*����!3�4����H�� � �'�'��0�H��)�)��������!1�2�����Or)c��/pWR&\P!WW4R7VR&\P!WW4R7VR&\TTTTTR7TR&T# \d)p\P
!\RY4/uRp?#Rp?ii;i \d*p\P
!\R	TTT4Rp?T#Rp?ii;i)
z8Query the metadata server and return the retrieved data.�_metadata_api_version)rrrLrMz(failed reading from metadata url %s (%s)N)rrrr rrNz2failed to read from password server url %s:%s (%s))r	�get_instance_userdata�get_instance_metadata�	Exceptionr�logexcrr)rrrrr �crawled_metadata�es&&&&&  r'rGrG�s�����0;�,�-��(+�(A�(A��{�)
���%�),�(A�(A��{�)
���%�
�'3�#�%�!5�#�#�(
���$� ���/������;�\�	
��	��	���
�����@�� �
�	
�	
����
�s4�6A�B
�B�B�<B�B�
B>�B9�9B>�__main__zQuery Exoscale Metadata)�descriptionz
--endpoint�URLz The url of the metadata service.)�metavar�help�defaultz	--version�VERSIONz.The version of the metadata endpoint to query.z	--retries�NUMz,The number of retries querying the endpoint.)r��typer�r�z	--timeoutz.The time in seconds to wait before timing out.z--password-port�PORTz/The port on which the password endpoint listens)rrrrr )*�logging�	cloudinitrrrrrr�cloudinit.sources.helpersr	�	getLoggerrdrrrrrrr`�
DataSourcer�DEP_FILESYSTEM�DEP_NETWORKrprrrrG�argparse�ArgumentParser�parser�add_argumentr�
parse_args�args�endpoint�version�
password_portrrrU�print�
json_dumpsrar)r'�<module>r�s����L�L�)�
����!��'������������t
��+�+�t
�r�'�0�0�'�2E�2E�F�G���;�
��-���#�N��-���(�V�z���
�
$�
$�1J�
K�F�
�����
/��	�������
=��	�������
�
;���������
�
=���������
�
>�$�������D���]�]��L�L�!�/�/��L�L��L�L��D�
�-�
"�
"�4�
(�)�ar)

Youez - 2016 - github.com/yon3zu
LinuXploit