403Webshell
Server IP : 167.99.254.82  /  Your IP : 216.73.216.188
Web Server : Apache
System : Linux host.techisquad.com 5.15.0-190-generic #200-Ubuntu SMP Fri Aug 7 15:06:04 UTC 2026 x86_64
User : pawluxera ( 1011)
PHP Version : 8.1.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python3/dist-packages/sos/report/plugins/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3/dist-packages/sos/report/plugins/__pycache__/opensearch.cpython-310.pyc
o

G%@iA
�@s.ddlZddlmZmZGdd�dee�ZdS)�N)�Plugin�IndependentPluginc@s0eZdZdZdZdZdZdZdd�Zdd�Z	d	S)
�
OpenSearchzOpenSearch service�
opensearch)�services)rc	
Csd}d}z]t|dd��E}|D]:}t�d|�}t�d|�}|r6t|���dkr6|��d��}t�d	d
|�}q|rHt|���dkrH|��d��}qWd�n
1sSwYW||fSW||fSty�}z|�d|�d
|���WYd}~||fSd}~ww)z Get hostname and port number �	localhost�9200zUTF-8)�encodingz(^network.host):(.*)z(^http.port):(.*)����z"|\'�NzFailed to parse z: )	�open�re�search�len�groups�strip�sub�	Exception�	_log_info)	�self�opensearch_config_file�hostname�port�fread�line�network_host�network_port�err�r�?/usr/lib/python3/dist-packages/sos/report/plugins/opensearch.py�get_hostname_ports0����� ��zOpenSearch.get_hostname_portcCs�|�d�}|�|�|�d�r|�d�n|�d�|�|�\}}|d|}|�d|�d�d|�d�d|�d	�d|�d
�d|�d�d|�d�d|�d
�g�dS)Nz/etc/opensearch/opensearch.yml�all_logsz/var/log/opensearch/*z/var/log/opensearch/*.log�:z
curl -X GET 'z/_cluster/settings?pretty'z/_cluster/health?pretty'z/_cluster/stats?pretty'z/_cat/nodes?v'z/_cat/indices'z
/_cat/shards'z/_cat/aliases')�	path_join�
add_copy_spec�
get_optionr!�add_cmd_output)rr�hostr�endpointrrr �setup+s$�










�zOpenSearch.setupN)
�__name__�
__module__�__qualname__�
short_desc�plugin_name�profiles�packagesrr!r*rrrr rsr)r�sos.report.pluginsrrrrrrr �<module>s


Youez - 2016 - github.com/yon3zu
LinuXploit