__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
�

x[h�,��8�SSKrSSKrSSKrSSKJr SSKJrJrJr SSK	J
r
 SSKJrJ
r
 SSKJr SSKJr SSKJr SS	KJr \R*"\5r"S
S5r"SS
\R25rSrSrSr\\R<\R>44/r Sr!g)�N)�suppress)�gaierror�getaddrinfo�	inet_ntoa)�pack)�sources�subp)�
url_helper)�util)�dhcp)�ec2c�*�\rSrSrSrSrSrSrSrg)�CloudStackPasswordServerClient�av
Implements password fetching from the CloudStack password server.

http://cloudstack-administration.readthedocs.org/
   en/latest/templates.html#adding-password-management-to-your-templates
has documentation about the system.  This implementation is following that
found at
https://github.com/shankerbalan/cloudstack-scripts/
   blob/master/cloud-set-guest-password-debian
c��Xlg�N��virtual_router_address)�selfrs  �H/usr/lib/python3/dist-packages/cloudinit/sources/DataSourceCloudStack.py�__init__�'CloudStackPasswordServerClient.__init__+s��&<�#�c��[R"SSSSSSSSS	S
RU5SRUR5/5up#UR5$)N�wgetz--quietz--tries�3z	--timeout�20z--output-document�-z--headerzDomU_Request: {0}z{0}:8080)r	�formatr�strip)r�domu_request�output�_s    r�_do_request�*CloudStackPasswordServerClient._do_request.sd���I�I�������#���#�*�*�<�8��!�!�$�"=�"=�>�
�
�	���|�|�~�rc�z�URS5nUS;agUS:Xa[S5eURS5 U$)N�send_my_password)��saved_password�bad_requestz-Error when attempting to fetch root password.r))r$�RuntimeError)r�passwords  r�get_password�+CloudStackPasswordServerClient.get_passwordCsG���#�#�$6�7���-�-���}�$��N�O�O����)�*��rrN)	�__name__�
__module__�__qualname__�__firstlineno__�__doc__rr$r-�__static_attributes__�rrrrs��	�=��*rrc�r^�\rSrSrSrSrSrSrSrSU4Sjjr	Sr
S	rS
rSr
\S5rS
rU=r$)�DataSourceCloudStack�M�
CloudStack�x�2c�`�[RRXX#5 [RRURS5UlSUlX l[UR5Ul
UR(d[S5eSURS3Ul0Ul
g)N�cs�latestzNo virtual router found!zhttp://�/)r�
DataSourcer�os�path�join�seed_dir�api_ver�distro�get_vr_address�vr_addrr+�metadata_address�cfg)r�sys_cfgrF�pathss    rr�DataSourceCloudStack.__init__Us�����#�#�D�6�A������U�^�^�T�:��
� �����%�d�k�k�2����|�|��9�:�:�")�$�,�,��q� 9�����rc��[RS5 [R"S5nU(aU$[RS5 [	[R
5 [R"5RURS5nU(aUsSSS5 $SSS5 [RSURRR5 [	[5 URRRURR5nURS5=(d SnUsSSS5 $!,(df   N�=f!,(df   O=f[RS5 g)zi
Try obtaining a "domain-name" DHCP lease parameter:
- From systemd-networkd lease
- From dhclient lease
z.Try obtaining domain name from networkd leases�
DOMAINNAMEzHCould not obtain FQDN from networkd leases. Falling back to ISC dhclientzdomain-nameNzBCould not obtain FQDN from ISC dhclient leases. Falling back to %szNo dhcp leases found)�LOG�debugr�networkd_get_option_from_leasesr�NoDHCPLeaseMissingDhclientError�IscDhclient�get_key_from_latest_leaserF�dhcp_client�client_name�FileNotFoundError�get_newest_lease�fallback_interface�get)r�
domainname�domain_name�latest_leases    r�_get_domainname�$DataSourceCloudStack._get_domainnamecs%��	�	�	�B�C��9�9�,�G�
�����	�	�
+�	
��d�:�:�
;��*�*�,�F�F����]��K��"�<�
;��	<�	�	�	�
!��K�K�#�#�/�/�	
��'�
(��;�;�2�2�C�C����.�.��L�'�*�*�=�9�A�T�K��)�
(�<�
;��)�
(��	�	�	�(�)�s�#8E�1AE!�
E�!
E/c�h>�[TU]XU5nU(a�SUR;a�[R	S5 UR5nU(aGURSU3n[R	SU5 [R"XR5$[R	SU5 U$)z�
Returns instance's hostname / fqdn
First probes the parent class method.

If fqdn is requested, and the parent method didn't return it,
then attach the domain-name from DHCP response.
�.zFQDN requestedzObtained the following FQDN: %szNCould not determine domain name for FQDN. Fall back to hostname as an FQDN: %s)	�super�get_hostname�hostnamerPrQr_r�DataSourceHostname�
is_default)r�fqdn�
resolve_ip�
metadata_onlyrer\�	__class__s      �rrd�!DataSourceCloudStack.get_hostname�s�����7�'��-�H���C�x�0�0�0��I�I�&�'��-�-�/�J��"�+�+�,�A�j�\�:���	�	�;�T�B��1�1�$�8K�8K�L�L��I�I�7��
�
�rc���UR5nURS::ag[R"URS5/n[
R"5n[R"UURUR[RS9upEU(a[RSU5 O6[RSU[[
R"5U-
55 [U5$)NrFzlatest/meta-data/instance-id)�urls�max_wait�timeout�	status_cbzUsing metadata source: '%s'z>Giving up on waiting for the metadata from %s after %s seconds)�get_url_params�max_wait_seconds�uhelp�combine_urlrI�time�	monotonic�wait_for_url�timeout_secondsrP�warningrQ�critical�int�bool)r�
url_paramsrn�
start_time�url�	_responses      r�wait_for_metadata_service�.DataSourceCloudStack.wait_for_metadata_service�s����(�(�*�
��&�&�!�+��
����%�%�'E�
�
��
�^�^�%�
��+�+���0�0��.�.��k�k�	
�����I�I�3�S�9��L�L�$���D�N�N�$�z�1�2�	
��C�y�rc��UR$r)rJ�rs r�get_config_obj�#DataSourceCloudStack.get_config_obj�s���x�x�rc��0n[R"XRS-S9(a5USUlUSUl[
R
SUR5 gUR5(dg[R"5n[R"URUR5Ul[R"URUR5Ul[
R
S[[R"5U-
55 [!UR"5nUR%5nU(a
SUS	S0S
.Ulg![(a) [R*"[
SUR"5 gf=f![(a) [R*"[
SUR5 gf=f)
Nr?)�basez	user-dataz	meta-dataz%Using seeded cloudstack data from: %sTFz)Crawl of metadata service took %s seconds�expire)�
ssh_pwauthr,�chpasswdz/Failed to fetch password from virtual router %sz(Failed fetching from metadata service %s)r�read_optional_seedrD�userdata_raw�metadatarPrQr�rvrwr
�get_instance_userdatarErI�get_instance_metadatar|rrHr-rJ�	Exception�logexc)r�seed_retr�password_client�set_passwords     r�	_get_data�DataSourceCloudStack._get_data�s�����"�"�8�=�=�3�3F�H� (�� 5�D��$�[�1�D�M��I�I�=�t�}�}�M��'	��1�1�3�3�����)�J� #� 9� 9����d�3�3�!�D�� �5�5����d�3�3��D�M�
�I�I�;��D�N�N�$�z�1�2�
�=�T�\�\�J�O�
�.�;�;�=�� �&*�$0�$�e�%� �D�H����
�����E��L�L���
�� �	��K�K��:��%�%�
�
�
	�s=�F�5B?F�5E�F�0F
�
F�F
�
F�0G�Gc� �URS$)Nzinstance-id�r�r�s r�get_instance_id�$DataSourceCloudStack.get_instance_id�s���}�}�]�+�+rc� �URS$)Nzavailability-zoner�r�s r�availability_zone�&DataSourceCloudStack.availability_zone�s���}�}�0�1�1r)rErJrFr�rIrDr�rH)FFF)r/r0r1r2�dsname�url_max_wait�url_timeoutrr_rdr�r�r�r��propertyr�r4�
__classcell__)rks@rr7r7MsX���
�F��L��K��(�X���	�8�>�.�`,��2��2rr7c�|�[SS5nUSSS$![a [RS5 gf=f)Nzdata-server�Pr�zDNS Entry data-server not found)rrrPrQ)�addrinfos r�get_data_serverr�sI��!��}�b�1��
��{�1�~�a� � ��	���	�	�3�4���s��;�;c
�
�[R"S5R5nUHYnURS5nUSS:XdM[	[S[
USS555n[RSU5 Us $ g)	Nz/proc/net/route�	��00000000z<L��z"Found default route, gateway is %s)	r�load_text_file�
splitlines�splitrrr|rPrQ)�lines�line�items�gws    r�get_default_gatewayr�su����� 1�2�=�=�?�E����
�
�4� ����8�z�!��4��c�%��(�B�&7�8�9�B��I�I�:�B�?��I�
�rc��[5nU(a[RSU5 U$[R"S5nU(a[RSU5 U$[[R5 [R"5RUS5nU(a![RSU5 UsSSS5 $SSS5 [[5 URRU5nU(a6[RSUURR5 UsSSS5 $SSS5 [RS5 [5$!,(df   N�=f!,(df   N>=f)Nz4Found metadata server '%s' via data-server DNS entry�SERVER_ADDRESSz-Found SERVER_ADDRESS '%s' via networkd_leaseszdhcp-server-identifierz&Found SERVER_ADDRESS '%s' via dhclientz1Found SERVER_ADDRESS '%s' via ephemeral %s lease z$No DHCP found, using default gateway)r�rPrQrrRrrSrTrUrXrVrYrWr�)rF�latest_addressr^s   rrGrGs4��%�&�N���	�	�B��	
����9�9�:J�K�N���	�	�;�^�	
���

�$�6�6�	7��)�)�+�E�E��,�
����I�I�>��O�!�

8�	7��	
8�
�#�	$��)�)�:�:�6�B����I�I�C���"�"�.�.�
�
 �
%�	$��
%��I�I�4�5�� � �)
8�	7��
%�	$�s�8AE�AE0�
E-�0
E>c�8�[R"U[5$r)r�list_from_depends�datasources)�dependss r�get_datasource_listr�Rs���$�$�W�k�:�:r)"�loggingrArv�
contextlibr�socketrrr�structr�	cloudinitrr	r
rtr�
cloudinit.netr�cloudinit.sources.helpersr
�	getLoggerr/rPrr@r7r�r�rG�DEP_FILESYSTEM�DEP_NETWORKr�r�r5rr�<module>r�s����	���3�3��#�)���)�
����!��+�+�\s2�7�-�-�s2�l!�
�-!�d�G�2�2�G�4G�4G�H�I���;r

Filemanager

Name Type Size Permission Actions
DataSourceAkamai.cpython-313.pyc File 12.33 KB 0644
DataSourceAliYun.cpython-313.pyc File 18.33 KB 0644
DataSourceAltCloud.cpython-313.pyc File 9.85 KB 0644
DataSourceAzure.cpython-313.pyc File 79.75 KB 0644
DataSourceBigstep.cpython-313.pyc File 2.86 KB 0644
DataSourceCloudCIX.cpython-313.pyc File 7.22 KB 0644
DataSourceCloudSigma.cpython-313.pyc File 5.18 KB 0644
DataSourceCloudStack.cpython-313.pyc File 13.11 KB 0644
DataSourceConfigDrive.cpython-313.pyc File 14.2 KB 0644
DataSourceDigitalOcean.cpython-313.pyc File 6.2 KB 0644
DataSourceEc2.cpython-313.pyc File 43.31 KB 0644
DataSourceExoscale.cpython-313.pyc File 8.9 KB 0644
DataSourceGCE.cpython-313.pyc File 16.12 KB 0644
DataSourceHetzner.cpython-313.pyc File 6.46 KB 0644
DataSourceIBMCloud.cpython-313.pyc File 18.43 KB 0644
DataSourceLXD.cpython-313.pyc File 20.3 KB 0644
DataSourceMAAS.cpython-313.pyc File 18.29 KB 0644
DataSourceNWCS.cpython-313.pyc File 6.76 KB 0644
DataSourceNoCloud.cpython-313.pyc File 17.26 KB 0644
DataSourceNone.cpython-313.pyc File 1.88 KB 0644
DataSourceOVF.cpython-313.pyc File 15.34 KB 0644
DataSourceOpenNebula.cpython-313.pyc File 18.96 KB 0644
DataSourceOpenStack.cpython-313.pyc File 13.1 KB 0644
DataSourceOracle.cpython-313.pyc File 21.77 KB 0644
DataSourceRbxCloud.cpython-313.pyc File 10.25 KB 0644
DataSourceScaleway.cpython-313.pyc File 17.07 KB 0644
DataSourceSmartOS.cpython-313.pyc File 38.32 KB 0644
DataSourceUpCloud.cpython-313.pyc File 7.11 KB 0644
DataSourceVMware.cpython-313.pyc File 35.8 KB 0644
DataSourceVultr.cpython-313.pyc File 5.79 KB 0644
DataSourceWSL.cpython-313.pyc File 15.48 KB 0644
__init__.cpython-313.pyc File 47.24 KB 0644
Filemanager