403Webshell
Server IP : 15.235.198.142  /  Your IP : 216.73.216.190
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/sos/report/plugins/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

i��dP
��t�ddlmZmZmZmZddlmZmZGd�de�ZGd�dee�Z	Gd�deee�Z
y	)
�)�Plugin�RedHatPlugin�DebianPlugin�UbuntuPlugin)�join�normpathc�2�eZdZdZdZdZdZeZd�Zd�Z	d�Z
y)	�NamedzBIND named server�named)�system�services�network�/etc/named.confc	�>�|jddg�|jD]{}|j|�s�|j||j|�g�|j	t|j|�d�t|j|�d�g��}y)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�cfgs  �:/usr/lib/python3/dist-packages/sos/report/plugins/named.py�setupzNamed.setups�������!�
�	��$�$�		�C�����$��"�"���$�$�S�)�$���'�'���)�)�#�.��=���)�)�#�.�
�>�)��
		�c�H�|jd|�}|rt|d�Sy)z3 grab directory path from named{conf,boot}
        zdirectory\s+\"(.*)\"r�)�do_regex_find_allr)r�config_file�directory_lists   rrzNamed.get_dns_dir&s0���/�/�0G�0;�=����N�1�-�.�.�rc�F�d}d}|j|j||�y)Nz(\s*arg \"password )[^\"]*z\1******)�do_file_sub�
named_conf)r�match�substs   r�postproczNamed.postproc0s"��-����������%��7rN)�__name__�
__module__�__qualname__�
short_desc�plugin_name�profilesr"rrrr%�rrr
r

s*��$�J��K�0�H�"�J��L�� �8rr
c�2��eZdZdZdZedfZdZ�fd�Z�xZS)�RedHatNamedr)rz/etc/named.boot�/etc/sysconfig/named)�bindc���tt|��|jd�|jd�|j	d�|jd�y)Nz/etc/named/r/zklist -ket /etc/named.keytabz/etc/named.keytab)�superr.rr�add_cmd_outputr�r�	__class__s �rrzRedHatNamed.setup>sN���
�k�4�&�(����=�)����1�2����:�;���� 3�4�r)	r&r'r(r"r�files�packagesr�
__classcell__�r5s@rr.r.6s)���"�J�'�L�
�/�0�E��H��rr.c�4��eZdZdZdZdZeddfZ�fd�Z�xZS)�DebianNamed)�/etc/bind/named.conf)�bind9r<z/etc/bind/named.conf.optionsz/etc/bind/named.conf.localc�L��tt|��|jd�y)Nz
/etc/bind/)r2r;rrr4s �rrzDebianNamed.setupPs!���
�k�4�&�(����<�(�r)	r&r'r(r6r7r"rrr8r9s@rr;r;Gs,���%�E��H�'�J��2�0�2�L��rr;N)�sos.report.pluginsrrrr�os.pathrrr
r.r;r,rr�<module>rAs<��P�O�"�&8�F�&8�R�%���"�%��|�r

Youez - 2016 - github.com/yon3zu
LinuXploit