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__/maas.cpython-310.pyc
o

���b�@s*ddlmZmZmZGdd�dee�ZdS)�)�Plugin�UbuntuPlugin�	PluginOptcs�eZdZdZdZdZdZdZedde	dd	�ed
de	dd	�edde	d
d	�gZ
dd�Zdd�Zdd�Z
�fdd�Zdd�Zdd�Z�ZS)�MaaszUbuntu Metal-As-A-Service�maas)�sysmgmt)rzmaas-common)z
maas-dhcpdzmaas-dhcpd6z	maas-httpz
maas-proxyz
maas-rackdzmaas-regiondzmaas-syslogzsnap.maas.supervisor�profile-name�zName of the remote API)�default�val_type�desc�urlzURL of the remote API�credentialszCredentials, or the API keycCs|�d�o|�d�o|�d�S)Nr
rr)�
get_option��self�r�9/usr/lib/python3/dist-packages/sos/report/plugins/maas.py�_has_login_options,s�zMaas._has_login_optionscCs2|�d|�d�|�d�|�d�f�}|ddkS)Nzmaas login %s %s %srr
r�statusr)�exec_cmdr)r�retrrr�_remote_api_login0s��zMaas._remote_api_logincCs|�d�ddkS)Nzsnap list maasrr)rrrrr�_is_snap_installed;szMaas._is_snap_installedcst���rdS|��S)NT)�super�
check_enabledrr��	__class__rrr>s
zMaas.check_enabledcCs�|��|_|jr|�ddg�|�d�|�gd��n|�gd��|�ddg�|�d�r5|�d	g�|��rP|��rI|�d
|�d��dS|�	d�dSdS)
Nzsnap info maaszmaas statusz'/var/snap/maas/current/bind/session.key)	z/var/snap/maas/common/logz/var/snap/maas/common/snap_modez/var/snap/maas/current/*.confz/var/snap/maas/current/bindz/var/snap/maas/current/httpz"/var/snap/maas/current/supervisordz/var/snap/maas/current/preseedsz/var/snap/maas/current/proxyz/var/snap/maas/current/rsyslog)z/etc/squid-deb-proxyz	/etc/maasz/var/lib/maas/dhcp*z/var/log/apache2*z/var/log/maas*z/var/log/upstart/maas-*zapt-cache policy maas-*z apt-cache policy python-django-*zmaas-region-controllerzmaas-region dumpdataz"maas %s commissioning-results listrz6Cannot login into MAAS remote API with provided creds.)
r�_is_snap�add_cmd_output�add_forbidden_path�
add_copy_spec�is_installedrrr�
_log_errorrrrr�setupEs4
�
�
�
���z
Maas.setupcCs"|jrd}nd}|�|dd�dS)Nz(/var/snap/maas/current/maas/regiond.confz/etc/maas/regiond.confz(database_pass\s*:\s*)(.*)z
\1********)r�do_file_sub)r�regiond_pathrrr�postprocts�z
Maas.postproc)�__name__�
__module__�__qualname__�
short_desc�plugin_name�profiles�packages�servicesr�str�option_listrrrrr$r'�
__classcell__rrrrrs,����	/rN)�sos.report.pluginsrrrrrrrr�<module>s


Anon7 - 2022
AnonSec Team