!C99Shell v. 1.0 pre-release build #13!

Software: Apache. PHP/5.5.15 

uname -a: Windows NT SVR-DMZ 6.1 build 7600 (Windows Server 2008 R2 Enterprise Edition) i586 

SYSTEM 

Safe-mode: OFF (not secure)

C:\Users\DMZ\Desktop\cumbreclima\wp-content\plugins\wordpress-seo\vendor\yoast\license-manager\   drwxrwxrwx
Free 3.26 GB of 39.52 GB (8.25%)
Detected drives: [ a ] [ c ] [ d ] [ e ] [ f ]
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     class-api-request.php (2.47 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

if( ! class_exists"Yoast_API_Request"false ) ) {

    
/**
    * Handles requests to the Yoast EDD API
    */
    
class Yoast_API_Request {

        
/**
        * @var string Request URL
        */
        
private $url '';

        
/**
        * @var array Request parameters
        */
        
private $args = array(
            
'method' => 'GET',
            
'timeout' => 10,
            
'sslverify' => false,
            
'headers' => array(
                
'Accept-Encoding' => '*',
                
'X-Yoast-EDD' => '1'
            
)
        );

        
/**
        * @var boolean
        */
        
private $success false;

        
/**
        * @var mixed
        */
        
private $response;

        
/**
        * @var string
        */
        
private $error_message '';

        
/**
        * Constructor
        * 
        * @param string url
        * @param array $args
        */
        
public function __construct$url, array $args = array() ) {

            
// set api url
            
$this->url $url;

            
// set request args (merge with defaults)
            
$this->args wp_parse_args$args$this->args );

            
// fire the request
            
$this->success $this->fire();
        }

        
/**
        * Fires the request, automatically called from constructor
        *
        * @return boolean
        */
        
private function fire() {

            
// fire request to shop
            
$response wp_remote_request$this->url$this->args );

            
// validate raw response
            
if( $this->validate_raw_response$response ) === false ) {
                return 
false;
            }

            
// decode the response
            
$this->response json_decodewp_remote_retrieve_body$response ) );

            
// response should be an object
            
if( ! is_object$this->response ) ) {
                
$this->error_message 'No JSON object was returned.';
                return 
false;
            }

            return 
true;
        }

        
/**
        * @param object $response
        * @return boolean
        */
        
private function validate_raw_response$response ) {

            
// make sure response came back okay
            
if( is_wp_error$response ) ) {
                
$this->error_message $response->get_error_message();
                return 
false;
            }

            
// check response code, should be 200
            
$response_code wp_remote_retrieve_response_code$response );

            if( 
false === strstr$response_code'200' ) ) {

                
$response_message wp_remote_retrieve_response_message$response );
                
$this->error_message "{$response_code} {$response_message}";

                return 
false;
            }

            return 
true;
        }

        
/**
        * Was a valid response returned?
        *
        * @return boolean
        */ 
        
public function is_valid() {
            return ( 
$this->success === true );
        }

        
/**
        * @return string
        */
        
public function get_error_message() {
            return 
$this->error_message;
        }

        
/**
        * @return object
        */
        
public function get_response() {
            return 
$this->response;
        }

    }

}


:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0312 ]--