#/** * @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/local/mgr5/lib/pkgpython/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /usr/local/mgr5/lib/pkgpython/core_pkg_funcs.pyc
�
M�hc@s�ddlZddlZddlZddlmZdZejjed�Z	dd�Zd�Ze
d�Zdefd	��YZd
efd��YZdefd
��YZdefd��YZdefd��YZdefd��YZdS(i����N(tcElementTrees/usr/local/mgr5ssbin/mgrctlcCs�tj|dtjdtjdtj�}|j|�\}}tjddkrb|||jfS|j�|j�|jfSdS(s# Выполнить команду tstdintstdouttstderriiN(t
subprocesstPopentPIPEtcommunicatetsystversion_infot
returncodetdecode(targstinputtsptoutterr((s//usr/local/mgr5/lib/pkgpython/core_pkg_funcs.pytCmdRuns
*cCsttd|dg�dS(s Manager Restart s-mtexitN(RtMGRCTL(tmgrname((s//usr/local/mgr5/lib/pkgpython/core_pkg_funcs.pyt	ReloadMgrscCs�tjjtd�}||g}|r7|jd�nt|�\}}}|dkrb|j�Stdj|||���dS(s1
	Создать базу данных и пользователя к ней.
	Eсли второй аргумент=True, то создаваемый пользователь - root.
	TODO: Сейчас делается через шеловый скрипт. В теории надо наоборот.
	setc/scripts/create_dbt1is!Can`t create database {0}
{1}
{2}N(	tostpathtjointMGRPATHtappendRtstript	Exceptiontformat(tdbnamet	user_roottdbcreate_scriptnametcmdargsRRtcode((s//usr/local/mgr5/lib/pkgpython/core_pkg_funcs.pyt
CreateDbMysqls
tBaseServicecBsDeZdZd�Zed��Zed�Zd�Zd�Z	RS(s\ Базовый виртуальный класс для работы с сервисами cCs||_d|_dS(s Конструктор N(tnametNonetexist(tselfR&((s//usr/local/mgr5/lib/pkgpython/core_pkg_funcs.pyt__init__5s	cs�fd�}|S(Ncs|jr�|||�SdS(N(R((R)Rtkwargs(tmethod(s//usr/local/mgr5/lib/pkgpython/core_pkg_funcs.pytcheck_is_exist<s	((R,R-((R,s//usr/local/mgr5/lib/pkgpython/core_pkg_funcs.pytif_exist:scCs'|js
dStd|jdg�dS(Ntservicetreload(R(R'RR&(R)thard((s//usr/local/mgr5/lib/pkgpython/core_pkg_funcs.pyR0As	cCs'|js
dStd|jdg�dS(NR/tstart(R(R'RR&(R)((s//usr/local/mgr5/lib/pkgpython/core_pkg_funcs.pytenableFs	cCs'|js
dStd|jdg�dS(NR/tstop(R(R'RR&(R)((s//usr/local/mgr5/lib/pkgpython/core_pkg_funcs.pytdisableKs	(
t__name__t
__module__t__doc__R*tstaticmethodR.tFalseR0R3R5(((s//usr/local/mgr5/lib/pkgpython/core_pkg_funcs.pyR%2s		t
CentosServicecBs;eZdZd�Zejd��Zejd��ZRS(s+ Класс для сервисов centos cCsztj||�tjjd|�|_tjjddj|��|_tjj|j�pptjj|j�|_	dS(Ns/etc/init.ds/usr/lib/systemd/system/s{0}.service(
R%R*RRRtscriptRtsystemd_unittexistsR((R)R&((s//usr/local/mgr5/lib/pkgpython/core_pkg_funcs.pyR*Ts!cCs2tt|�j�r.td|jdg�ndS(Nt	chkconfigton(tsuperR;R3RR&(R)((s//usr/local/mgr5/lib/pkgpython/core_pkg_funcs.pyR3ZscCs2tt|�j�r.td|jdg�ndS(NR?toff(RAR;R5RR&(R)((s//usr/local/mgr5/lib/pkgpython/core_pkg_funcs.pyR5_s(R6R7R8R*R%R.R3R5(((s//usr/local/mgr5/lib/pkgpython/core_pkg_funcs.pyR;Qs	t
DebianServicecBs;eZdZd�Zejd��Zejd��ZRS(s+ Класс для сервисов centos cCsDtj||�tjjd|�|_tjj|j�|_dS(Ns/etc/init.d(R%R*RRRR<R>R((R)R&((s//usr/local/mgr5/lib/pkgpython/core_pkg_funcs.pyR*hscCs2tt|�j�r.td|jdg�ndS(Nsupdate-rc.dR3(RARCR3RR&(R)((s//usr/local/mgr5/lib/pkgpython/core_pkg_funcs.pyR3mscCs2tt|�j�r.td|jdg�ndS(Nsupdate-rc.dR5(RARCR5RR&(R)((s//usr/local/mgr5/lib/pkgpython/core_pkg_funcs.pyR5rs(R6R7R8R*R%R.R3R5(((s//usr/local/mgr5/lib/pkgpython/core_pkg_funcs.pyRCes	t
BsdServicecBs)eZdZd�Zd�Zd�ZRS(s, Класс для сервисов FreeBSD cCsqtj||�tjjd|�|_tjjd|�|_tjj|j�pgtjj|j�|_dS(Ns	/etc/rc.ds/usr/local/etc/rc.d(	R%R*RRRtscript_baset
script_extR>R((R)R&((s//usr/local/mgr5/lib/pkgpython/core_pkg_funcs.pyR*zscCsdS(N((R)((s//usr/local/mgr5/lib/pkgpython/core_pkg_funcs.pyR3�scCsdS(N((R)((s//usr/local/mgr5/lib/pkgpython/core_pkg_funcs.pyR5�s(R6R7R8R*R3R5(((s//usr/local/mgr5/lib/pkgpython/core_pkg_funcs.pyRDws		tServicecBseZdZd�ZRS(s Прокси класс cCsjtjjd�rt|�Stjjd�r8t|�Stdg�\}}}d|krft|�SdS(s+  Вернуть нужный объект s/sbin/chkconfigs/etc/debian_versiontunametFreeBSDN(RRtisfileR;RCRRD(R)R&RHt_((s//usr/local/mgr5/lib/pkgpython/core_pkg_funcs.pyt__new__�s

(R6R7R8RL(((s//usr/local/mgr5/lib/pkgpython/core_pkg_funcs.pyRG�stMgrcBs\eZdZdd�Zd�Zed�Zd�Zd�Zd�Z	d�Z
d	�ZRS(
s6 Класс для работы с манагером tcorecCs"||_td|jg|_dS(Ns-m(RRtmgrctl_list(R)R((s//usr/local/mgr5/lib/pkgpython/core_pkg_funcs.pyR*�s	cCs|jidd6�dS(s, Перезагрузить манагер. RtfuncN(tquery(R)((s//usr/local/mgr5/lib/pkgpython/core_pkg_funcs.pyR�sc	Cs�d|krd|d<n|j}|j|jd��g|D]}d||j|�f^q@}|j|�|r�|jd�nt|�\}}}|dkr�|St||��dS(s< Сделать запрос. Вернуть XML ответ RtxmlRPs%s=%ss-RiN(RORtpoptgettextendRR(	R)tparamstrestartt
query_listtkt
param_listRRterrcode((s//usr/local/mgr5/lib/pkgpython/core_pkg_funcs.pyRQ�s

,
cCs[tj|jidd6|d6dt��}|jd�}|dk	rW|jrW|jSdS(s Получить path s
pathlist.editRPtelidRWtvalueN(tetreet
fromstringRQtTruetfindR'ttext(R)t	path_nametpath_value_xmltelem((s//usr/local/mgr5/lib/pkgpython/core_pkg_funcs.pytpath_get�s
cCs[tj|jidd6|d6dt��}|jd�}|dk	rW|jrW|jSdS(s$ Получить параметр  sparamlist.editRPR\RWR]N(R^R_RQR`RaR'Rb(R)t
param_nametparam_value_xmlRe((s//usr/local/mgr5/lib/pkgpython/core_pkg_funcs.pyt	param_get�s
cCs'|j|�}|r|j�SgSdS(N(Ritsplit(R)Rgtparam_value((s//usr/local/mgr5/lib/pkgpython/core_pkg_funcs.pytparam_get_list�s
cCsl|j|�}||krh|j|�|jidd6|d6dj|�d6dd6�|j�tStS(s$ Добавить параметр  sparamlist.editRPR\t R]toktsok(RlRRQRRR`R:(R)RgRkt
cur_values((s//usr/local/mgr5/lib/pkgpython/core_pkg_funcs.pyt	param_add�s
	
cCsl|j|�}||krh|j|�|jidd6|d6dj|�d6dd6�|j�tStS(s$ Добавить параметр  sparamlist.editRPR\RmR]RnRo(RltremoveRQRRR`R:(R)RgRkRp((s//usr/local/mgr5/lib/pkgpython/core_pkg_funcs.pytparam_remove�s
	
(R6R7R8R*RR:RQRfRiRlRqRs(((s//usr/local/mgr5/lib/pkgpython/core_pkg_funcs.pyRM�s					(RRRt	xml.etreeRR^RRRRR'RRR:R$tobjectR%R;RCRDRGRM(((s//usr/local/mgr5/lib/pkgpython/core_pkg_funcs.pyt<module>s		

Anon7 - 2022
AnonSec Team