!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:     server_collations.php (2.71 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/* $Id: server_collations.php,v 2.15 2005/12/07 12:58:14 cybot_tm Exp $ */
// vim: expandtab sw=4 ts=4 sts=4:

/**
 * requirements
 */
if ( ! defined'PMA_NO_VARIABLES_IMPORT' ) ) {
    
define'PMA_NO_VARIABLES_IMPORT'true );
}
require_once(
'./libraries/common.lib.php');

/**
 * Does the common work
 */
require('./libraries/server_common.inc.php');


/**
 * Displays the links
 */
require('./libraries/server_links.inc.php');


/**
 * Displays the sub-page heading
 */
echo '<h2>' "\n"
   
'    ' . ($GLOBALS['cfg']['MainPageIconic']
    ? 
'<img class="icon" src="'$GLOBALS['pmaThemeImage'] . 's_asci.png" alt="" />'
    
'')
   . 
'' $strCharsetsAndCollations "\n"
   
'</h2>' "\n";


/**
 * Checks the MySQL version
 */
if (PMA_MYSQL_INT_VERSION 40100) {
    
// TODO: Some nice Message :-)
    
require_once('./libraries/footer.inc.php');
}


/**
 * Includes the required charset library
 */
require_once('./libraries/mysql_charsets.lib.php');


/**
 * Outputs the result
 */
echo '<div id="div_mysql_charset_collations">' "\n"
   
'<table class="data">' "\n"
   
'<tr><th>' $strCollation '</th>' "\n"
   
'    <th>' $strDescription '</th>' "\n"
   
'</tr>' "\n";

$i 0;
$table_row_count count($mysql_charsets) + $mysql_collations_count;

foreach (
$mysql_charsets as $current_charset) {
    if (
$i >= $table_row_count 2) {
        
$i 0;
        echo 
'</table>' "\n"
           
'<table class="data">' "\n"
           
'<tr><th>' $strCollation '</th>' "\n"
           
'    <th>' $strDescription '</th>' "\n"
           
'</tr>' "\n";
    }
    
$i++;
    echo 
'<tr><th colspan="2" align="right">' "\n"
       
'        ' htmlspecialchars($current_charset) . "\n"
       
. (empty($mysql_charsets_descriptions[$current_charset])
            ? 
''
            
'        (<i>' htmlspecialchars(
                
$mysql_charsets_descriptions[$current_charset]) . '</i>)' "\n")
       . 
'    </th>' "\n"
       
'</tr>' "\n";
    
$odd_row true;
    foreach (
$mysql_collations[$current_charset] as $current_collation) {
        
$i++;
        echo 
'<tr class="'
           
. ( $odd_row 'odd' 'even' )
           . (
$mysql_default_collations[$current_charset] == $current_collation
                
' marked'
                
'')
           . (
$mysql_collations_available[$current_collation] ? '' ' disabled')
           . 
'">' "\n"
           
'    <td>' htmlspecialchars($current_collation) . '</td>' "\n"
           
'    <td>' PMA_getCollationDescr($current_collation) . '</td>' "\n"
           
'</tr>' "\n";
        
$odd_row = !$odd_row;
    }
}
unset(
$table_row_count);
echo 
'</table>' "\n"
   
'</div>' "\n";

require_once(
'./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.0079 ]--