!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\php\pear\PhpDocumentor\phpDocumentor\Smarty-2.6.0\libs\core\   drwxrwxrwx
Free 1.04 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:     core.rmdir.php (1.5 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * Smarty plugin
 * @package Smarty
 * @subpackage plugins
 */

/**
 * delete a dir recursively (level=0 -> keep root)
 * WARNING: no tests, it will try to remove what you tell it!
 *
 * @param string $dirname
 * @param integer $level
 * @param integer $exp_time
 * @return boolean
 */

//  $dirname, $level = 1, $exp_time = null

function smarty_core_rmdir($params, &$smarty)
{
   if(!isset(
$params['level'])) { $params['level'] = 1; }
   if(!isset(
$params['exp_time'])) { $params['exp_time'] = null; }

   if(
$_handle = @opendir($params['dirname'])) {

        while (
false !== ($_entry readdir($_handle))) {
            if (
$_entry != '.' && $_entry != '..') {
                if (@
is_dir($params['dirname'] . DIRECTORY_SEPARATOR $_entry)) {
                    
$_params = array(
                        
'dirname' => $params['dirname'] . DIRECTORY_SEPARATOR $_entry,
                        
'level' => $params['level'] + 1,
                        
'exp_time' => $params['exp_time']
                    );
                    require_once(
SMARTY_DIR 'core' DIRECTORY_SEPARATOR 'core.rmdir.php');
                    
smarty_core_rmdir($_params$smarty);
                }
                else {
                    
$smarty->_unlink($params['dirname'] . DIRECTORY_SEPARATOR $_entry$params['exp_time']);
                }
            }
        }
        
closedir($_handle);
   }

   if (
$params['level']) {
       return @
rmdir($params['dirname']);
   }
   return (bool)
$_handle;

}

/* vim: set expandtab: */

?>

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