!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\Service\Amazon\Ec2\   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:     Elasticip.php (4.78 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_Service_Amazon
 * @subpackage Ec2
 * @copyright  Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
 * @license    http://framework.zend.com/license/new-bsd     New BSD License
 * @version    $Id: Elasticip.php 16971 2009-07-22 18:05:45Z mikaelkael $
 */

require_once 'Zend/Service/Amazon/Ec2/Abstract.php';

/**
 * An Amazon EC2 interface to allocate, associate, describe and release Elastic IP address
 * from your account.
 *
 * @category   Zend
 * @package    Zend_Service_Amazon
 * @subpackage Ec2
 * @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_Service_Amazon_Ec2_Elasticip extends Zend_Service_Amazon_Ec2_Abstract
{
    
/**
     * Acquires an elastic IP address for use with your account
     *
     * @return string                           Returns the newly Allocated IP Address
     */
    
public function allocate()
    {
        
$params = array();
        
$params['Action'] = 'AllocateAddress';

        
$response $this->sendRequest($params);

        
$xpath $response->getXPath();
        
$ip $xpath->evaluate('string(//ec2:publicIp/text())');

        return 
$ip;
    }

    
/**
     * Lists elastic IP addresses assigned to your account.
     *
     * @param string|array $publicIp            Elastic IP or list of addresses to describe.
     * @return array
     */
    
public function describe($publicIp null)
    {
        
$params = array();
        
$params['Action'] = 'DescribeAddresses';

        if(
is_array($publicIp) && !empty($publicIp)) {
            foreach(
$publicIp as $k=>$name) {
                
$params['PublicIp.' . ($k+1)] = $name;
            }
        } elseif(
$publicIp) {
            
$params['PublicIp.1'] = $publicIp;
        }

        
$response $this->sendRequest($params);

        
$xpath  $response->getXPath();
        
$nodes  $xpath->query('//ec2:item');

        
$return = array();
        foreach (
$nodes as $k => $node) {
            
$item = array();
            
$item['publicIp']  = $xpath->evaluate('string(ec2:publicIp/text())'$node);
            
$item['instanceId']   = $xpath->evaluate('string(ec2:instanceId/text())'$node);

            
$return[] = $item;
            unset(
$item);
        }

        return 
$return;
    }

    
/**
     * Releases an elastic IP address that is associated with your account
     *
     * @param string $publicIp                  IP address that you are releasing from your account.
     * @return boolean
     */
    
public function release($publicIp)
    {
        
$params = array();
        
$params['Action'] = 'ReleaseAddress';
        
$params['PublicIp'] = $publicIp;

        
$response $this->sendRequest($params);
        
$xpath $response->getXPath();

        
$return $xpath->evaluate('string(//ec2:return/text())');

        return (
$return === "true");
    }

    
/**
     * Associates an elastic IP address with an instance
     *
     * @param string $instanceId                The instance to which the IP address is assigned
     * @param string $publicIp                  IP address that you are assigning to the instance.
     * @return boolean
     */
    
public function associate($instanceId$publicIp)
    {
        
$params = array();
        
$params['Action'] = 'AssociateAddress';
        
$params['PublicIp'] = $publicIp;
        
$params['InstanceId'] = $instanceId;

        
$response $this->sendRequest($params);
        
$xpath $response->getXPath();

        
$return $xpath->evaluate('string(//ec2:return/text())');

        return (
$return === "true");
    }

    
/**
     * Disassociates the specified elastic IP address from the instance to which it is assigned.
     * This is an idempotent operation. If you enter it more than once, Amazon EC2 does not return an error.
     *
     * @param string $publicIp                  IP address that you are disassociating from the instance.
     * @return boolean
     */
    
public function disassocate($publicIp)
    {
        
$params = array();
        
$params['Action'] = 'DisssociateAddress';
        
$params['PublicIp'] = $publicIp;

        
$response $this->sendRequest($params);
        
$xpath $response->getXPath();

        
$return $xpath->evaluate('string(//ec2:return/text())');

        return (
$return === "true");
    }

}

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