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


Viewing file:     server_binlog.php (3.96 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/* $Id: server_binlog.php,v 2.9 2006/01/17 17:02:29 cybot_tm Exp $ */
// vim: expandtab sw=4 ts=4 sts=4:

require_once('./libraries/common.lib.php');

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


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


/**
 * Displays the sub-page heading
 */
echo '<h2>' "\n"
   
. ($cfg['MainPageIconic'] ? '<img src="' $pmaThemeImage 's_process.png" width="16" height="16" border="0" hspace="2" align="middle" alt="" />' '' )
   . 
'    ' $strBinaryLog "\n"
   
'</h2>' "\n";

if (!isset(
$log)) {
    
$log '';
}

/**
 * Display log selector.
 */
if (count($binary_logs) > 1) {
    echo 
'<form action="server_binlog.php" method="get">';
    echo 
PMA_generate_common_hidden_inputs();
    echo 
'<fieldset><legend>';
    echo 
$strSelectBinaryLog;
    echo 
'</legend><select name="log">';
    foreach (
$binary_logs as $name) {
        echo 
'<option value="' $name '"' . ($name == $log ' selected="selected"' '') . '>' $name '</option>';
    }
    echo 
'</select>';
    echo 
'</fieldset>';
    echo 
'<fieldset class="tblFooters">';
    echo 
'<input type="submit" value="' $strGo '" />';
    echo 
'</fieldset>';
    echo 
'</form>';
}


$sql_query 'SHOW BINLOG EVENTS';
if (!empty(
$log)) {
    
$sql_query .= ' IN \'' $log '\'';
}

/**
 * Sends the query and buffers the result
 */
$serverProcesses = array();
$res PMA_DBI_query($sql_query);
while (
$row PMA_DBI_fetch_assoc($res)) {
    
$serverProcesses[] = $row;
}
@
PMA_DBI_free_result($res);
unset(
$res);
unset(
$row);

PMA_showMessage($GLOBALS['strSuccess']);


/**
 * Displays the page
 */
?>
<table border="0" cellpadding="2" cellspacing="1">
    <tr>
        <td colspan="6" align="center"><a href="./server_binlog.php?<?php echo $url_query . (!empty($log) ? '&amp;log=' htmlspecialchars($log) : '' ) . (empty($full) ? '&amp;full=1' ''); ?>" title="<?php echo empty($full) ? $strShowFullQueries $strTruncateQueries?>"><img src="<?php echo $pmaThemeImage 's_' . (empty($full) ? 'full' 'partial'); ?>text.png" width="50" height="20" border="0" alt="<?php echo empty($full) ? $strShowFullQueries $strTruncateQueries?>" /></a></td>
    </tr>
    <tr>
        <th>&nbsp;<?php echo $strBinLogName?>&nbsp;</th>
        <th>&nbsp;<?php echo $strBinLogPosition?>&nbsp;</th>
        <th>&nbsp;<?php echo $strBinLogEventType?>&nbsp;</th>
        <th>&nbsp;<?php echo $strBinLogServerId?>&nbsp;</th>
        <th>&nbsp;<?php echo $strBinLogOriginalPosition?>&nbsp;</th>
        <th>&nbsp;<?php echo $strBinLogInfo?>&nbsp;</th>
    </tr>
<?php
$useBgcolorOne 
TRUE;
foreach (
$serverProcesses as $value) {
    if (empty(
$full) && PMA_strlen($value['Info']) > $GLOBALS['cfg']['LimitChars']) {
        
$value['Info'] = PMA_substr($value['Info'], 0$GLOBALS['cfg']['LimitChars']) . '...';
    }
?>
    <tr>
        <td bgcolor="<?php echo $useBgcolorOne $cfg['BgcolorOne'] : $cfg['BgcolorTwo']; ?>">&nbsp;<?php echo $value['Log_name']; ?>&nbsp;</td>
        <td bgcolor="<?php echo $useBgcolorOne $cfg['BgcolorOne'] : $cfg['BgcolorTwo']; ?>" align="right">&nbsp;<?php echo $value['Pos']; ?>&nbsp;</td>
        <td bgcolor="<?php echo $useBgcolorOne $cfg['BgcolorOne'] : $cfg['BgcolorTwo']; ?>">&nbsp;<?php echo $value['Event_type']; ?>&nbsp;</td>
        <td bgcolor="<?php echo $useBgcolorOne $cfg['BgcolorOne'] : $cfg['BgcolorTwo']; ?>" align="right">&nbsp;<?php echo $value['Server_id']; ?>&nbsp;</td>
        <td bgcolor="<?php echo $useBgcolorOne $cfg['BgcolorOne'] : $cfg['BgcolorTwo']; ?>" align="right">&nbsp;<?php echo isset($value['Orig_log_pos']) ? $value['Orig_log_pos'] : $value['End_log_pos']; ?>&nbsp;</td>
        <td bgcolor="<?php echo $useBgcolorOne $cfg['BgcolorOne'] : $cfg['BgcolorTwo']; ?>">&nbsp;<?php echo htmlspecialchars($value['Info']); ?>&nbsp;</td>
    </tr>
<?php
    $useBgcolorOne 
= !$useBgcolorOne;
}
?>
<?php
?>
</table>
<?php


/**
 * Sends the footer
 */
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.0112 ]--