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 :  /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 : /lib/python3/dist-packages/sos/report/plugins/__pycache__/scsi.cpython-310.pyc
o

���bX	�@s2ddlmZddlmZmZGdd�dee�ZdS)�)�glob)�Plugin�IndependentPluginc@s$eZdZdZdZdZdZdd�ZdS)�Scsia�
    Collects various information about the SCSI devices install on the host
    system.

    This plugin will capture a large amount of data from the /sys filesystem,
    as well as several different invocations of the `lsscsi` command.

    Additionally, several `sg_persist` commands will be collected for each
    SCSI device identified by sos. Note that in most cases these commands are
    provided by the `sg3_utils` package which may not be present by default.
    zSCSI devices�scsi)�storage�hardwarecCs�|�gd��dg}|�d�}|ddkr3|d��D]}|��d|vr2|��d}|�d	|�q|jd
dd�|�gd
��td�}|jd|d�|jgd�ddgd�dS)N)z
/proc/scsiz/etc/stinit.defz
/sys/bus/scsiz/sys/class/scsi_hostz/sys/class/scsi_diskz/sys/class/scsi_devicez/sys/class/scsi_generic�enclosuz	lsscsi -g�statusr�output����zsg_ses -p2 -b1 %sz	lsscsi -i�lsscsi)�suggest_filename)z	sg_map -x�lspathz
lsmap -all�lsnportsz	lsscsi -Hz	lsscsi -dz	lsscsi -sz	lsscsi -Lz/sys/class/scsi_host/*zudevadm info -a %(dev)s)�devices)zsg_persist --in -k -d %(dev)szsg_persist --in -r -d %(dev)szsg_persist --in -s -d %(dev)szsg_inq %(dev)s�blockzsd.*)r�	whitelist)�
add_copy_spec�collect_cmd_output�
splitlines�split�add_cmd_outputr�add_device_cmd)�self�
scsi_types�result�line�devsg�
scsi_hosts�r!�9/usr/lib/python3/dist-packages/sos/report/plugins/scsi.py�setups 

�

�z
Scsi.setupN)�__name__�
__module__�__qualname__�__doc__�
short_desc�plugin_name�profilesr#r!r!r!r"r
srN)r�sos.report.pluginsrrrr!r!r!r"�<module>s

Anon7 - 2022
AnonSec Team