AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.122   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3/dist-packages/cloudinit/config/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /lib/python3/dist-packages/cloudinit/config/__pycache__/cc_phone_home.cpython-310.pyc
o

x[h��
@s�UdZddlZddlmZmZmZddlmZddlm	Z	ddl
mZddlm
Z
ddlmZgd	�Zd
e
gedgd�Zeed
<e�e�Zdede	dededdf
dd�ZdS)zPhone Home: Post data to url�N)�	templater�
url_helper�util)�Cloud)�Config)�
MetaSchema)�ALL_DISTROS)�PER_INSTANCE)�pub_key_rsa�
pub_key_ecdsa�pub_key_ed25519�instance_id�hostname�fqdn�
cc_phone_home�
phone_home)�id�distros�	frequency�activate_by_schema_keys�meta�name�cfg�cloud�args�returnc	Cs�|r
t�|d�}nd|vrt�d|�dS|d}d|vr&t�d|�dS|d}|�dd�}|�d�}zt|�}WnttfyOd	}t�	td
|�Ynw|dkrVt
}|��|��j
|jdd�j
d
�}dddd�}	|	��D]\}
}z	t�|�||
<Wqpty�t�	td|�Yqpwi}|D]}
|
|vr�||
||
<q�d||
<t�d|
�q�i}|��D]\}
}|dur�d||
<q�t|�||
<q�d|di}t�||�}ztj|||ddt�|j�d�WdSty�t�	td||�YdSw)Nrrz=Skipping module named %s, no 'phone_home' configuration found�urlzFSkipping module named %s, no 'url' found in 'phone_home' configuration�post�all�tries�
z?Configuration entry 'tries' is not an integer, using %s insteadT)r)r
rrz/etc/ssh/ssh_host_rsa_key.pubz/etc/ssh/ssh_host_ecdsa_key.pubz!/etc/ssh/ssh_host_ed25519_key.pub)r
rrz1%s: failed to open, can not phone home that data!z=Requested key %s from 'post' configuration list not availablezN/A�INSTANCE_IDr
��)�data�retries�sec_between�ssl_detailsz0Failed to post phone home data to %s in %s tries)r�	read_conf�LOG�debug�warning�get�int�
ValueError�	TypeError�logexc�
POST_LIST_ALL�get_instance_id�get_hostnamer�items�load_text_file�	Exception�strr�
render_stringr�read_file_or_url�fetch_ssl_details�paths)rrrr�ph_cfgr�	post_listr�all_keys�pubkeys�n�path�submit_keys�k�real_submit_keys�v�
url_params�rG�@/usr/lib/python3/dist-packages/cloudinit/config/cc_phone_home.py�handle1s���
�������
�
�
��rI)�__doc__�logging�	cloudinitrrr�cloudinit.cloudr�cloudinit.configr�cloudinit.config.schemar�cloudinit.distrosr�cloudinit.settingsr	r1r�__annotations__�	getLogger�__name__r)r7�listrIrGrGrGrH�<module>s 
�
"

Anon7 - 2022
AnonSec Team