HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/sos/cleaner/preppers/__pycache__/usernames.cpython-310.pyc
o

i��d��@s ddlmZGdd�de�ZdS)�)�
SoSPrepperc@s$eZdZdZdZgd�Zdd�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.
    �username)
�core�nobody�	nfsnobody�shutdown�stack�reboot�root�ubuntur�wtmpc	
Cs�t�}gd�}|D]>}|�|�}|sq	|��D]/}z$|��d��}|r<||jvr<|�|�d|vr<|�|�d�d�WqtyFYqwq	|jj	D]}||jvrX|�|�qL|S)N)z(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�\���)
�set�get_file_content�
splitlines�split�lower�	skip_list�add�	Exception�opts�	usernames)	�self�archive�items�_files�_file�content�line�user�opt_user�r#�@/usr/lib/python3/dist-packages/sos/cleaner/preppers/usernames.py�_get_items_for_username$s.


���

�z'UsernamePrepper._get_items_for_usernameN)�__name__�
__module__�__qualname__�__doc__�namerr%r#r#r#r$rs

rN)�sos.cleaner.preppersrrr#r#r#r$�<module>s