!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:\copia nuevo\htdocs\cumbreclima\wp-content\plugins\revslider\inc_php\framework\   drwxrwxrwx
Free 1017.34 MB of 239.26 GB (0.42%)
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:     zip.class.php (2.27 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

    
class UniteZipRev{
        
        private 
$zip;
        
        
/**
         * 
         * get true / false if the zip archive exists.
         */
        
public static function isZipExists(){
            
$exists class_exists("ZipArchive");
            return 
$exists;
        }
        
        
        
/**
         * 
         * add zip file
         */
        
private function addItem($basePath,$path){
            
            
$rel_path str_replace($basePath."/"""$path);
            
            if(
is_dir($path)){        //directory
                
                //add dir to zip
                
if($basePath != $path)
                    
$this->zip->addEmptyDir($rel_path);
                
                
$files scandir($path);
                foreach(
$files as $file){
                    if(
$file == "." || $file == ".." || $file == ".svn")
                        continue;
                    
$filepath $path."/".$file;
                    
$this->addItem($basePath$filepath);
                }
            }
            else{    
//file
                
if(!file_exists($path))
                    
throwError("filepath: '$path' don't exists, can't zip");
                
                
$this->zip->addFile($path,$rel_path);
            }
        }       
        
        
/**
         * 
         * make zip archive
         * if exists additional paths, add additional items to the zip
         */
        
public function makeZip($srcPath$zipFilepath,$additionPaths = array()){
            
            if(!
is_dir($srcPath))
                
throwError("The path: '$srcPath' don't exists, can't zip");
            
            
$this->zip = new ZipArchive;
            
$success $this->zip->open($zipFilepathZipArchive::CREATE);
            
            if(
$success == false)
                
throwError("Can't create zip file: $zipFilepath");
            
            
$this->addItem($srcPath,$srcPath);
               
            if(
gettype($additionPaths) != "array")
                
throwError("Wrong additional paths variable.");
               
                
            
//add additional paths
            
if(!empty($additionPaths))
                foreach(
$additionPaths as $path){
                    if(!
is_dir($path))
                        
throwError("Path: $path not found, can't zip");
                    
$this->addItem($path$path);
                }
            
               
$this->zip->close();
        }
        
        
/**
         * 
         * Extract zip archive
         */
        
public function extract($src$dest){
            
$zip = new ZipArchive;
            if (
$zip->open($src)===true){
                
$zip->extractTo($dest);
                
$zip->close();
                return 
true;
            }
            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.0156 ]--