#/** * @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/syspurposelib.pyo
�
L��ec@`s|ddlmZmZmZddlmZddlmZddlmZ	ddl
Z
ddlZddlZe
j
e�ZyddlmZWn ek
r�ddd�ZnXyddlmZmZWn*ek
r�ejd	�dZd
ZnXdadZd�Zd�Zed
�Zd�Zdejfd��YZ dej!fd��YZ"de#fd��YZ$dS(i(tprint_functiontdivisiontabsolute_import(tConnectionException(tcertlib(t	injectionN(tsynccC`stjd�t�S(Ns*Syspurpose module unavailable, not syncing(tlogtdebugtread_syspurpose(tuept
consumer_uuidtcommandtreport((sH/usr/lib64/python2.7/site-packages/subscription_manager/syspurposelib.pyR%s
(tSyncedStoretUSER_SYSPURPOSEs(Could not import from module syspurpose.s$/etc/rhsm/syspurpose/syspurpose.jsoncC`s�dt�krrtdk	rrtd�}|dks?|dkrHd}n|jd|�|j�tjd�n
tjd�dS(sL
    Saves the provided service-level value to the local Syspurpose Metadata (syspurpose.json) file.
    If the service level provided is null or empty, the sla value to the local syspurpose file is set to null.

    :param service_level: The service-level value to be saved in the syspurpose file.
    :type service_level: str
    Rttservice_level_agreements0Syspurpose SLA value successfully saved locally.sNSyspurposeStore could not be imported. Syspurpose SLA value not saved locally.N(tglobalsRtNonetsettfinishRRterror(t
service_leveltstore((sH/usr/lib64/python2.7/site-packages/subscription_manager/syspurposelib.pytsave_sla_to_syspurpose_metadata4s		
cC`sbtdk	rtStdk	r^tjtj�j�}tjtj�j}t|d|�antS(sx
    :return: Returns a singleton instance of the syspurpose store if it was imported.
             Otherwise None.
    RN(	RRRtinjtrequiretCP_PROVIDERtget_consumer_auth_cptIDENTITYtuuid(R
R((sH/usr/lib64/python2.7/site-packages/subscription_manager/syspurposelib.pytget_sys_purpose_storeKscC`s�tdk	rEytd�j�}Wq�ttfk
rAi}q�XnKytjtt��}Wn/t	j
ttfk
r�|r��ni}nX|S(s�
    Reads the system purpose from the correct location on the file system.
    Makes an attempt to use a SyspurposeStore if available falls back to reading the json directly.
    :return: A dictionary containing the total syspurpose.
    N(RRtget_local_contentstOSErrortIOErrortjsontloadtopenRtosRt
ValueError(traise_on_errort
syspurpose((sH/usr/lib64/python2.7/site-packages/subscription_manager/syspurposelib.pyR	Zs

cC`sxtdk	r(td�}|j|�nLy&tj|tt�dtdd�Wn#tk
rst	j
dt�tSXtS(sR
    Write the syspurpose to the file system.
    :param values:
    :return:
    tensure_asciitindentis Could not write syspurpose to %sN(RRtupdate_localR$tdumpR&RtTrueR"RtwarningtFalse(tvaluestsp((sH/usr/lib64/python2.7/site-packages/subscription_manager/syspurposelib.pytwrite_syspurposeps&
tSyspurposeSyncActionInvokercB`seZdZd�ZRS(s]
    Used by rhsmcertd to sync the syspurpose values locally with those from the Server.
    cC`st�}|j�S(N(tSyspurposeSyncActionCommandtperform(tselftaction((sH/usr/lib64/python2.7/site-packages/subscription_manager/syspurposelib.pyt
_do_update�s	(t__name__t
__module__t__doc__R:(((sH/usr/lib64/python2.7/site-packages/subscription_manager/syspurposelib.pyR5�stSyspurposeSyncActionReportcB`s eZdZd�Zd�ZRS(sSyspurpose SynccC`s|jdkrd}n|jdkr0t}nd}d
}|jrm|jrmdjd|jd|�}n�|jr�|jr�djd|jd	|jd|�}nK|jr�|j|jkr�d
jd|jd|jd|jd|�}n|r|j	j
|�nd
S(s�
        Records the change detected by the three_way_merge function into a record in the report.
        :param change: A util.DiffChange object containing the recorded changes.
        :return: None
        tremotesEntitlement Servertlocalscached system purpose valuess''{key}' removed by change from {source}tkeytsources:'{key}' added with value '{value}' from change in {source}tvaluesM'{key}' updated from '{old_value}' to '{new_value}' due to change in {source}t	new_valuet	old_valueN(RBRRtin_baset	in_resulttformatRARDtprevious_valuet_updatestappend(R8tchangeRBtmsg((sH/usr/lib64/python2.7/site-packages/subscription_manager/syspurposelib.pyt
record_change�s$				cC`s>d}x1|jD]&}|t|�j�7}|d7}qW|S(NRs
(t_exceptionststrtstrip(R8tbufte((sH/usr/lib64/python2.7/site-packages/subscription_manager/syspurposelib.pytformat_exceptions�s
(R;R<tnameRNRT(((sH/usr/lib64/python2.7/site-packages/subscription_manager/syspurposelib.pyR>�s	 R6cB`s#eZdZd�Zed�ZRS(s�
    Sync the system purpose values, by performing a three-way merge between:
      - The last known shared state (SyspurposeCache)
      - The current values on the server
      - The current values on the file system
    cC`s7t�|_tjtj�|_|jj�|_dS(N(R>R
RRRtcp_providerRR
(R8((sH/usr/lib64/python2.7/site-packages/subscription_manager/syspurposelib.pyt__init__�sc	C`s�i}tjtj�j}y=td|jd|d|jd|jj�}|j�}Wn<t	k
r�}|jj
jdt|��d|j_
nXdj|jj�|j_tjd|j�|s�|jS|j|fSd	S(
sS
        Perform the action that this Command represents.
        :return:
        R
RR
t
on_changeds)Unable to sync syspurpose with server: %ssFailed to sync system purposes
		 sSyspurpose updated: %sN(RRRRRR
R
RNRRRORKRPt_statustjoinRJRR(R8tinclude_resulttresultRRRS((sH/usr/lib64/python2.7/site-packages/subscription_manager/syspurposelib.pyR7�s 	(R;R<R=RWR1R7(((sH/usr/lib64/python2.7/site-packages/subscription_manager/syspurposelib.pyR6�s	(%t
__future__RRRtrhsm.connectionRtsubscription_managerRRRtloggingR$R't	getLoggerR;Rtsyspurpose.syncRtImportErrorRtsyspurpose.filesRRRRR*RR R1R	R4tBaseActionInvokerR5tActionReportR>tobjectR6(((sH/usr/lib64/python2.7/site-packages/subscription_manager/syspurposelib.pyt<module>s4



			
+

Anon7 - 2022
AnonSec Team