403Webshell
Server IP : 77.50.203.18  /  Your IP : 192.168.0.10
Web Server : Apache/2.4.62 (CentOS Stream) OpenSSL/3.5.7 mpm-itk/2.4.7-04 PHP/8.4.23
System : Linux web2 5.14.0-722.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jul 6 09:07:51 UTC 2026 x86_64
User : warsnews.ru ( 1001)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python3.9/site-packages/sos/report/plugins/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3.9/site-packages/sos/report/plugins/__pycache__/aws.cpython-39.pyc
a

ܓ�i
�@s&ddlmZmZGdd�dee�ZdS)�)�Plugin�IndependentPluginc@s0eZdZdZdZdZdd�Zdd�Zdd	�Zd
S)�AwszAWS EC2 instance metadataZaws)ZvirtcCsd}t|jdg|�R��S)N)z&/sys/devices/virtual/dmi/id/sys_vendorz(/sys/devices/virtual/dmi/id/bios_versionz(Amazon|.*amazon))�boolZ	file_grep)�selfZ	dmi_files�r�:/usr/lib/python3.9/site-packages/sos/report/plugins/aws.py�_is_ec2szAws._is_ec2cCs|��S)N)r	)rrrr�
check_enabledszAws.check_enabledc
Cs�|��s|j�d�dSd}d|��}z|j|dd�d}WntyRd}Yn0d}|rfd|��}gd	�}d
}|D]:}||}|�dd�}	|jd
|�d|��d|	�d�d�qvdS)Nz5Not an EC2 instance; skipping AWS metadata collectionz'http://169.254.169.254/latest/api/tokenzJcurl -sS -X PUT -H             X-aws-ec2-metadata-token-ttl-seconds:21600 �)�timeout�output�z-H X-aws-ec2-metadata-token:)�hostnamezinstance-idzinstance-life-cyclez
instance-typezplacement/availability-zone-idz(http://169.254.169.254/latest/meta-data/�/�_z	curl -sS � Z
aws_metadata_z.txt)Zsuggest_filename)r	Zsoslog�infoZexec_cmd�	Exception�replaceZadd_cmd_output)
rZ	token_urlZ	token_cmd�tokenZtoken_headerZmetadata_pathsZbase_url�pathZmeta_urlZ	safe_namerrr�setups2��


�z	Aws.setupN)	�__name__�
__module__�__qualname__Z
short_descZplugin_nameZprofilesr	r
rrrrrrsrN)Zsos.report.pluginsrrrrrrr�<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit