%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/sos/cleaner/preppers/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/sos/cleaner/preppers/__pycache__/usernames.cpython-312.pyc

�

i��d���&�ddlmZGd�de�Zy)�)�
SoSPrepperc�"�eZdZdZdZgd�Zd�Zy)�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���t�}gd�}|D]�}|j|�}|s�|j�D]l}	|j�dj	�}|rF||j
vr8|j
|�d|vr#|j
|jd�d��n��|jjD]"}||j
vs�|j
|��$|S#t$rY��wxYw)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_users	         �@/usr/lib/python3/dist-packages/sos/cleaner/preppers/usernames.py�_get_items_for_usernamez'UsernamePrepper._get_items_for_username$s������	
���
	�E��.�.�u�5�G����*�*�,�	
����:�:�<��?�0�0�2�D���D�N�N� :��	�	�$���4�<�!�I�I�d�j�j��&6�r�&:�;��
	
�	
	��	�	�+�+�	$�H��t�~�~�-��	�	�(�#�	$����!����s�A)C&�&	C2�1C2N)�__name__�
__module__�__qualname__�__doc__�namerr'��r&rrs����D��I�r.rN)�sos.cleaner.preppersrrr-r.r&�<module>r0s��,�5�j�5r.

Zerion Mini Shell 1.0