⚝
One Hat Cyber Team
⚝
Your IP:
18.191.28.129
Server IP:
97.74.87.16
Server:
Linux 16.87.74.97.host.secureserver.net 5.14.0-503.38.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 18 08:52:10 EDT 2025 x86_64
Server Software:
Apache
PHP Version:
8.2.28
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
lib
/
fm-agent
/
library
/
__pycache__
/
View File Name :
container_discovery.cpython-39.pyc
a � �f7 � @ sP d dl Z d dlZd dlZd dlmZmZ e �d�Zdd� Z ddd�Z d d � ZdS )� N)�UnixHTTPConnection� json_loadsZ Containersc C sR t j�d�sdS z(td�} | jddddid� | �� W n tyL Y dS 0 d S ) N�/var/run/docker.sockz no-docker�GETz/containers/json�Host� localhost��headersz no-permission�success)�os�path�existsr �request�getresponse� Exception)�conn� r �0/usr/lib/fm-agent/library/container_discovery.py�check_access s r Fc C s� t d�}|jddddid� |�� �� }t|�}t|�s<g S i }| �d�rt| �d�}|D ]\} } |�| g �� | � qXg }|D �]v}|d d d � } |d }|� | �}|s�|dkr�q||r�|s�|d |d k}|�|� |r�d|d <