관리-도구
편집 파일: usernames.cpython-39.opt-1.pyc
a -�_g� � @ s d dl mZ G dd� de�ZdS )� )� SoSPrepperc @ s$ e Zd ZdZdZg d�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) ZcoreZnobodyZ nfsnobodyZshutdown�stackZreboot�rootZubuntur Zwtmpc C s� t � }g d�}|D ]~}|�|�}|s&q|�� D ]`}zH|�� d �� }|rx|| jvrx|�|� d|v rx|�|�d�d � W q. ty� Y q.0 q.q| jj D ]}|| jvr�|�|� q�|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 �\���) �setZget_file_content� splitlines�split�lower� skip_list�add� ExceptionZoptsZ usernames) �self�archive�items�_filesZ_fileZcontent�line�userZopt_user� r �B/usr/lib/python3.9/site-packages/sos/cleaner/preppers/usernames.py�_get_items_for_username$ s&