!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.13 GB of 39.52 GB (10.45%)
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:     Installer.php (5.57 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
namespace Composer\Installers;

use 
Composer\Installer\LibraryInstaller;
use 
Composer\Package\PackageInterface;
use 
Composer\Repository\InstalledRepositoryInterface;

class 
Installer extends LibraryInstaller
{
    
/**
     * Package types to installer class map
     *
     * @var array
     */
    
private $supportedTypes = array(
        
'aimeos'       => 'AimeosInstaller',
        
'asgard'       => 'AsgardInstaller',
        
'agl'          => 'AglInstaller',
        
'annotatecms'  => 'AnnotateCmsInstaller',
        
'bitrix'       => 'BitrixInstaller',
        
'cakephp'      => 'CakePHPInstaller',
        
'chef'         => 'ChefInstaller',
        
'ccframework'  => 'ClanCatsFrameworkInstaller',
        
'codeigniter'  => 'CodeIgniterInstaller',
        
'concrete5'    => 'Concrete5Installer',
        
'craft'        => 'CraftInstaller',
        
'croogo'       => 'CroogoInstaller',
        
'dokuwiki'     => 'DokuWikiInstaller',
        
'dolibarr'     => 'DolibarrInstaller',
        
'drupal'       => 'DrupalInstaller',
        
'elgg'         => 'ElggInstaller',
        
'fuel'         => 'FuelInstaller',
        
'fuelphp'      => 'FuelphpInstaller',
        
'grav'         => 'GravInstaller',
        
'hurad'        => 'HuradInstaller',
        
'joomla'       => 'JoomlaInstaller',
        
'kirby'        => 'KirbyInstaller',
        
'kohana'       => 'KohanaInstaller',
        
'laravel'      => 'LaravelInstaller',
        
'lithium'      => 'LithiumInstaller',
        
'magento'      => 'MagentoInstaller',
        
'mako'         => 'MakoInstaller',
        
'mediawiki'    => 'MediaWikiInstaller',
        
'microweber'    => 'MicroweberInstaller',
        
'modulework'   => 'MODULEWorkInstaller',
        
'modxevo'      => 'MODXEvoInstaller',
        
'moodle'       => 'MoodleInstaller',
        
'october'      => 'OctoberInstaller',
        
'oxid'         => 'OxidInstaller',
        
'phpbb'        => 'PhpBBInstaller',
        
'pimcore'      => 'PimcoreInstaller',
        
'piwik'        => 'PiwikInstaller',
        
'ppi'          => 'PPIInstaller',
        
'puppet'       => 'PuppetInstaller',
        
'redaxo'       => 'RedaxoInstaller',
        
'roundcube'    => 'RoundcubeInstaller',
        
'shopware'     => 'ShopwareInstaller',
        
'silverstripe' => 'SilverStripeInstaller',
        
'smf'          => 'SMFInstaller',
        
'symfony1'     => 'Symfony1Installer',
        
'thelia'       => 'TheliaInstaller',
        
'tusk'         => 'TuskInstaller',
        
'typo3-cms'    => 'TYPO3CmsInstaller',
        
'typo3-flow'   => 'TYPO3FlowInstaller',
        
'whmcs'        => 'WHMCSInstaller',
        
'wolfcms'      => 'WolfCMSInstaller',
        
'wordpress'    => 'WordPressInstaller',
        
'zend'         => 'ZendInstaller',
        
'zikula'       => 'ZikulaInstaller',
        
'prestashop'   => 'PrestashopInstaller',
    );

    
/**
     * {@inheritDoc}
     */
    
public function getInstallPath(PackageInterface $package)
    {
        
$type $package->getType();
        
$frameworkType $this->findFrameworkType($type);

        if (
$frameworkType === false) {
            throw new \
InvalidArgumentException(
                
'Sorry the package type of this package is not yet supported.'
            
);
        }

        
$class 'Composer\\Installers\\' $this->supportedTypes[$frameworkType];
        
$installer = new $class($package$this->composer);

        return 
$installer->getInstallPath($package$frameworkType);
    }

    public function 
uninstall(InstalledRepositoryInterface $repoPackageInterface $package)
    {
        if (!
$repo->hasPackage($package)) {
            throw new \
InvalidArgumentException('Package is not installed: '.$package);
        }

        
$repo->removePackage($package);

        
$installPath $this->getInstallPath($package);
        
$this->io->write(sprintf('Deleting %s - %s'$installPath$this->filesystem->removeDirectory($installPath) ? '<comment>deleted</comment>' '<error>not deleted</error>'));
    }

    
/**
     * {@inheritDoc}
     */
    
public function supports($packageType)
    {
        
$frameworkType $this->findFrameworkType($packageType);

        if (
$frameworkType === false) {
            return 
false;
        }

        
$locationPattern $this->getLocationPattern($frameworkType);

        return 
preg_match('#' $frameworkType '-' $locationPattern '#'$packageType$matches) === 1;
    }

    
/**
     * Finds a supported framework type if it exists and returns it
     *
     * @param  string $type
     * @return string
     */
    
protected function findFrameworkType($type)
    {
        
$frameworkType false;

        
krsort($this->supportedTypes);

        foreach (
$this->supportedTypes as $key => $val) {
            if (
$key === substr($type0strlen($key))) {
                
$frameworkType substr($type0strlen($key));
                break;
            }
        }

        return 
$frameworkType;
    }

    
/**
     * Get the second part of the regular expression to check for support of a
     * package type
     *
     * @param  string $frameworkType
     * @return string
     */
    
protected function getLocationPattern($frameworkType)
    {
        
$pattern false;
        if (!empty(
$this->supportedTypes[$frameworkType])) {
            
$frameworkClass 'Composer\\Installers\\' $this->supportedTypes[$frameworkType];
            
/** @var BaseInstaller $framework */
            
$framework = new $frameworkClass(null$this->composer);
            
$locations array_keys($framework->getLocations());
            
$pattern $locations '(' implode('|'$locations) . ')' false;
        }

        return 
$pattern ? : '(\w+)';
    }
}

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