__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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�$���SSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKJ	r	 SSK
JrJr Sr
Sr\R"\5r"SS\R$S9r"S	S
\5r\/rSSjrSrSS
jrSrSrSrSSjrg)�N)�util)�get_devicelist�read_sys_net_safez#/run/initramfs/open-iscsi.interface�disabledc�p�\rSrSrSr\RS\4Sj5r\RS\	4Sj5r
Srg)�InitramfsNetworkConfigSource�zBABC for net config sources that read config written by initramfses�returnc��g)zAIs this initramfs config source applicable to the current system?N���selfs �7/usr/lib/python3/dist-packages/cloudinit/net/cmdline.py�
is_applicable�*InitramfsNetworkConfigSource.is_applicable���c��g)z;Render a v1 network config from the initramfs configurationNrr
s r�
render_config�*InitramfsNetworkConfigSource.render_config"rrrN)�__name__�
__module__�__qualname__�__firstlineno__�__doc__�abc�abstractmethod�boolr�dictr�__static_attributes__rrrrrsK��L����P�t�P��P�	���J�t�J��Jrr)�	metaclassc�>�\rSrSrSrS	SjrS\4SjrS\4Sjr	Sr
g)
�KlibcNetworkConfigSource�'z�InitramfsNetworkConfigSource for klibc initramfs (i.e. Debian/Ubuntu)

Has three parameters, but they are intended to make testing simpler, _not_
for use in production code.  (This is indicated by the prepended
underscores.)
Nc�@�XlX lX0lURc[5UlURc[R
"5UlURc<0Ul[
5H&n[US5nU(dMXPRU'M( gg)N�address)�_files�
_mac_addrs�_cmdline�_get_klibc_net_cfg_filesr�get_cmdlinerr)rr'r(r)�k�mac_addrs      r�__init__�!KlibcNetworkConfigSource.__init__/s�����$�� �
��;�;��2�4�D�K��=�=� � �,�,�.�D�M��?�?�"� �D�O�#�%��,�Q�	�:���8�)1�O�O�A�&�&�#rr
c��UR(ah[R"UR5HnUR	S5(dM g [
RR[5(agg)a
Return whether this system has klibc initramfs network config or not

Will return True if:
    (a) klibc files exist in /run, AND
    (b) either:
        (i) ip= or ip6= are on the kernel cmdline, OR
        (ii) an open-iscsi interface file is present in the system
)zip=zip6=TF)	r'�shlex�splitr)�
startswith�os�path�exists�_OPEN_ISCSI_INTERFACE_FILE)r�items  rr�&KlibcNetworkConfigSource.is_applicableAsP���;�;����D�M�M�2���?�?�?�3�3��3��w�w�~�~�8�9�9��rc�>�[URURS9$)N)�files�	mac_addrs)�config_from_klibc_net_cfgr'r(r
s rr�&KlibcNetworkConfigSource.render_configTs��(��+�+��o�o�
�	
r)r)r'r()NNN)rrrrrr.rrrrr rrrr#r#'s$���2�$�t��&
�t�
rr#c���Uc0n[R"U5nSU;aUSOUSnUR	SUR	S55nU(dUR	S5(aSnOS	nUS
;aS	nUS;a[SU-5eS
U/S.nX1;aXUS'SGH.nUS-U;aMUR	US-U5nUS	:XaSnUSS.n	US:Xa
X'S-U	S'SH$n
Xz-U;dM
X'U
-X�R5'M& /nSHVnUR	X|-5n
U
(dM[
U
RS55(dM@URX'U-5 MX U(aJX�S'UR	S5nU(a.SU;aURS5U	S'OUR5U	S'USRU	5 GM1 X64$![an[S5UeSnAff=f)a�Convert a klibc written shell content file to a 'config' entry
When ip= is seen on the kernel command line in debian initramfs
and networking is brought up, ipconfig will populate
/run/net-<name>.cfg.

The files are shell style syntax, and examples are in the tests
provided here.  There is no good documentation on this unfortunately.

DEVICE=<name> is expected/required and PROTO should indicate if
this is 'none' (static) or 'dhcp' or 'dhcp6' (LP: #1621507) or 'static'
or 'off' (LP: 2065787). Note that IPV6PROTO is also written to address
the possibility of both ipv4 and ipv6 getting addresses.

Full syntax is documented at:
https://git.kernel.org/pub/scm/libs/klibc/klibc.git/plain/usr/kinit/ipconfig/README.ipconfig
N�DEVICE�DEVICE6z&no 'DEVICE' or 'DEVICE6' entry in data�PROTO�	IPV6PROTO�filename�dhcp�none)�static�off)rFrE�dhcp6zUnexpected value for PROTO: %s�physical)�type�name�subnets�mac_address)�IPV4�IPV6�ADDRrG�manual)rK�controlr&)�NETMASK�	BROADCAST�GATEWAY)�DNS0�DNS1z:.0�dns_nameservers�DOMAINSEARCH�,�
dns_searchrM)
r�load_shell_content�KeyError�
ValueError�get�lower�len�strip�appendr2)�contentr<�datarL�e�proto�iface�pre�	cur_proto�subnet�key�dns�nskey�ns�searchs               r�_klibc_to_config_entryrr^s#��$���	��"�"�7�+�D�J�!)�T�!1�t�H�~�t�I���
�H�H�W�d�h�h�{�3�4�E���8�8�J����E��E��!�!����-�-��9�E�A�B�B����
�E���(���m�� ����<�t�#���H�H�S�7�]�E�2�	���� �I�#��9���� � $�6�\� 2�F�9��7�C��y�D� �&*��9�o��y�y�{�#�7���%�E����#�+�&�B��r�c�"�(�(�5�/�*�*��
�
�4�e��,�-�	&�
�(+�$�%��X�X�n�-�F���&�=�+1�<�<��+<�F�<�(�+1�<�<�>�F�<�(�
�i�����'�O �R�;���K�J��A�B��I��J�s�G�
G1� G,�,G1c�\�[R"S5[R"S5-$)Nz/run/net-*.confz/run/net6-*.conf)�globrrrr*r*�s!���9�9�&�'�$�)�)�4F�*G�G�Grc�
�Uc
[5n/n0nUH�n[[R"U5US9upVXS;a�X5SnUR	S5UR	S5:waM[SR
USRX5S5UR	S5UR	S5S95eUSRUS5 X5SRU5 M�U/US	.X5'URU5 M� US
S.$)N)r<�entryrNzedevice '{name}' was defined multiple times ({files}) but had differing mac addresses: {old} -> {new}.� r;)rLr;�old�newrM)r;rv�)�config�version)
r*rrr�load_text_filer`r_�format�join�extendrd)r;r<�entries�names�cfg_filerLrv�prevs        rr=r=�s���}�(�*���G��E���,�����)�Y�
����=��;�w�'�D��x�x�
�&�%�)�)�M�*B�B� �H�HN��!�!�h�h�u�{�7�';�<� �H�H�]�3�!�I�I�m�4�	IO�I���
��O�"�"�5��#3�4��K�� �'�'��1�%-�J��?�E�K��N�N�5�!�)�,�!�,�,rc�z�[H1nU"5nUR5(dM!UR5s $ g)z�
Return v1 network config for initramfs-configured networking (or None)

This will consider each _INITRAMFS_CONFIG_SOURCES entry in turn, and return
v1 network configuration for the first one that is applicable.  If none are
applicable, return None.
N)�_INITRAMFS_CONFIG_SOURCESrr)�src_cls�
cfg_sources  r�read_initramfs_configr��s;��-���Y�
��'�'�)�)���'�'�)�)�
-�rc��[R"U5nSn[R"SUS9nUR	5U(aUR5 sSSS5 $![a% UsU(aUR5 sSSS5 $f=f!U(aUR5 ff=f!,(df   g=f)N�rb)�mode�fileobj)�io�BytesIO�gzip�GzipFile�read�close�IOError)�blob�iobuf�gzfps   r�_decomp_gzipr��s���	���D�	�U���	��=�=�d�E�:�D��9�9�;���
�
��
�	��
�	��K���
�
��
�	�
	����
�
����
�	�s?�B/�$A �B/� B�,B�-B/�B�B�B,�,B/�/
B=c��[R"U5n[
U5$![[4a [RSU5 gf=f)z�Decode a string base64 encoding, if gzipped, uncompress as well

:return: decompressed unencoded string of the data or empty string on
   unencoded data.
zaExpected base64 encoded kernel command line parameter network-config. Ignoring network-config=%s.�)�base64�	b64decode�	TypeErrorr_�LOG�errorr�)rfr�s  r�_b64dgzr�sS�������%�������
�z�"���	�	�
;��	
�
�
�s�#�&A�Ac�4�Uc[R"5nSU;azSnUR5H0nURS5(dMURSS5SnM2 U(a-U[:XaSS0$[R
"[
U55$g)Nznetwork-config=�=rzr{r)rr+r2r3�&KERNEL_CMDLINE_NETWORK_CONFIG_DISABLED�	load_yamlr�)�cmdline�data64�toks   r�read_kernel_cmdline_configr�s������"�"�$���G�#����=�=�?�C��~�~�/�0�0����3��*�1�-��#���?�?� �*�-�-��>�>�'�&�/�2�2�r)N)NN)rr�rtr�r��loggingr4r1�	cloudinitr�
cloudinit.netrrr7r��	getLoggerrr��ABCMetarr#r�rrr*r=r�r�r�r�rrr�<module>r�s����
���	��	���;�B��)3�&�
����!��	J�S�[�[�	J�1
�;�1
�h6�6��]�@H�-�>�$��&r

Filemanager

Name Type Size Permission Actions
__init__.cpython-313.pyc File 46.89 KB 0644
activators.cpython-313.pyc File 15.78 KB 0644
bsd.cpython-313.pyc File 10.46 KB 0644
cmdline.cpython-313.pyc File 10.75 KB 0644
dhcp.cpython-313.pyc File 37.06 KB 0644
eni.cpython-313.pyc File 20.84 KB 0644
ephemeral.cpython-313.pyc File 23.03 KB 0644
freebsd.cpython-313.pyc File 4.93 KB 0644
netbsd.cpython-313.pyc File 2.8 KB 0644
netplan.cpython-313.pyc File 22.56 KB 0644
network_manager.cpython-313.pyc File 22.29 KB 0644
network_state.cpython-313.pyc File 40.71 KB 0644
networkd.cpython-313.pyc File 13.82 KB 0644
openbsd.cpython-313.pyc File 3.9 KB 0644
renderer.cpython-313.pyc File 2.49 KB 0644
renderers.cpython-313.pyc File 2.02 KB 0644
sysconfig.cpython-313.pyc File 40.13 KB 0644
udev.cpython-313.pyc File 1.68 KB 0644
Filemanager