HEX
Server: Apache
System: Linux dinesh8189 5.15.98-grsec-sharedvalley-2.lc.el8.x86_64 #1 SMP Thu Mar 9 09:07:30 -03 2023 x86_64
User: cgmgerenciamento1 (814285)
PHP: 8.1.26
Disabled: apache_child_terminate,dl,escapeshellarg,escapeshellcmd,exec,link,mail,openlog,passthru,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_get_last_error,pcntl_getpriority,pcntl_setpriority,pcntl_signal,pcntl_signal_dispatch,pcntl_sigprocmask,pcntl_sigtimedwait,pcntl_sigwaitinfo,pcntl_strerror,pcntl_wait,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,php_check_syntax,php_strip_whitespace,popen,proc_close,proc_open,shell_exec,symlink,system
Upload Files
File: //usr/lib/python3.6/site-packages/sos/cleaner/preppers/__pycache__/hostname.cpython-36.pyc
3

3��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CsFg}d}|jrd}n
|jrd}|j|�}|r�|dkr�|jd�}t|�dkrl|j|d�|jdj|d�t|�dkr�dj|dd��}|j|j	��|j|j	��|jd
�}xr|j
�D]f}|jd�s�d|kr�q�|j�dd�}	x<|	D]4}
t|
jd��dk�r|jdj|
�q�|j|
�q�Wq�Wx|jj
D]}|j|��q.W|S)
Nrzsos_commands/host/hostnamez"data/insights_commands/hostname_-fZ	localhost�.�r��z	etc/hosts�#���)Zis_sosZis_insightsZget_file_content�split�len�appendZregex_items�add�join�strip�
splitlines�
startswithZopts�domains)�self�archive�itemsZ_fileZcontentrZ
top_domainZ_hosts�lineZhostln�hostZdomain�r�/usr/lib/python3.6/hostname.py�_get_items_for_hostnames8



z'HostnamePrepper._get_items_for_hostnameN)�__name__�
__module__�__qualname__�__doc__�namerrrrrrs
rN)Zsos.cleaner.preppersrrrrrr�<module>s