Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.52 (Ubuntu)
System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64
User : www-data ( 33)
PHP Version : 8.1.2-1ubuntu2.21
Disable Function : NONE
Directory :  /lib/python3/dist-packages/sos/report/plugins/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

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

i��dP
�@sbddlmZmZmZmZddlmZmZGdd�de�ZGdd�dee�Z	Gdd�deee�Z
d	S)
�)�Plugin�RedHatPlugin�DebianPlugin�UbuntuPlugin)�join�normpathc@s8eZdZdZdZdZdZeZdd�Zdd�Z	d	d
�Z
dS)�NamedzBIND named server�named)�system�services�network�/etc/named.confcCsb|�ddg�|jD]$}|�|�r.|�||�|�g�|�t|�|�d�t|�|�d�g�q
dS)Nz/etc/default/bindz/var/log/named*.logz
chroot/devzchroot/proc)�
add_copy_spec�config_files�path_exists�get_dns_dir�add_forbidden_pathr)�self�cfg�r�:/usr/lib/python3/dist-packages/sos/report/plugins/named.py�setups �

����zNamed.setupcCs |�d|�}|rt|d�SdS)z3 grab directory path from named{conf,boot}
        zdirectory\s+\"(.*)\"r�)�do_regex_find_allr)r�config_file�directory_listrrrr&s�zNamed.get_dns_dircCsd}d}|�|j||�dS)Nz(\s*arg \"password )[^\"]*z\1******)�do_file_sub�
named_conf)r�match�substrrr�postproc0szNamed.postprocN)�__name__�
__module__�__qualname__�
short_desc�plugin_name�profilesrrrrr rrrrr
s
rcs0eZdZdZdZedfZdZ�fdd�Z�ZS)�RedHatNamedr
)r
z/etc/named.boot�/etc/sysconfig/named)�bindcs:tt|���|�d�|�d�|�d�|�d�dS)Nz/etc/named/r(zklist -ket /etc/named.keytabz/etc/named.keytab)�superr'rr�add_cmd_outputr�r��	__class__rrr>s



zRedHatNamed.setup)	r!r"r#rr�files�packagesr�
__classcell__rrr-rr'6sr'cs2eZdZdZdZdZeddfZ�fdd�Z�ZS)�DebianNamed)�/etc/bind/named.conf)�bind9r3z/etc/bind/named.conf.optionsz/etc/bind/named.conf.localcstt|���|�d�dS)Nz
/etc/bind/)r*r2rrr,r-rrrPs
zDebianNamed.setup)	r!r"r#r/r0rrrr1rrr-rr2Gs�r2N)�sos.report.pluginsrrrr�os.pathrrrr'r2rrrr�<module>s
)

Spamworldpro Mini