!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)

E:\xampp\xampp\php\PEAR\Zend\Http\Client\Adapter\   drwxrwxrwx
Free 7.25 GB of 239.26 GB (3.03%)
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:     Test.php (5.7 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * Zend Framework
 *
 * LICENSE
 *
 * This source file is subject to the new BSD license that is bundled
 * with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://framework.zend.com/license/new-bsd
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@zend.com so we can send you a copy immediately.
 *
 * @category   Zend
 * @package    Zend_Http
 * @subpackage Client_Adapter
 * @version    $Id: Test.php 17869 2009-08-28 10:37:13Z cogo $
 * @copyright  Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
 * @license    http://framework.zend.com/license/new-bsd     New BSD License
 */

/**
 * @see Zend_Uri_Http
 */
require_once 'Zend/Uri/Http.php';
/**
 * @see Zend_Http_Response
 */
require_once 'Zend/Http/Response.php';
/**
 * @see Zend_Http_Client_Adapter_Interface
 */
require_once 'Zend/Http/Client/Adapter/Interface.php';

/**
 * A testing-purposes adapter.
 *
 * Should be used to test all components that rely on Zend_Http_Client,
 * without actually performing an HTTP request. You should instantiate this
 * object manually, and then set it as the client's adapter. Then, you can
 * set the expected response using the setResponse() method.
 *
 * @category   Zend
 * @package    Zend_Http
 * @subpackage Client_Adapter
 * @copyright  Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
 * @license    http://framework.zend.com/license/new-bsd     New BSD License
 */
class Zend_Http_Client_Adapter_Test implements Zend_Http_Client_Adapter_Interface
{
    
/**
     * Parameters array
     *
     * @var array
     */
    
protected $config = array();

    
/**
     * Buffer of responses to be returned by the read() method.  Can be
     * set using setResponse() and addResponse().
     *
     * @var array
     */
    
protected $responses = array("HTTP/1.1 400 Bad Request\r\n\r\n");

    
/**
     * Current position in the response buffer
     *
     * @var integer
     */
    
protected $responseIndex 0;

    
/**
     * Adapter constructor, currently empty. Config is set using setConfig()
     *
     */
    
public function __construct()
    { }

    
/**
     * Set the configuration array for the adapter
     *
     * @param Zend_Config | array $config
     */
    
public function setConfig($config = array())
    {
        if (
$config instanceof Zend_Config) {
            
$config $config->toArray();

        } elseif (! 
is_array($config)) {
            require_once 
'Zend/Http/Client/Adapter/Exception.php';
            throw new 
Zend_Http_Client_Adapter_Exception(
                
'Array or Zend_Config object expected, got ' gettype($config)
            );
        }

        foreach (
$config as $k => $v) {
            
$this->config[strtolower($k)] = $v;
        }
    }


    
/**
     * Connect to the remote server
     *
     * @param string  $host
     * @param int     $port
     * @param boolean $secure
     * @param int     $timeout
     */
    
public function connect($host$port 80$secure false)
    { }

    
/**
     * Send request to the remote server
     *
     * @param string        $method
     * @param Zend_Uri_Http $uri
     * @param string        $http_ver
     * @param array         $headers
     * @param string        $body
     * @return string Request as string
     */
    
public function write($method$uri$http_ver '1.1'$headers = array(), $body '')
    {
        
$host $uri->getHost();
            
$host = (strtolower($uri->getScheme()) == 'https' 'sslv2://' $host $host);

        
// Build request headers
        
$path $uri->getPath();
        if (
$uri->getQuery()) $path .= '?' $uri->getQuery();
        
$request "{$method} {$path} HTTP/{$http_ver}\r\n";
        foreach (
$headers as $k => $v) {
            if (
is_string($k)) $v ucfirst($k) . ": $v";
            
$request .= "$v\r\n";
        }

        
// Add the request body
        
$request .= "\r\n" $body;

        
// Do nothing - just return the request as string

        
return $request;
    }

    
/**
     * Return the response set in $this->setResponse()
     *
     * @return string
     */
    
public function read()
    {
        if (
$this->responseIndex >= count($this->responses)) {
            
$this->responseIndex 0;
        }
        return 
$this->responses[$this->responseIndex++];
    }

    
/**
     * Close the connection (dummy)
     *
     */
    
public function close()
    { }

    
/**
     * Set the HTTP response(s) to be returned by this adapter
     *
     * @param Zend_Http_Response|array|string $response
     */
    
public function setResponse($response)
    {
        if (
$response instanceof Zend_Http_Response) {
            
$response $response->asString("\r\n");
        }

        
$this->responses = (array)$response;
        
$this->responseIndex 0;
    }

    
/**
     * Add another response to the response buffer.
     *
     * @param string Zend_Http_Response|$response
     */
    
public function addResponse($response)
    {
         if (
$response instanceof Zend_Http_Response) {
            
$response $response->asString("\r\n");
        }

        
$this->responses[] = $response;
    }

    
/**
     * Sets the position of the response buffer.  Selects which
     * response will be returned on the next call to read().
     *
     * @param integer $index
     */
    
public function setResponseIndex($index)
    {
        if (
$index || $index >= count($this->responses)) {
            require_once 
'Zend/Http/Client/Adapter/Exception.php';
            throw new 
Zend_Http_Client_Adapter_Exception(
                
'Index out of range of response buffer size');
        }
        
$this->responseIndex $index;
    }
}

:: 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.0156 ]--