__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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����SSKrSSKrSSKrSSKJr SSKJr SSKJrJr SSS.r	\R"\5rSSjr
S	rSS
jrSrSSjrS
rg)�N)�dmi)�net)�
url_helper�util�eth0�eth1)�public�privatec���U(d![U5n[RSU5 U(d[S5eSR	[
R"SS5[
R"SS55nURRX5 URRU5 [RSX5 U$![a [R"[S	UU5 ef=f)
z�Bring up NIC using an address using link-local (ip4LL) IPs.
On DigitalOcean, the link-local domain is per-droplet routed, so there
is no risk of collisions. However, to be more safe, the ip4LL
address is random.
z,selected interface '%s' for reading metadatazPunable to find interfaces to access themeta-data server. This droplet is broken.z169.254.{0}.{1}/16��r�z&brought device '%s' up with address %szRip4LL address assignment of '%s' to '%s' failed. Droplet networking will be broken)
�get_link_local_nic�LOG�debug�RuntimeError�format�random�randint�net_ops�add_addr�link_up�	Exceptionr�logexc)�distro�nic�addrs   �H/usr/lib/python3/dist-packages/cloudinit/sources/helpers/digitalocean.py�assign_ipv4_link_localrs���� ��(���	�	�@�#�F���
8�
�	
�
 �&�&����q�#�����q�#� 6��D��������*������s�#��	�	�:�C�F��J��������
1���	
�	��s
�8AC�)C/c��[R"5Vs/sH'nURRU5(dM%UPM) nnU(dg[	USS9$s snf)Nc�0�[R"US5$)N�ifindex)�cloudnet�read_sys_net_int)�ds r�<lambda>�$get_link_local_nic.<locals>.<lambda>@s��8�#<�#<�Q�	�#J�)�key)r#�get_devicelist�
networking�is_physical�min)r�f�nicss   rrr8s\���(�(�*��*�A����(�(��+�	
�*�	��
���t�J�K�K��s�$A�Ac�2�U(d[RS5 g[RS5 URRU5 [RSU5 g![a&n[
R"[SX5 SnAgSnAff=f)zoRemove the ip4LL address. While this is not necessary, the ip4LL
address is extraneous and confusing to users.
zLno link_local address interface defined, skipping link local address cleanupNzcleaning up ipv4LL addresszremoved ip4LL addresses from %sz)failed to remove ip4LL address from '%s'.)rrr�
flush_addrrrr)rr�es   r�del_ipv4_link_localr3Csw����	�	�
$�	
�	��I�I�*�+�N����!�!�#�&��	�	�3�S�9���N����C�D�c�M�M��N�s�1A&�&
B�0B�Bc�L�Sn/n[R"5n[RSU5 UGH8nXSn[RSU5 UR	S5nXt;a[SU<SU<35eUR	U5nUR	SS	5n	[R	X�5n
X�:wa[RS
U	UUU
5 OSn[RX�U5 SUU
S
.n/n
SHFnUR	US5nU(dMU"U5nU	S:wdSU;aUS	U
RU5 MH X�S'URU5 [RSX�5 GM; U(a*[RSU5 URSUS.5 SUS.$)aConvert the DigitalOcean Network description into Cloud-init's netconfig
format.

Example JSON:
 {'public': [
       {'mac': '04:01:58:27:7f:01',
        'ipv4': {'gateway': '45.55.32.1',
                 'netmask': '255.255.224.0',
                 'ip_address': '45.55.50.93'},
        'anchor_ipv4': {
                 'gateway': '10.17.0.1',
                 'netmask': '255.255.0.0',
                 'ip_address': '10.17.0.9'},
        'type': 'public',
        'ipv6': {'gateway': '....',
                 'ip_address': '....',
                 'cidr': 64}}
    ],
   'private': [
       {'mac': '04:01:58:27:7f:02',
        'ipv4': {'gateway': '10.132.0.1',
                 'netmask': '255.255.0.0',
                 'ip_address': '10.132.75.35'},
        'type': 'private'}
    ]
 }
c��SSURS5URS5S.nSURS5;a5SRURS5URS55US	'U$URS
5US
'U$)N�static�auto�
ip_address�gateway)�type�control�addressr9�:z{0}/{1}�cidrr<�netmask)�getr)�pcfg�subparts  r�_get_subnet_part�7convert_network_configuration.<locals>._get_subnet_partus������x�x��-��x�x�	�*�	
���$�(�(�<�(�(�!*�!1�!1�����&�����(8�"�G�I����"&���)�!4�G�I���r(znic mapping: %srzconsidering %s�macz3Did not find network interface on system with mac 'z'. Cannot apply configuration: r:�unknownz6Found %s interface '%s' on '%s', assigned name of '%s'zfFound interface '%s' on '%s', which is not a public or private interface. Using default system naming.�physical)r:�mac_address�name)�ipv4�ipv6�anchor_ipv4�anchor_ipv6Nr	�anchorr9�subnetsznic '%s' configuration: %szadded dns servers: %s�
nameserver)r:r<r)�version�config)r#�get_interfaces_by_macrrr@r�NIC_MAP�append)rR�dns_serversrC�nic_configs�macs_to_nics�nrrH�
sysfs_name�nic_type�if_name�msg�ncfgrO�netdef�
raw_subnet�sub_parts                 r�convert_network_configurationrbXs���:�"�K��1�1�3�L��I�I���.�
���i��l���	�	�"�C�(��g�g�e�n���*����%��
�"�%�%�k�2�
��7�7�6�9�-���+�+�h�3��� ��I�I�H�����
�E�
�
�I�I�c�
�3��&��
����D�F������.�J���'�
�3�H��8�#�x�6�'9��Y�'��N�N�8�$�E�"�Y�����4� ��	�	�.��>�g�j��	�	�)�;�7����L�[�I�J��K�0�0r(c���[R"XX#S9nUR5(d[SU-5e[R
"URR55$)N)�timeout�sec_between�retrieszunable to read metadata at %s)r�readurl�okr�json�loads�contents�decode)�urlrdrerf�responses     r�
read_metadataro�sS���!�!��+��H��;�;�=�=��:�S�@�A�A��:�:�h�'�'�.�.�0�1�1r(c���[R"S5nUS:wag[R"S5nU(a[RSU5 SU4$Sn[R	U5 [U5e)Nzsystem-manufacturer�DigitalOcean)FNzsystem-serial-numberz8system identified via SMBIOS as DigitalOcean Droplet: %sz�system identified via SMBIOS as a DigitalOcean Droplet, but did not provide an ID. Please file a support ticket at: https://cloud.digitalocean.com/support/tickets/newT)r�
read_dmi_datarr�criticalr)�vendor_name�
droplet_idr]s   r�read_sysinforv�sw��
�#�#�$9�:�K��n�$���"�"�#9�:�J���	�	�F��	
�
�*���
A�	�	���S���3��r()N)�rw�)ri�loggingr�	cloudinitrrr#rrrT�	getLogger�__name__rrrr3rbrorv�r(r�<module>r~sV��
��
��%�&���
/��
����!��#�LL�N�*k1�\2�r(

Filemanager

Name Type Size Permission Actions
__init__.cpython-313.pyc File 165 B 0644
akamai.cpython-313.pyc File 1.93 KB 0644
aliyun.cpython-313.pyc File 5.91 KB 0644
azure.cpython-313.pyc File 46.53 KB 0644
cloudsigma.cpython-313.pyc File 4.71 KB 0644
digitalocean.cpython-313.pyc File 8.25 KB 0644
ec2.cpython-313.pyc File 9.33 KB 0644
hetzner.cpython-313.pyc File 1.14 KB 0644
netlink.cpython-313.pyc File 13.02 KB 0644
openstack.cpython-313.pyc File 28.2 KB 0644
upcloud.cpython-313.pyc File 6.95 KB 0644
vultr.cpython-313.pyc File 8.2 KB 0644
Filemanager