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


Viewing file:     AddAcc.php (9.6 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
session_start
();
 if (
session_is_registered("valid_user"))
 {
$Username $valid_user;
include(
"../../../include/FunctionDB.php");
include(
"../../../include/Function.php");
//include("header.php");
ConnectDB();
  
$sql ="SELECT * FROM personal_tb WHERE Username='$Username'";
  
$result mysql_query($sql) or die("Cannot Select").mysql_error();
  
$rs mysql_fetch_array($result);
  
$rs[Research_code] = mysql_insert_id();
?>

<html>
<head>
<title>Form insert accessories</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<link rel="stylesheet" href="../css/cart4.css" type="text/css">
<link href="../../../css/style1.css" rel="stylesheet" type="text/css">
<script language="JavaScript" type="text/JavaScript">
<!--
  function browse()
{
form1.Imag1.src = form1.Img1.value;
}
<!--
 function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->
function chk(c){
if (c.checked){
document.all.Prob1.disabled=false;
document.all.Prob2.disabled=false;
document.all.Prob3.disabled=false;
document.all.Prob4.disabled=false;
}
else{
document.all.Problem.disabled=false;
}
}
</script>
</head>
<body bgcolor="#FFFFFF">
<table width="85%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td> <table width="102%" border="0" align="center" cellpadding="0" cellspacing="1">
        <tr >
          <td colspan="4" bgcolor="#0066CC"><img src="../../../Image/Acclogo.jpg" width="550" height="71"></td>
        </tr>
        <tr > 
          <td width="25%" background="../../../Image/barm.jpg" class="table"> 
            <div align="center"><strong><font size="2" face="Tahoma"><a href="../../menu_teacher.php" class="g">กลับหน้าหลัก</a></font></strong></div></td>
          <td width="25%" background="../../../Image/barm.jpg" class="table"> 
            <div align="center"><strong><font size="2" face="Tahoma"><a href="EditAccList.php?Teacher_code=<? echo  $rs[Teacher_code?>" class="g">แก้ไข</a></font></strong></div></td>
          <td width="25%" background="../../../Image/barm.jpg" class="table"> 
            <div align="center"><strong><font size="2" face="Tahoma"><a href="AccList.php?Teacher_code=<? echo $rs[Teacher_code]?>" class="g">แสดง</a></font></strong></div></td>
          <td width="25%" background="../../../Image/barm.jpg" class="table"> 
            <div align="center"><strong><font size="2" face="Tahoma"><a href="../../../logout.php" class="g">Logout</a></font></strong></div></td>
        </tr>
      </table></td>
  </tr>
</table>
<table width="85%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<table width="85%" border="0" align="center" cellpadding="0" cellspacing="1" style="border:1px solid gray">
  <tr bgcolor="#CCCCFF" > 
    <td height="25" colspan="3"> <div align="center"><font color="#000000" size="4" face="Tahoma"><strong>เพิ่มข้อมูลรายการครุภัณฑ์</strong></font></div></td>
  </tr>
  <form name="form1" method="POST" action="InsertAcc.php"
  enctype="multipart/form-data">
    <tr bgcolor="#EEEEEE"> 
      <td width="26%" height="20" bgcolor="#EEEEEE"> <div align="center"><font size="2" face="Tahoma">รหัส</font></div></td>
      <td width="2%"><div align="center"><font color="#FF0000" size="4" face="Tahoma"><strong>*</strong></font></div></td>
      <td width="72%"><font color="#006633" size="2" face="Tahoma"> 
        <input name="Acc_code" type="text" id="Acc_code" size="30">
        </font></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td bgcolor="#EEEEEE"><div align="center"><font size="2" face="Tahoma">ชื่ออุปกรณ์/ยี่ห้อ</font></div></td>
      <td bgcolor="#EEEEEE"><div align="center"><font color="#FF0000" size="4" face="Tahoma"><strong>*</strong></font></div></td>
      <td bgcolor="#EEEEEE"><input name="Acc_name" type="text" id="Acc_name" size="50"></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td bgcolor="#EEEEEE"> <div align="center"><font size="2" face="Tahoma">ชนิด</font></div></td>
      <td bgcolor="#EEEEEE"> <div align="center"><font color="#FF0000" size="4" face="Tahoma"><strong>*</strong></font></div></td>
      <td bgcolor="#EEEEEE"><select name="Acc_type_code" id="Acc_type_code" class="input1">
          <option></option>
          <?php
               $strSQL1 
"SELECT * FROM accessories_type_tb ";
            
$result1 mysql_query($strSQL1);
                 while( 
$rs1 mysql_fetch_array($result1))
                {
                echo
"<option value=\"$rs1[Acc_type_code]\" ><b>$rs1[Acc_type]- $rs1[Acc_Etype]</b></option>\n";
                }
               
            
?>
        </select> <a href="type/AddAccType.php"><img src="../../../Image/ico489.gif" width="16" height="15" border="0" alt="เพิ่มชนิดครุภัณฑ์"></a></td>
    </tr>
    <tr bgcolor="#EEEEEE">
      <td height="22" bgcolor="#EEEEEE"><div align="center"><font size="2" face="Tahoma">หลักสูตร</font></div></td>
      <td>&nbsp;</td>
      <td bgcolor="#EEEEEE"><select name="Course_code" id="Course_code" class="input1">
        <?php
            $strSQL2 
"SELECT * FROM course_tb Order by  Course_code='Course_code'"
            
$result2 mysql_query($strSQL2);
                 while( 
$rs2 mysql_fetch_array($result2))
                {
                echo
"<option value=\"$rs2[Course_code]\" ><b>$rs2[Course_name]</b></option>\n";
                }
            
CloseDB();  
          
?>
      </select></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td height="22" bgcolor="#EEEEEE"> <div align="center"><font size="2" face="Tahoma">ที่จัดเก็บ</font></div></td>
      <td><div align="center"><font color="#FF0000" size="4" face="Tahoma"><strong>*</strong></font></div></td>
      <td bgcolor="#EEEEEE"> <input name="Store" type="text" class="input" id="Store" size="50"> 
      </td>
    </tr>
    <tr bgcolor="#eeeeee"> 
      <td> <div align="center"><font size="2" face="Tahoma">บริษัท Contact</font></div></td>
      <td>&nbsp;</td>
      <td><textarea name="Contact" cols="40" rows="5" id="Contact"></textarea></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td height="22" bgcolor="#EEEEEE"> <div align="center"><font size="2" face="Tahoma">ปี 
          พ.ศ.ที่ซื้อ</font></div></td>
      <td>&nbsp;</td>
      <td><font color="#000000" size="2" face="Tahoma">วันที่ 
        <select name="mDate" id="mDate" class="select" onkeypress="return handleEnter(this, event)" >
          <? getDay1to31();?>
        </select>
        เดือน 
        <select name="mMonth" id="mMonth" class="select" onkeypress="return handleEnter(this, event)">
          <? getThaiMonth();?>
        </select>
        ปี พ.ศ. 
        <input name="mYear" type="text" id="mYear" size="10" class="input" >
        </font> </td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td height="22" bgcolor="#EEEEEE"><div align="center"><font size="2" face="Tahoma">ราคา</font></div></td>
      <td>&nbsp;</td>
      <td><input name="Price" type="text" class="input" id="Price" size="20"> 
        <font size="2" face="Tahoma">บาท</font></td>
    </tr>
    <tr bgcolor="#eeeeee"> 
      <td><div align="center"><font size="2" face="Tahoma">ประวัติการซ่อม</font></div></td>
      <td>&nbsp;</td>
      <td><font size="2" face="Tahoma"> 
        <textarea name="Fix_History" cols="40" rows="5" id="Fix_History"></textarea>
        </font></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td height="22" bgcolor="#EEEEEE"> <div align="center"><font size="2" face="Tahoma">งบประมาณการซ่อมแซม</font></div></td>
      <td>&nbsp;</td>
      <td> <input name="Fix_budget" type="text" class="input" id="Fix_budget" size="20">  
        <font size="2" face="Tahoma"> บาท</font></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td bgcolor="#EEEEEE"><div align="center"><font size="2" face="Tahoma"> 
          สถานะการใช้งาน</font></div></td>
      <td><font color="#FF0000" size="4" face="Tahoma"><strong>*</strong></font></td>
      <td><font size="2" face="Tahoma"> 
        <input type="radio" name="Status" value="ใช้งาน">
        ใช้งาน 
        <input type="radio" name="Status" value="ว่าง">
        ว่าง 
        <input type="radio" name="Status" value="ชำรุด">
        ชำรุด 
        <input type="radio" name="Status" value="จำหน่ายออก">
        จำหน่ายออก </font></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td bgcolor="#EEEEEE"> <div align="center"><font size="2" face="Tahoma">สถิติการใช้งาน</font> 
        </div></td>
      <td>&nbsp;</td>
      <td> <textarea name="Statistic" cols="40" id="Statistic"></textarea></td>
    </tr>
    <tr bgcolor="#EEEEEE">
      <td bgcolor="#EEEEEE"><div align="center"><font size="2" face="Tahoma">บันทึกซ่วยจำ</font></div></td>
      <td>&nbsp;</td>
      <td><textarea name="Description" cols="50" rows="5" id="Description"></textarea></td>
    </tr>
    <tr bordercolor="#CCCCCC" bgcolor="#ECF5FF">
      <td height="101" nowrap bordercolor="#CCCCCC"><div align="center"><font color="#003366" size="2" face="Tahoma">รูปภาพ</font></div></td>
      <td bordercolor="#CCCCCC">&nbsp;</td>
      <td nowrap bordercolor="#99CCFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="63%" height="100"><div align="center">
                <label><input name="Img1" type="file" id="Img1" onChange=browse()>
            </div></td>
            <td width="37%"><div align="center"><img name="Imag1" src=" " width="109" height="94"></div></td>
          </tr>
      </table></td>
    </tr>
    <tr bgcolor="#CCCCFF" > 
      <td height="25" colspan="3"> <div align="center"> 
             <input type="submit" name="Submit" value=" บันทึก " class="button">
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
          <input type="reset" name="Submit2" value="เริ่มใหม่" class="button">
        </div></td>
    </tr>
  </form>
</table>
</body>
</html>
<?php 
    
}
else
{
      echo
"<meta http-equiv=\"refresh\" content=\"3;URL=FrmLogin.php\">\n";
       echo
"Please Login ";
}
?>

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