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/cleaner/preppers/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/sos/cleaner/preppers/__pycache__/hostname.cpython-310.pyc
o

i��d��@s ddlmZGdd�de�ZdS)�)�
SoSPrepperc@seZdZdZdZdd�ZdS)�HostnamePrepperaw
    Prepper for providing domain and hostname information to the hostname
    mapping.

    The items from hostname sources are handled manually via the _get_items
    method, rather than passing the file directly, as the parser does not know
    what hostnames or domains to match on initially.

    This will also populate the regex_items list with local short names.
    �hostnamecCs6g}d}|jr
d}n|jrd}|�|�}|rS|dkrS|�d�}t|�dkr6|�|d�|jd�|d�t|�dkrLd�|d	d��}|�|�	��|�|�	��|�d
�}|�
�D]0}|�d�sgd|vrhq\|��dd�}	|	D]}
t|
�d��dkr�|jd�|
�qr|�|
�qrq\|jj
D]}|�|�q�|S)Nrzsos_commands/host/hostnamez"data/insights_commands/hostname_-f�	localhost�.�r����z	etc/hosts�#)�is_sos�is_insights�get_file_content�split�len�append�regex_items�add�join�strip�
splitlines�
startswith�opts�domains)�self�archive�items�_file�contentr�
top_domain�_hosts�line�hostln�host�domain�r$�?/usr/lib/python3/dist-packages/sos/cleaner/preppers/hostname.py�_get_items_for_hostnames:


�z'HostnamePrepper._get_items_for_hostnameN)�__name__�
__module__�__qualname__�__doc__�namer&r$r$r$r%rsrN)�sos.cleaner.preppersrrr$r$r$r%�<module>s


Spamworldpro Mini