403Webshell
Server IP : 195.130.67.5  /  Your IP : 216.73.217.154
Web Server : Microsoft-IIS/10.0
System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586
User : IUSR ( 0)
PHP Version : 7.4.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /inetpub/wwwroot/cdc/wp-content/plugins/child-theme-configurator/includes/classes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /inetpub/wwwroot/cdc/wp-content/plugins/child-theme-configurator/includes/classes/Analysis.php
<?php
// Exit if accessed directly
if ( !defined( 'ABSPATH' ) ) exit;

/*
    Class: ChildThemeConfiguratorAnalysis
    Plugin URI: http://www.childthemeplugin.com/
    Description: Theme Analyzer Class
    Version: 2.1.3
    Author: Lilaea Media
    Author URI: http://www.lilaeamedia.com/
    Text Domain: child-theme-configurator
    Domain Path: /lang
    License: GPLv2
    Copyright (C) 2014-2018 Lilaea Media
*/
class ChildThemeConfiguratorAnalysis {
    
    private $params;
    private $url;
    private $response;
    private $analysis;

    function __construct(){
        $this->params = array(
            'template'      => isset( $_POST[ 'template' ] ) ? $_POST[ 'template' ] : '',
            'stylesheet'    => isset( $_POST[ 'stylesheet' ] ) ? $_POST[ 'stylesheet' ] : '',
            'preview_ctc'   => wp_create_nonce(),
            'now'           => time(),
        );
        $this->analysis = array();
    }

    function is_child(){
        return $this->params[ 'template' ] !== $this->params[ 'stylesheet' ];
    }
    
    function fetch_page(){
        $this->url = home_url( '/' ) . '?' . build_query( $this->params ); //get_home_url()
        $args = array(
            'cookies'       => $_COOKIE,
            'user-agent'    => $_SERVER[ 'HTTP_USER_AGENT' ],
			'sslverify'     => apply_filters( 'https_local_ssl_verify', false )
        );
        $this->response = wp_remote_get( $this->url, $args );
        if ( is_wp_error( $this->response ) ):
            $this->analysis[ 'signals' ][ 'httperr' ] = $this->response->get_error_message();
        else:
            $this->analysis[ 'signals' ] = array();
            $this->analysis[ 'body' ] = $this->response[ 'body' ];
        endif;
    }
    
    function get_analysis(){
        return $this->analysis;
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit