관리-도구
편집 파일: base.cpython-311.opt-1.pyc
� IMg� � �� � d dl Z d dlmZmZ d dlmZ d dlmZmZm Z m Z d dlmZ d dl mZ g d�Z G d� d e� � Z G d � de� � Z G d� d e� � Zd� Z G d� de� � ZdS )� N)�ABC�abstractmethod)�Path)�Dict�List�Optional�Set)�MalwareTune��get_external_ip)�20�21�22�25�53�80�110�443�587�993�995c � � e Zd ZdS )�PanelExceptionN��__name__� __module__�__qualname__� � �W/opt/imunify360/venv/lib/python3.11/site-packages/defence360agent/subsys/panels/base.pyr r � � � � � � ��Dr r c � � e Zd ZdS )�InvalidTokenExceptionNr r r r r# r# r! r r# c � � e Zd ZdZdZdgez dgez d�g d�g d�d�d�ZeZg Z e ed � � � � � Ze d � � � Z e d� � � Zed"d �� � Zed"d�� � Zed� � � Zedee fd�� � Zedeeee f fd�� � Zedeeee f fd�� � Zdeeeeef f fd�Zdefd�Zdefd�Ze d� � � Zdefd�Zede e fd�� � Z!e dede"fd�� � Z#e dede$e fd�� � Z%e defd�� � Z&e dd�d �� � Z'edeeef fd!�� � Z(dS )#� AbstractPanelzTAbstract class that provides only basic hosting panel integration functionality.�MINIMAL�465�113)�in�out)r r r r )r r r r( �123)�tcp�udpc � � dS )z\ Checks if hosting panel installed on the known path :return: bool: Nr ��clss r �is_installedzAbstractPanel.is_installed2 s � � �r c � � t � � S )zb Stub with external IP as currently only implementation for cPanel needed r r/ s r � get_server_ipzAbstractPanel.get_server_ip; s � � � � � r c � � K � d S �Nr r/ s r �versionzAbstractPanel.versionC s � � � ��tr Nc � � K � dS )zM Registers and enables Imunify360 UI plugin in hosting panel Nr ��self�names r �enable_imunify360_pluginz&AbstractPanel.enable_imunify360_pluginG � � � � � �r c � � K � dS )zC UnRegisters Imunify360 UI plugin in hosting panel Nr r8 s r �disable_imunify360_pluginz'AbstractPanel.disable_imunify360_pluginN r<