!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:\Intranet\C\xampp\php\PEAR\PhpDocumentor\phpDocumentor\Smarty-2.6.0\libs\core\   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:     core.rm_auto.php (2.28 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * Smarty plugin
 * @package Smarty
 * @subpackage plugins
 */

/**
 * delete an automagically created file by name and id
 *
 * @param string $auto_base
 * @param string $auto_source
 * @param string $auto_id
 * @param integer $exp_time
 * @return boolean
 */

// $auto_base, $auto_source = null, $auto_id = null, $exp_time = null

function smarty_core_rm_auto($params, &$smarty)
{
    if (!@
is_dir($params['auto_base']))
      return 
false;

    if(!isset(
$params['auto_id']) && !isset($params['auto_source'])) {
        
$_params = array(
            
'dirname' => $params['auto_base'],
            
'level' => 0,
            
'exp_time' => $params['exp_time']
        );
        require_once(
SMARTY_DIR 'core' DIRECTORY_SEPARATOR 'core.rmdir.php');
        
$_res smarty_core_rmdir($_params$smarty);
    } else {
        
$_tname $smarty->_get_auto_filename($params['auto_base'], $params['auto_source'], $params['auto_id']);

        if(isset(
$params['auto_source'])) {
            if (isset(
$params['extensions'])) {
                
$_res false;
                foreach ((array)
$params['extensions'] as $_extension)
                    
$_res |= $smarty->_unlink($_tname.$_extension$params['exp_time']);
            } else {
                
$_res $smarty->_unlink($_tname$params['exp_time']);
            }
        } elseif (
$smarty->use_sub_dirs) {
            
$_params = array(
                
'dirname' => $_tname,
                
'level' => 1,
                
'exp_time' => $params['exp_time']
            );
            require_once(
SMARTY_DIR 'core' DIRECTORY_SEPARATOR 'core.rmdir.php');
            
$_res smarty_core_rmdir($_params$smarty);
        } else {
            
// remove matching file names
            
$_handle opendir($params['auto_base']);
            
$_res true;
            while (
false !== ($_filename readdir($_handle))) {
                if(
$_filename == '.' || $_filename == '..') {
                    continue;
                } elseif (
substr($params['auto_base'] . DIRECTORY_SEPARATOR $_filename0strlen($_tname)) == $_tname) {
                    
$_res &= (bool)$smarty->_unlink($params['auto_base'] . DIRECTORY_SEPARATOR $_filename$params['exp_time']);
                }
            }
        }
    }

    return 
$_res;
}

/* 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.0156 ]--