!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:\cumbreclima\wp-content\plugins\wordpress-seo\vendor\composer\installers\src\Composer\Installers\   drwxrwxrwx
Free 4.09 GB of 39.52 GB (10.35%)
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:     BaseInstaller.php (3.52 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
namespace Composer\Installers;

use 
Composer\Composer;
use 
Composer\Package\PackageInterface;

abstract class 
BaseInstaller
{
    protected 
$locations = array();
    protected 
$composer;
    protected 
$package;

    
/**
     * Initializes base installer.
     *
     * @param PackageInterface $package
     * @param Composer         $composer
     */
    
public function __construct(PackageInterface $package nullComposer $composer null)
    {
        
$this->composer $composer;
        
$this->package $package;
    }

    
/**
     * Return the install path based on package type.
     *
     * @param  PackageInterface $package
     * @param  string           $frameworkType
     * @return string
     */
    
public function getInstallPath(PackageInterface $package$frameworkType '')
    {
        
$type $this->package->getType();

        
$prettyName $this->package->getPrettyName();
        if (
strpos($prettyName'/') !== false) {
            list(
$vendor$name) = explode('/'$prettyName);
        } else {
            
$vendor '';
            
$name $prettyName;
        }

        
$availableVars $this->inflectPackageVars(compact('name''vendor''type'));

        
$extra $package->getExtra();
        if (!empty(
$extra['installer-name'])) {
            
$availableVars['name'] = $extra['installer-name'];
        }

        if (
$this->composer->getPackage()) {
            
$extra $this->composer->getPackage()->getExtra();
            if (!empty(
$extra['installer-paths'])) {
                
$customPath $this->mapCustomInstallPaths($extra['installer-paths'], $prettyName$type);
                if (
$customPath !== false) {
                    return 
$this->templatePath($customPath$availableVars);
                }
            }
        }

        
$packageType substr($typestrlen($frameworkType) + 1);
        
$locations $this->getLocations();
        if (!isset(
$locations[$packageType])) {
            throw new \
InvalidArgumentException(sprintf('Package type "%s" is not supported'$type));
        }

        return 
$this->templatePath($locations[$packageType], $availableVars);
    }

    
/**
     * For an installer to override to modify the vars per installer.
     *
     * @param  array $vars
     * @return array
     */
    
public function inflectPackageVars($vars)
    {
        return 
$vars;
    }

    
/**
     * Gets the installer's locations
     *
     * @return array
     */
    
public function getLocations()
    {
        return 
$this->locations;
    }

    
/**
     * Replace vars in a path
     *
     * @param  string $path
     * @param  array  $vars
     * @return string
     */
    
protected function templatePath($path, array $vars = array())
    {
        if (
strpos($path'{') !== false) {
            
extract($vars);
            
preg_match_all('@\{\$([A-Za-z0-9_]*)\}@i'$path$matches);
            if (!empty(
$matches[1])) {
                foreach (
$matches[1] as $var) {
                    
$path str_replace('{$' $var '}', $$var$path);
                }
            }
        }

        return 
$path;
    }

    
/**
     * Search through a passed paths array for a custom install path.
     *
     * @param  array  $paths
     * @param  string $name
     * @param  string $type
     * @return string
     */
    
protected function mapCustomInstallPaths(array $paths$name$type)
    {
        foreach (
$paths as $path => $names) {
            if (
in_array($name$names) || in_array('type:' $type$names)) {
                return 
$path;
            }
        }

        return 
false;
    }
}

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