CasperSecurity

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

o

([Qh
�@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�rootztimeout:�ubuntur�wtmpc	
Cs�t�}gd�}|D]W}|�|�}|sq	|��D]H}z=|��d��}d|vr;t|��d�dkr9|��d��}nWq|rU||jvrU|�|�d|vrU|�|�d�d�Wqty_Yqwq	|j	j
D]}||jvrq|�|�qe|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/lastlog2zsos_commands/login/lastzsos_commands/login/last_-Fzsos_commands/login/lsloginszetc/cron.allowz
etc/cron.denyr�lsloginsi���\���)�set�get_file_content�
splitlines�split�lower�int�	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%s6

���

�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

Hacker Blog, Shell İndir, Sql İnjection, XSS Attacks, LFI Attacks, Social Hacking, Exploit Bot, Proxy Tools, Web Shell, PHP Shell, Alfa Shell İndir, Hacking Training Set, DDoS Script, Denial Of Service, Botnet, RFI Attacks, Encryption
Telegram @BIBIL_0DAY