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


Viewing file:     showDeAssessment.php (15.8 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?
($crstype==)?$officerId $oWnerId:$officerId $teacher;
$courseId $course;
$classId $class;

echo 
'$acadYear = '.$acadYear.'<br>';
echo 
'$semester = '.$semester.'<br>';
echo 
'$crstype = '.$crstype.'<br>';
echo 
'$typeReport = '.$typeReport.'<br>';
echo 
'$course = '.$course.'<br>';
echo 
'$teacher = '.$teacher.'<br>';
echo 
'$class = '.$class.'<br>';
echo 
'$officerId = '.$officerId.'<br>';
echo 
'$oWnerId = '.$oWnerId.'<br>';
?>

<table width="100%" border="0" align="left" cellpadding="0" cellspacing="0">
    <tr>
        <td>
      <div align="center"> 
        <form name="pc2" method="post" action="<?php echo $PHP_SELF;?>">
          <table width="100%" align="left" border="0" cellpadding="0" cellspacing="1">
            <tr> 
              <td width="100%" height="85"><br>
                <table width="100%" border="0" align="left" cellpadding="1" cellspacing="1" bordercolor="<?php echo $GLOBALS["COLOR_BORDER_TABLE_1"];?>">
                  <tr><td colspan="6">&nbsp;</td></tr>
                  <tr> 
                    <td height="22" colspan="6"> <fieldset>
                      <legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_6"]; ?>"><img src="../picture/bookmark.gif" width="12" height="13" border="0"> <? if($officerId== 0) echo "ผลการประเมินภาพรวมรายวิชา (รวมอาจารย์ผู้สอนทุกคน)"; else if($officerId 0) echo "ผลการประเมินรายวิชาแยกตามอาจารย์ผู้สอน"?></font></legend>
                      <table width="95%" align="left" >

                        <tr><td colspan="2">&nbsp;</td></tr>
<?
                        $i
=0;
// หาแบบประเมินภาพรวม flag=5 และ flag=6
                        
if($crstype==&& $typeReport <= 4){  
                            if(
$typeReport== || $courseId!='%' ){
                                
$officerId $oWnerId;
/*-----------ค้นหาแบบประเมินที่ได้กำหนดไว้  แบบที่ผูกกับรายวิชาทั้งหมดลักษณะประเมินภาพรวมรายวิชา (flag =5)--*/
                            
$flag5=0;
                            
$oDA->SearchByAcadSemFlag($acadYear,$semester,'5');
                            while(
$oDA->GetRecord()){
                                
$oAF->SearchByKey($oDA->assid);
                                
$oAF->GetRecord();

                                
//ตรวจสอบว่าแบบประเมินมีส่วนที่ 1 เป็นคำถามปลายปิดหรือไม่  
                                
$oSA = new SectionAll($oCA);
                                
$minSeqSA $oSA->getMinSeqSA($oAF->assid);
                                
$oSA->SearchSectionRQidByAssidSeq($oAF->assid,$minSeqSA);
                                
$oSA->GetRecord();

                                if(
$oSA->sectionRQid  0) {
                                    
$startpage 1;
                                }else{
                                    
$startpage 2;
                                }

                                
//echo "<br> oSA->sectionRQid = ".$oSA->sectionRQid;
                                
                                
if(($i%2) == 0)
                                    echo 
'<tr>';
                                else
                                    echo 
'<tr bgcolor="'.$GLOBALS["COLOR_BG_TD_4"].'">';
                        
?>
                            <!-- <tr> --> 
                              <td width="" valign="top"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"> 
                                <!--ถ้า sectionRQid > 0 ที่ sequence = 1 แสดงว่าส่วนแรกเป็นคำถามปลายปิด--->
                                <img src="../picture/icoa14.jpg"  border ="0" align="top"></font>                          </td>
                              <td width=""><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><a href = "#" onClick = "sendPage('<? echo $startpage ?>','defineid=<? echo $oDA->defineid ?>&assid=<? echo $oDA->assid ?>&programId=<?=$programId;?>&classId=<? echo $classId ?>&courseId=<? echo $courseId ?>&officerId=<? echo $officerId ?>&acadYear=<? echo  $acadYear ?>&semester=<? echo $semester ?>&ttId=0')">
                                <?  if($oAF->maintopic == ""){ echo $oAF->nameAss." <img src = \"../picture/warn.png\" border = \"0\">"; }else{ echo $oAF->maintopic; } echo "&nbsp;" ?>
                                (ระหว่างวันที่ <? echo abbreDate(splitDateDb2($oDA->startDate,'/')); ?> 
                                - <? echo abbreDate(splitDateDb2($oDA->endDate,'/'));  ?>)</a></font></td>
                            </tr>
                            <?php
                                $i
++;
                                
$flag5 1;
                            } 
//end while oDA

/*-----ค้นหาแบบประเมินที่ได้กำหนดไว้   แบบที่ผูกกับบางรายวิชา รูปแบบประเมินภาพรวมรายวิชา (flag =6)---*/
                            
$flag6=0;
                            
$oDA->SearchByAcadSemFlag($acadYear,$semester,'6');
                            while(
$oDA->GetRecord()){
                                
$oHC->RSByDefineidCourseIdClassIdOwnerId($oDA->defineid,$courseId,$classId,$oWnerId);
                                if(
$oHC->GetRecord() == '1'){        
                                    
$oAF->SearchByKey($oDA->assid);
                                    
$oAF->GetRecord();

                                    
//ตรวจสอบว่าแบบประเมินมีส่วนที่ 1 เป็นคำถามปลายปิดหรือไม่  
                                    
$oSA = new SectionAll($oCA);
                                    
$minSeqSA $oSA->getMinSeqSA($oAF->assid);
                                    
$oSA->SearchSectionRQidByAssidSeq($oAF->assid,$minSeqSA);
                                    
$oSA->GetRecord();

                                    if(
$oSA->sectionRQid  0) {
                                        
$startpage 1;
                                    }else{
                                        
$startpage 2;
                                    }
                                if((
$i%2) == 0)
                                    echo 
'<tr>';
                                else
                                    echo 
'<tr bgcolor="'.$GLOBALS["COLOR_BG_TD_4"].'">';
                        
?>
                                <!-- <tr>  -->
                                  <td valign="top"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"> 
                                    <!--ถ้า sectionRQid > 0 ที่ sequence = 1 แสดงว่าส่วนแรกเป็นคำถามปลายปิด--->
                                    <img src="../picture/icoa14.jpg"  border ="0" align="top"></font> </td>
                                  <td width=""><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><a href = "#" onclick = "sendPage('<? echo $startpage ?>','defineid=<? echo $oDA->defineid ?>&assid=<? echo $oDA->assid ?>&programId=<?=$programId;?>&classId=<? echo $classId ?>&courseId=<? echo $courseId ?>&officerId=<? echo $officerId ?>&acadYear=<? echo  $acadYear ?>&semester=<? echo $semester ?>&ttId=0')">
                                    <?  if($oAF->maintopic == ""){ echo $oAF->nameAss." <img src = \"../picture/warn.png\" border = \"0\">"; }else{ echo $oAF->maintopic; } echo "&nbsp;" ?>
                                    (ระหว่างวันที่ <? echo abbreDate(splitDateDb2($oDA->startDate,'/')); ?> 
                                    - <? echo abbreDate(splitDateDb2($oDA->endDate,'/'));  ?>
                                    <font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"> 
                                    * </font></a></font> </td>
                                </tr>
                                <?php
                                    $flagHold6 
1;    
                                } 
//end if oHC  
                                
$i++;                
                            } 
// end while oDA

                            
}//end if($typeReport== 4 || $courseId!=% )

                        
}//end if $crstype!=2

// หาแบบประเมินอาจารย์ flag=0 และ flag=1,8
                        
if($typeReport && ($courseId != '%' || $officerId != '%' || $typeReport == 9)){

                            
$flag0=0;
/*-----ค้นหาแบบประเมินอาจารย์ที่ได้กำหนดไว้   แบบที่ผูกกับรายวิชาทั้งหมด (flag =0)-------*/
                            
$oDA->SearchByAcadSemFlag($acadYear,$semester,'0');
                            while(
$oDA->GetRecord()){
                                
$oAF->SearchByKey($oDA->assid);
                                
$oAF->GetRecord();

                                
//ตรวจสอบว่าแบบประเมินมีส่วนที่ 1 เป็นคำถามปลายปิดหรือไม่  w
                                
$oSA = new SectionAll($oCA);
                                
$minSeqSA $oSA->getMinSeqSA($oAF->assid);
                                
$oSA->SearchSectionRQidByAssidSeq($oAF->assid,$minSeqSA);
                                
$oSA->GetRecord();

                                if(
$oSA->sectionRQid  0) {
                                    
$startpage 1;
                                }else{
                                    
$startpage 2;
                                }
                                
//echo "<br> oSA->sectionRQid = ".$oSA->sectionRQid;
                                
                                
if(($i%2) == 0)
                                    echo 
'<tr>';
                                else
                                    echo 
'<tr bgcolor="'.$GLOBALS["COLOR_BG_TD_4"].'">';
                        
?>
                            <!-- <tr> --> 
                              <td width="15" valign="top"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"> 
                                <!--ถ้า sectionRQid > 0 ที่ sequence = 1 แสดงว่าส่วนแรกเป็นคำถามปลายปิด--->
                                <img src="../picture/icoa15.jpg"  border ="0" align="top"></font>                          </td>
                              <td width="555"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><a href = "#" onClick = "sendPage('<? echo $startpage ?>','defineid=<? echo $oDA->defineid ?>&assid=<? echo $oDA->assid ?>&programId=<?=$programId;?>&classId=<? echo $classId ?>&courseId=<? echo $courseId ?>&officerId=<? echo $officerId?>&officerCode=<? echo $officerCode ?>&acadYear=<? echo  $acadYear ?>&semester=<? echo $semester ?>&ttId=0')">
                                <?  if($oAF->maintopic == ""){ echo $oAF->nameAss." <img src = \"../picture/warn.png\" border = \"0\">"; }else{ echo $oAF->maintopic; } echo "&nbsp;" ?>
                                (ระหว่างวันที่ <? echo abbreDate(splitDateDb2($oDA->startDate,'/')); ?> 
                                - <? echo abbreDate(splitDateDb2($oDA->endDate,'/'));  ?>)</a></font>                          </td>
                            </tr>
                            <?php
                                $i
++;
                                
$flag1 1;
                        } 
//end while oDA

/*----- ค้นหาแบบประเมินอาจารย์ที่ได้กำหนดไว้  แบบที่ผูกกับบางรายวิชา(flag =8) teacher --------*/
                        
$oDA->SearchByAcadSemFlag($acadYear,$semester,'8');
                        while(
$oDA->GetRecord()){
                                
$oAF->SearchByKey($oDA->assid);
                                
$oAF->GetRecord();

                                
//ตรวจสอบว่าแบบประเมินมีส่วนที่ 1 เป็นคำถามปลายปิดหรือไม่  
                                
$oSA = new SectionAll($oCA);
                                
$minSeqSA $oSA->getMinSeqSA($oAF->assid);
                                
$oSA->SearchSectionRQidByAssidSeq($oAF->assid,$minSeqSA);
                                
$oSA->GetRecord();

                                if(
$oSA->sectionRQid  0) {
                                    
$startpage 1;
                                }else{
                                    
$startpage 2;
                                }
                                if(
$crstype==1){
                                    
$oHC->RSByDefineidCourseIdClassIdOfficerId($oDA->defineid,$courseId,$classId,$officerId);
                                }else{
                                    
$oHC->RSByDefineidCourseIdClassIdOwnerId($oDA->defineid,$courseId,$classId,$oWnerId);
                                }
                                if(
$oHC->GetRecord()){    
                                    
$flagHold=1;
                        
?> 
                            <tr>
                              <td valign="top">
                                <!--ถ้า sectionRQid > 0 ที่ sequence = 1 แสดงว่าส่วนแรกเป็นคำถามปลายปิด--->
                                <img src="../picture/icoa15.jpg"  border ="0" align="top"></td>
                              <td width="555"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">
                              <? if($oDA->isPreAssess) { ?>
                                        <img src="../picture/book1.gif" width="22" height="18" border="0" />
                                <? }else {?>
                                        <img src="../picture/open_book1.jpg" width="22" height="18" border="0" />
                                <? ?>
                                <a href = "#" onclick = "sendPage('<?=$startpage ?>','defineid=<?=$oDA->defineid ?>&assid=<?=$oDA->assid ?>&programId=<?=$programId;?>&classId=<?=$classId ?>&courseId=<?= $courseId ?>&officerId=<?=$officerId?>&officerCode=<?=$officerCode ?>&acadYear=<?=$acadYear ?>&semester=<?=$semester ?>&ttId=0')">
                                <? if($oAF->maintopic == ""){ echo $oAF->nameAss." <img src = \"../picture/warn.png\" border = \"0\">"; }else{ echo $oAF->maintopic; } echo "&nbsp;" ?>
                                (ระหว่างวันที่ <? echo abbreDate(splitDateDb2($oDA->startDate,'/')); ?> 
                                - <? echo abbreDate(splitDateDb2($oDA->endDate,'/'));  ?>)* </a>
                                </font> </td>
                            </tr>
                            <?php    
                            
// end if oHC
                            
$i++;                
                        } 
// end while oDA
                        
}//end if($typeReport)
?>
                        <? if($i==0) { ?>
                        <tr> 
                          <td colspan="2" align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"];?>">** 
                            ไม่ปรากฏรายการแบบประเมินที่ใช้ประเมินในปีการศึกษา 
                            <?php echo $acadYear ?>/<?php echo $oSse->semesterName;?></font><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">&nbsp;</font><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"];?>">**</font></td>
                        </tr>
                        <? ?>
                      </table>
                      <p>&nbsp;</p>
                      </fieldset></td>
                  </tr>
                </table>
                
              </td>
            </tr>
            <tr> 
              <td height="2"></td>
            </tr>
            <tr> 
              <td height="40"><br>
                <input type="button" name="back22" value="ย้อนกลับ" onClick=" location.href = 'showDeTeachCourseAfSearch.php?courseId=<? echo $courseId ?>&acd=<? echo $acadYear ?>&sem=<? echo $semester ?>'">
                <input type="button" name="back2" value="กลับสู่หน้าหลัก" onClick=" location.href = 'index.php?mm=1'"></td>
            </tr>
          </table>
        </form>
      </div>
    </td>
</tr>
<tr>
    <td>
      <table width="89%" border="0">
        <tr> 
          <td width="10%" height="27"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"];?>"><strong>หมายเหตุ 
            : </strong></font></td>
          <td width="90%" colspan="2"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"];?>">เลือกรายงานและคลิกที่รายการแบบประเมินเพื่อดูผลการประเมิน</font></td>
        </tr>
        <tr> 
          <td height="27">&nbsp;</td>
          <td colspan="2"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"];?>">* 
            หมายถึง แบบประเมินเฉพาะรายวิชา</font></td>
        </tr>
      </table>
    </td>
</tr>
</table>

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