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__/DataSourceScaleway.cpython-314.pyc
+
��i�5���^RIt^RIt^RIt^RIt^RIt^RIHt^RIt^RIH	t	^RI
Ht^RIH
t
^RIHtHtHtHtHt^RIHtHt^RIHt^R	IHtHt^R
IHt^RIHt]P@!]!4t"RR
.t#^t$^t%^
t&!RR]PNPP4t)Rt*Rt+!RR]PX4t-]-]P\33.t/Rt0R#)�N)�urlparse)�ConnectionError)�HTTPConnection)�PoolManager)�dmi�performance�sources�
url_helper�util)�
EventScope�	EventType)�NoDHCPLeaseError)�EphemeralDHCPv4�EphemeralIPv6Network)�DataSourceHostname)�ProcessExecutionErrorzhttp://169.254.42.42zhttp://[fd00:42::42]c�@aa�]tRt^&toRtV3RltRRltRtVtV;t	#)�SourceAddressAdapterz>
Adapter for requests to choose the local address to bind to.
c�<<�Wn\\V`!R/VBR#)N�)�source_address�superr�__init__)�selfr�kwargs�	__class__s&&,��F/usr/lib/python3/dist-packages/cloudinit/sources/DataSourceScaleway.pyr�SourceAddressAdapter.__init__+s���,��
�"�D�2�<�V�<�c��\P\P\P^3.,p\VVVVPVR7VnR#)�)�	num_pools�maxsize�blockr�socket_optionsN)r�default_socket_options�socket�
SOL_SOCKET�SO_REUSEPORTrr�poolmanager)r�connectionsr#r$r%s&&&& r�init_poolmanager�%SourceAddressAdapter.init_poolmanager/sR��'�>�>�
�
�
�� 3� 3�Q�7�B
�
��'�!����.�.�)�
��r)r*r)F)
�__name__�
__module__�__qualname__�__firstlineno__�__doc__rr,�__static_attributes__�__classdictcell__�
__classcell__�r�
__classdict__s@@rrr&s�����=�

�

rrc	���\P!VRV^VRR7p\P!VP4# \P
dpTPR8XdRp?R#hRp?ii;i)a%
Retrieve user data or vendor data.

Scaleway user/vendor data API returns HTTP/404 if user/vendor data is not
set.

This function calls `url_helper.readurl` but instead of considering
HTTP/404 as an error that requires a retry, it considers it as empty
user/vendor data.

Also, be aware the user data/vendor API requires the source port to be
below 1024 to ensure the client is root (since non-root users can't bind
ports below 1024). If requests raises ConnectionError (EADDRINUSE), the
caller should retry to call this function on an other port.
Nc��VPR8g;'d4\VP\PP
4'*#)�)�code�
isinstance�cause�requests�
exceptionsr)�excs&r�<lambda>�%query_data_api_once.<locals>.<lambda>Ws8��S�X�X��_�&�&��s�y�y�(�*=�*=�*M�*M�N�N�&r)�data�timeout�retries�session�exception_cbr:)r
�readurlr�
decode_binary�contents�UrlErrorr;)�api_addressrD�requests_session�respr@s&&&  r�query_data_api_oncerO<sk�� ��!�!�����$��
���!�!�$�-�-�0�0�������8�8�s�?��
��	�s�<?�A1�A,�+A,�,A1c���\^\V^44F�p\PRW4\P
!4pRp\
V4PpTpV^,R8XdV^Rp\P!VR\PR7^,^,p	V	\P8XdRpTPR\Yd3R74\YTR	7p
\PR
T4T
u#	Xh \dLUi;i \ P"d;p\P%RY4\&P(!^4TpRp?EKKRp?ii;i)
aGet user or vendor data.

Handle the retrying logic in case the source port is used.

Scaleway metadata service requires the source port of the client to
be a privileged port (<1024).  This is done to ensure that only a
privileged user on the system can access the metadata service.
z*Trying to get %s data (bind on port %d)...z0.0.0.0�[N)�protoz0::zhttp://)r)rDrMz%s-data downloadedz%Error while trying to get %s data: %s���)�range�max�LOG�debugr>�Sessionr�netlocr'�getaddrinfo�IPPROTO_TCP�AF_INET6�
ValueError�mountrrOr
rK�warning�time�sleep)
�api_typerLrErD�portrM�	localhost�url_address�address�
addr_protorCr@�last_excs
&&&&         r�query_data_apiridsT���a��W�a��)��"	��I�I�<�h�
� (�/�/�1��!�I�
�&�{�3�:�:��%���q�>�S�(�)�!�B�/�G�#�/�/��T��);�);������
�����0� %�I�
�"�"��$�Y�4E�F�
�'��?O��D�
�I�I�*�H�5��K�9*�L�N��)�
��
���"�"�	��K�K�?��O��J�J�q�M��H���	�s=�-D�	A6D�?AD�D�D�D�D�E'�-.E"�"E'c�0aa�]tRt^�toRt]P]P]P]P0/tV3RltV3RlV3Rllt
RtRt]V3RlRl4tR	t]R
4t]R4tRtR
tRRlt]R4t]R4tRtVtV;t#)�DataSourceScaleway�Scalewayc��<�\\V`WV4\P!\P
!VRR./4.4Vn\VPPR\44Vn
\VPPR\44Vn\VPPR\44Vn\P Vn\$VnRVnRVnRVnRVnRVnRVPP349d-V;P&VPR,,
unR#R#)�
datasourcerlrErD�max_waitNT�
metadata_urls)rrkrr�
mergemanydict�get_cfg_by_path�ds_cfg�int�get�DEF_MD_RETRIESrE�DEF_MD_TIMEOUTrD�DEF_MD_MAX_WAITror	�UNSET�_network_config�DS_BASE_URLSrp�metadata_url�userdata_url�vendordata_url�ephemeral_fixed_address�has_ipv4�keys)r�sys_cfg�distro�pathsrs&&&&�rr�DataSourceScaleway.__init__�s���
� �$�0��%�H��(�(��$�$�W�|�Z�.H�"�M�
�
����4�;�;�?�?�9�n�E�F����4�;�;�?�?�9�n�E�F����D�K�K�O�O�J��H�I��
�&�}�}���)��� ��� ���"���'+��$���
��d�k�k�.�.�0�0����$�+�+�o�">�>��1rc�$<�V^8�dQhRS[RR/#)��ci_pkl_version�returnN)rt)�formatr7s"�r�__annotate__�DataSourceScaleway.__annotate__�s���9�9��9��9rc�<�\SV`V4RRRRR\R\RRRR/pVF(p\	W4'dK\WW#,4K*	R#)rNr�Trorpr}r~)r�	_unpicklerxr{�hasattr�setattr)rr��
attr_defaults�attrrs&&  �rr��DataSourceScaleway._unpickle�sY���
���.�)�%�t������\��D��d�

�
�"�D��4�&�&���M�$7�8�"rc��\P!4p\P!VVPVP
RR7wr4V'd7\PRV4VR2VnVR2Vn	VR2Vn
R#\PRV\\P!4V,
44\h)	z?
Define metadata_url based upon api-metadata URL availability.
F)�urlsrorD�connect_synchronouslyz%s is reachablez/conf?format=jsonz/user_data/cloud-initz/vendor_data/cloud-initNz3Unable to reach api-metadata at %s after %s seconds)
r`�	monotonicr
�wait_for_urlrorDrVrWr|r}r~rtr)rr��
start_time�	avail_url�_s&&   r�_set_metadata_url�$DataSourceScaleway._set_metadata_url�s���
�^�^�%�
�!�.�.���]�]��L�L�"'�	
��	���I�I�'��3�#,�+�->� ?�D��#,�+�-B� C�D��%.�K�/F�"G�D����I�I�E���D�N�N�$�z�1�2�
�
"�!rc��\P!VPVPVPR7p\
P!\P!VP44Vn
\RVPVPVP4Vn
\RVPVPVP4VnR#))rDrEz	user-datazvendor-dataN)r
rHr|rDrE�json�loadsrrIrJ�metadatarir}�userdata_rawr~�vendordata_raw)rrNs& r�_crawl_metadata�"DataSourceScaleway._crawl_metadata�s����!�!����t�|�|�T�\�\�
���
�
�4�#5�#5�d�m�m�#D�E��
�*���*�*�D�L�L�$�,�,�
���-��4�.�.����d�l�l�
��rc� <�V^8�dQhRS[/#)r�r�)�bool)r�r7s"�rr�r��s�����t�rc���\P!R4pVR8XdR#\PP	R4'dR#\
P!4pRV9dR#R#)z�
There are three ways to detect if you are on Scaleway:

* check DMI data: not yet implemented by Scaleway, but the check is
  made to be future-proof.
* the initrd created the file /var/run/scaleway.
* "scaleway" is in the kernel cmdline.
zsystem-manufacturerrlTz/var/run/scaleway�scalewayF)r�
read_dmi_data�os�path�existsr�get_cmdline)�vendor_name�cmdlines  r�	ds_detect�DataSourceScaleway.ds_detect�sS���'�'�(=�>���*�$��
�7�7�>�>�-�.�.���"�"�$���� ��rc	�>�VP'd�\VPVPP4;_uu_4p\P
!R4;_uu_4VP
VP4RRR4VP4VR,Vn	RVPR&RRR4VP'g�\%VPVPP4;_uu_4\P
!R4;_uu_4VP
VP4RRR4VP4RVPR&RRR4R#R# +'giL�;i +'giL�;i \\\3d7p\P!\ \#T44RTnRp?EL Rp?ii;i +'giL�;i +'giR#;i \dR#i;i)	z7Setting api-metadata URL depending on IPv4 availabilityNz
fixed-address�ipv4�
net_in_useFz7Setting api-metadata URL depending on IPv6 availability�ipv6T)r�rr��fallback_interfacer�Timedr�rpr�rr�rrrr�logexcrV�strr)rr��es&  r�	_get_data�DataSourceScaleway._get_datas���
�=�=�=�
&�%��K�K��K�K�2�2����$�*�*�9����.�.�t�/A�/A�B�	�
�(�(�*�37��3H�D�0�28�D�M�M�,�/��.�}�}�}�

�)��K�K��K�K�2�2���%�*�*�,����.�.�t�/A�/A�B�	�
�(�(�*�28�D�M�M�,�/���E���	���!��%��
&�
���C��Q��(�!&��
�
��
&��"���	����#�
��
�s��2F�F�%E1	�5F�6F�2H
�G9�"G&	�>'G9�%H
�1F
�<F�F	�F�F�G#�-+G�G#�&G6
�1G9�9H
	�H
�
H
�
H�Hc��VPf:\PR\P4\PVnVP\P8wd
VP#/p/pVP
R,EFpVR,VP8XdCRVR&RRRRR	R
/pRVP49dVR;;,V.,
uu&KVV.VR&K^RVP49d+VR;;,VR,R
VR,23,
uu&MVR,R
VR,23VR&VR,R8XgK�R	VR,RR/pRVP49dVR;;,V.,
uu&EKV.VR&EK
	W!VPP&R^RV/VnVP#)zH
Configure networking according to data received from the
metadata API.
z5Found None as cached _network_config. Resetting to %s�
public_ipsrfT�dhcp4zon-link�toz169.254.42.42/32�viaz
62.210.0.1�routes�	addresses�/�netmask�family�inet6�gatewayz::/0�version�	ethernets)
rzrVr_r	ryr�rr�r�r�)r�netcfg�ip_cfg�ip�routes&    r�network_config�!DataSourceScaleway.network_config5s������'��K�K�G��
�
�
�$+�=�=�D� ����7�=�=�0��'�'�'������-�-��-�-�B��)�}�� <� <�<�"&��w���t��,��<���
�v�{�{�}�,��8�$���/�$�(-�w�F�8�$��&�+�+�-�/��;�'��i�=�/��2�i�=�/�:�,��'�/1��m�_�A�b��m�_�+M�*O�F�;�'��h�<�7�*�"�B�y�M�4��@�E��6�;�;�=�0��x�(�U�G�3�(�,1�7��x�(�5.�628�t�{�{�-�-�.� )�1�k�6�B����#�#�#rc��R#�Nr�rs&r�launch_index�DataSourceScaleway.launch_indexgs��rc�(�VPR,#)�id�r�r�s&r�get_instance_id�"DataSourceScaleway.get_instance_idks���}�}�T�"�"rc�8�VPR,Uu.uFqR,NK
	ppRp\V4pVPPR.4F?pVPV4'gKVP	WTRPRR44KA	V#uupi)�ssh_public_keys�keyzAUTHORIZED_KEY=�tagsNr�� )r��lenru�
startswith�append�replace)rr��ssh_keys�akeypre�plen�tags&     r�get_public_ssh_keys�&DataSourceScaleway.get_public_ssh_keysns���*.�-�-�8I�*J�K�*J�3��J�J�*J��K�#���7�|���=�=�$�$�V�R�0�C��>�>�'�*�*���O�O�C��J�.�.�s�C�8�9�1�
���Ls�Bc�<�\VPR,R4#)�hostnameF)rr�)r�fqdn�
resolve_ip�
metadata_onlys&&&&r�get_hostname�DataSourceScaleway.get_hostnamezs��!�$�-�-�
�";�U�C�Crc�(�VPR,#)�zoner�r�s&r�availability_zone�$DataSourceScaleway.availability_zone}s���}�}�V�$�$rc�T�VPR,PR4^,#)r��-)r��
rpartitionr�s&r�region�DataSourceScaleway.region�s!���}�}�V�$�/�/��4�Q�7�7r)rzrsrr�ror�r|rprErDr�r}r�r~)FFF)r.r/r0r1�dsnamer�NETWORKr
�BOOT_NEW_INSTANCE�BOOT�BOOT_LEGACY�default_update_eventsrr�r�r��staticmethodr�r��propertyr�r�r�r�r�r�r�r3r4r5r6s@@rrkrk�s�����
�F�����'�'��N�N��!�!�
���?�,9�9�"�4
�����*0�d�/$��/$�b����#�
�D��%��%��8��8�8rrkc�8�\P!V\4#r�)r	�list_from_depends�datasources)�dependss&r�get_datasource_listr�s���$�$�W�k�:�:r)1r��loggingr�r'r`�urllib.parserr>�requests.exceptionsr�urllib3.connectionr�urllib3.poolmanagerr�	cloudinitrrr	r
r�cloudinit.eventrr
�cloudinit.net.dhcpr�cloudinit.net.ephemeralrr�cloudinit.sourcesr�cloudinit.subpr�	getLoggerr.rVr{rvrxrw�adapters�HTTPAdapterrrOri�
DataSourcerk�DEP_FILESYSTEMrrrrr�<module>rs�����	�
��!��/�.�+�A�A�1�/�I�0�0�
����!��&�(>�?��������
�8�,�,�8�8�
�,%�P1�hk8��+�+�k8�^�'�0�0�2�3���
;r

Youez - 2016 - github.com/yon3zu
LinuXploit