!C99Shell v. 1.0 pre-release build #16!

Software: Apache/2.0.54 (Fedora). PHP/5.0.4 

uname -a: Linux mina-info.me 2.6.17-1.2142_FC4smp #1 SMP Tue Jul 11 22:57:02 EDT 2006 i686 

uid=48(apache) gid=48(apache) groups=48(apache)
context=system_u:system_r:httpd_sys_script_t
 

Safe-mode: OFF (not secure)

/home/mnnews/public_html/login/phpmyadmin/libraries/   drwxr-xr-x
Free 4.55 GB of 27.03 GB (16.83%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     file_listing.lib.php (2.37 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* Functions for listing directories
*
* @package PhpMyAdmin
*/
if (! defined('PHPMYADMIN')) {
    exit;
}

/**
* Returns array of filtered file names
*
* @param string $dir        directory to list
* @param string $expression regular expression to match files
*
* @return array   sorted file list on success, false on failure
*/
function PMA_getDirContent($dir, $expression = '')
{
    if (!
file_exists($dir) || !($handle = @opendir($dir))) {
        return
false;
    }

    
$result = array();
    if (
substr($dir, -1) != '/') {
        
$dir .= '/';
    }
    while (
$file = @readdir($handle)) {
        if (
is_file($dir . $file)
            && (
$expression == '' || preg_match($expression, $file))
        ) {
            
$result[] = $file;
        }
    }
    @
closedir($handle);
    
asort($result);
    return
$result;
}

/**
* Returns options of filtered file names
*
* @param string $dir        directory to list
* @param string $extensions regular expression to match files
* @param string $active     currently active choice
*
* @return array   sorted file list on success, false on failure
*/
function PMA_getFileSelectOptions($dir, $extensions = '', $active = '')
{
    
$list = PMA_getDirContent($dir, $extensions);
    if (
$list === false) {
        return
false;
    }
    
$result = '';
    foreach (
$list as $val) {
        
$result .= '<option value="' . htmlspecialchars($val) . '"';
        if (
$val == $active) {
            
$result .= ' selected="selected"';
        }
        
$result .= '>' . htmlspecialchars($val) . '</option>' . "\n";
    }
    return
$result;
}

/**
* Get currently supported decompressions.
*
* @return string separated list of extensions usable in PMA_getDirContent
*/
function PMA_supportedDecompressions()
{
    global
$cfg;

    
$compressions = '';

    if (
$cfg['GZipDump'] && @function_exists('gzopen')) {
        if (!empty(
$compressions)) {
            
$compressions .= '|';
        }
        
$compressions .= 'gz';
    }
    if (
$cfg['BZipDump'] && @function_exists('bzopen')) {
        if (!empty(
$compressions)) {
            
$compressions .= '|';
        }
        
$compressions .= 'bz2';
    }
    if (
$cfg['ZipDump'] && @function_exists('gzinflate')) {
        if (!empty(
$compressions)) {
            
$compressions .= '|';
        }
        
$compressions .= 'zip';
    }

    return
$compressions;
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 1.0 pre-release build #16 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0039 ]--