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__/usernames.cpython-36.pyc
3

3��d��@s ddlmZGdd�de�ZdS)�)�
SoSPrepperc
@s4eZdZdZdZddddddd	d
ddg
Zdd
�ZdS)�UsernamePrepperz�
    This prepper is used to source usernames from various `last` output content
    as well as a couple select files. This prepper will also leverage the
    --usernames option.
    ZusernameZcoreZnobodyZ	nfsnobodyZshutdown�stackZreboot�rootZubuntuZwtmpc	
Cs�t�}ddddddg}x�|D]�}|j|�}|s0qxn|j�D]b}yH|j�dj�}|r�||jkr�|j|�d|kr�|j|jd�d
�Wq:tk
r�Yq:Xq:WqWx$|jj	D]}||jkr�|j|�q�W|S)Nz(sos_commands/login/lastlog_-u_1000-60000z)sos_commands/login/lastlog_-u_60001-65536z.sos_commands/login/lastlog_-u_65537-4294967295zsos_commands/login/lastzetc/cron.allowz
etc/cron.denyr�\����)
�setZget_file_content�
splitlines�split�lower�	skip_list�add�	ExceptionZoptsZ	usernames)	�self�archive�items�_filesZ_fileZcontent�line�userZopt_user�r�/usr/lib/python3.6/usernames.py�_get_items_for_username$s0



z'UsernamePrepper._get_items_for_usernameN)�__name__�
__module__�__qualname__�__doc__�namer
rrrrrrsrN)Zsos.cleaner.preppersrrrrrr�<module>s