403Webshell
Server IP : 178.105.222.151  /  Your IP : 216.73.216.38
Web Server : nginx/1.28.3
System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.5.4
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/cloudinit/sources/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/cloudinit/sources/__pycache__/DataSourceRbxCloud.cpython-314.pyc
+
��ig���Rt^RIt^RIt^RIt^RIt^RIt^RIHt^RIH	t	H
t
Ht^RIH
t
Ht]P!]4tRtRtRRltR	R
ltRtRtR
tRtRt!RR]	P64t]]	P:33.tRtR#)zr
This file contains code used to gather the user data passed to an
instance on rootbox / hyperone cloud platforms
N)�IPv4Address)�sources�subp�util)�
EventScope�	EventTypez
/etc/hostsc��\P!\RR7pV'd\P	R4R#\P	R4R#)T)�quietz5/etc/hosts exists - setting manage_etc_hosts to FalseFz=/etc/hosts does not exists - setting manage_etc_hosts to True)r�load_text_file�	ETC_HOSTS�LOG�debug)�hostss �F/usr/lib/python3/dist-packages/cloudinit/sources/DataSourceRbxCloud.py�get_manage_etc_hostsrs7�����	��6�E���	�	�I�J���I�I�M�N��c�0�V^8�dQhR\R\/#)��inc�return)�int�str)�formats"r�__annotate__r#s��:�:�C�:�C�:rc	�\�\\\\V44V,44#�N)rrr)�addrrs&&r�increment_ipr#s!���{�3�{�4�0�1�C�7�8�9�9rc�N�V^8�dQhR\P\,/#)rr)�typing�Listr)rs"rrr's��
�
�6�;�;�s�+�
rc�4�V\V^4\V^4.#)z�Return a list of 3 IP addresses: [addr, addr + 2, addr + 3]

@param addr: an object that is passed to IPvAddress
@return: list of strings
)r)rs&r�
get_three_ipsr"'s%��	
��T�1���T�1���rc�>�\P!R.V,4#)z�
Uses the preferred cloud-init subprocess def of subp.subp
and runs arping.  Breaking this to a separate function
for later use in mocking and unittests
�arping)r)�cmds&r�_sub_arpr&4s���9�9�h�Z�#�%�&�&rc	��RpVPR9dRpVF!p\RRW#R,VR,.4K#	R# \Pd2p\PRTR,TR,T4Rp?KhRp?ii;i)	z-Sz-sz-c�2�source�destinationz&Failed to arping from "%s" to "%s": %sN)�fedora�centos�rhel)�namer&r�ProcessExecutionErrorr�warning)�items�distro�source_param�item�errors&&   r�gratuitous_arpr6=s����L�
�{�{�2�2�����
	���s�L�x�.�$�}�:M�N�
���
�)�)�		�
�K�K�8��X���]�#��	
�
��			�s�?�B�&B�Bc��\\P!R4\P!R4,4pV'gR#VF/p\P!V\.R	OR7pV'dVu#K1	\PRRPV44R# \
d,pTP\P8wdhRp?K�Rp?i\Pd!\P!\RT4K�i;i)
zAReturns False (not found or error) or a dictionary with metadata.z
LABEL=CLOUDMDz
LABEL=cloudmdF)�device�callback�mtypeNz-Failed to mount %s when looking for user dataz0Did not find RbxCloud data, searched devices: %s�,)�vfat�fat�msdosfs)
�setr�find_devs_with�mount_cb�read_user_data_callback�OSError�errno�ENOENT�MountFailedError�logexcrr
�join)�devicesr8�rbx_data�errs    r�get_mdrLRs�������O�,�
�
�
�o�
.�	/��G�����	��}�}��0�0��H�
�����"�I�I�:�C�H�H�W�<M�����	��y�y�E�L�L�(��)���$�$�	��K�K��D�f�
�	�s$�(B!�!D
�, C�D
�)D
�	D
c��R^R\V4UUUu.uF�wrRRRRP\V44RVR,P4R	VR
,Uu.uFIpRRRVR,R
VR,R
,RRRVR,R,RVR,R,R,/NKK	up/NK�	uppp/#uupiuupppi)zGenerate network configuration

@param netadps: A list of network adapter settings

@returns: A dict containing network config
�version�config�type�physicalr.zeth{}�mac_address�
macaddress�subnets�ip�static�address�netmask�network�control�auto�gateway�dns_nameservers�dns�nameservers)�	enumeraterr�lower)�netadps�i�netadprUs&   r�generate_network_configreqs���	�1��&'�w�/�'
�&0�	��#�
�����s�1�v�.��v�l�3�9�9�;��%�T�l��+����!�2�i�=�!�6�)�#4�Y�#?�!�6�!�6�)�#4�Y�#?�)�6�)�+<�U�+C�)�,�
	�+��	
�$0�'
������
s�AB;�AB6"�(B;�6B;c�.�\P!\P!\PPVR4R7R7p\P!\PPVR4RR7pRV9gRV9d\P!\R	4R
#VPR/4PR4pVPR/4PR
.4pR
pVPR/4PR4'dVR,R,R,p\VR,4pRTRRVR,R,RVR,R,R./RVR,UUU	u.uF@pVR,F0p\VR,R,4Fp	RVR,RV	/NK	K2	KB	up	ppRRRR RR!R"RVR#VR$R%.R&VR'R(R)V//R*VR+\4//p
\PR,4\PV
4V
#uup	ppi)-z�This callback will be applied by util.mount_cb() on the mounted
drive.

@param mount_dir: String representing path of directory where mounted drive
is available

@returns: A dict containing userdata, metadata and cfg based on metadata.
z
cloud.json)�fname)�textz	user.dataT)rgr	�vmrdz(Failed to load metadata. Invalid format.N�additionalMetadata�username�sshKeys�password�sha512�userdata�metadatazinstance-id�_idzlocal-hostnamer.�public-keysr6rUrYr\r)rWr*�cfg�
ssh_pwauth�disable_root�system_info�default_user�gecos�sudozALL=(ALL) NOPASSWD:ALL�passwd�lock_passwdF�ssh_authorized_keys�network_config�manage_etc_hostszreturning DATA object:)r�	load_json�load_binary_file�os�pathrHr
rGr�getrer"rr
)�	mount_dir�	meta_data�	user_datark�ssh_keys�hashrYrdrU�target�datas&          rrBrB�s
�����
�
"�
"������i��)N�
O��I��#�#��g�g�l�l�9�k�2�$��I��9���	� 9����C�C�D���}�}�1�2�6�:�:�:�F�H��}�}�1�2�6�:�:�9�b�I�H��D��}�}�)�2�.�2�2�:�>�>��-�.�z�:�8�D��%�i��&9�:�G�	�I���9�T�?�5�1��i��o�f�5��2�
�
	�#�H�-�
�-���T�l�l��'��y�(9�)�(D�E���r�)�}�m�V�<�F�
=�"�
=�-�
�	��$��D����H��X��5�6��d�!�5�)�8�
!�	�
�g�� 4� 6�
��D�>�I�I�&�'��I�I�d�O��K��7
s�5AHc�a�]tRt^�toRt]P]P]P]P0/tRtRt
Rt]R4tRtRtRtR	tR
tVtR#)�DataSourceRbxCloud�RbxCloudc�p�\PPWW#4RVnRVnRVnR#r)r�
DataSource�__init__�seedr6rs)�self�sys_cfgr2�pathss&&&&rr��DataSourceRbxCloud.__init__�s.�����#�#�D�6�A���	�"�����rc�h�\PPV4pV:RVP:R2#)z [seed=�])rr��__str__r�)r��roots& rr��DataSourceRbxCloud.__str__�s'���!�!�)�)�$�/��!%�t�y�y�1�1rc��\4pVRJdR#VR,VnVR,VnVR,VnVR,VnR#)z_
Metadata is passed to the launching instance which
is used to perform instance configuration.
Frorpr6rsT)rL�userdata_rawrpr6rs)r�rJs& r�	_get_data�DataSourceRbxCloud._get_data�sK��
�8���u���$�Z�0��� ��,��
�&�'7�8����E�?���rc�(�VPR,#)r}�rs�r�s&rr}�!DataSourceRbxCloud.network_config�s���x�x�(�)�)rc�(�VPR,#)rr)rpr�s&r�get_public_ssh_keys�&DataSourceRbxCloud.get_public_ssh_keys�s���}�}�]�+�+rc��VP#r)r�r�s&r�get_userdata_raw�#DataSourceRbxCloud.get_userdata_raw�s��� � � rc��VP#rr�r�s&r�get_config_obj�!DataSourceRbxCloud.get_config_obj�s���x�x�rc�F�\VPVP4R#r)r6r2)r�rs�is_new_instances&&&r�activate�DataSourceRbxCloud.activates���t�*�*�D�K�K�8r)rsr6rpr�r�N)�__name__�
__module__�__qualname__�__firstlineno__�dsnamer�NETWORKr�BOOT_NEW_INSTANCE�BOOT�BOOT_LEGACY�default_update_eventsr�r�r��propertyr}r�r�r�r��__static_attributes__�__classdictcell__)�
__classdict__s@rr�r��su����
�F�����'�'��N�N��!�!�
����2���*��*�,�!��9�9rr�c�8�\P!V\4#r)r�list_from_depends�datasources)�dependss&r�get_datasource_listr�s���$�$�W�k�:�:r) �__doc__rD�loggingr��os.pathr�	ipaddressr�	cloudinitrrr�cloudinit.eventrr�	getLoggerr�rrrrr"r&r6rLrerBr�r��DEP_FILESYSTEMr�r��rr�<module>r�s����
��	��
�!�)�)�1�
����!���	��:�
�'��*�>�B=�@09��+�+�09�j�'�0�0�2�3���;r

Youez - 2016 - github.com/yon3zu
LinuXploit