!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 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:     v_processCalGradeCurriculum.php (4.9 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
$rowCur 
= (isset($qu_cur) && $qu_cur!=NULL) ? $qu_cur->row() : NULL;
$rowSy  = (isset($qu_sy) && $qu_sy!=NULL) ? $qu_sy->row() : NULL;
$rowTm  = (isset($qu_tm) && $qu_tm!=NULL) ? $qu_tm->row() : NULL;
?>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
        <td>
            <div align="center">
            <table width="100%" cellpadding="1" cellspacing="1">
                <tr>
                    <td colspan="10" align="center"><span class="h error">ผลการประมวลผลเกรดนักศึกษาตามหลักสูตร</span></td>
                </tr>
                <tr>
                    <td><br /></td>
                </tr>
                <tr>
                    <td colspan="10"><table class="szone">
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone2">ชื่อหลักสูตร</td>
                            <td colspan="3"><?php echo $rowCur->curName;?></td>
                        </tr>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone2">ปีการศึกษาที่เข้า</td>
                            <td><?php echo $adY;?></td>
                            <td class="coltd_szone">ชั้นปีนักศึกษา</td>
                            <td><?php echo $rowSy->syCode;?></td>
                        </tr>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone2">ปีการศึกษาที่จะประมวลผล</td>
                            <td><?php echo $acY;?></td>
                            <td class="coltd_szone2">ภาคการศึกษาที่จะประมวลผล</td>
                            <td><?php echo $rowTm->tmCode;?></td>
                        </tr>
                    </table></td>
                </tr>
                <tr>
                    <td><br /></td>
                </tr>
<?php
                
if(isset($err_msg)) {
?>
                <tr>
                    <td height="22" colspan="10" align="center"><font size="3" color="<?php echo $font_color_err;?>"><b><?php echo $err_msg;?></b></font></td>
                </tr>
                <tr>
                    <td height="22" colspan="10"></td>
                </tr>
<?php
                
}
?>
                <tr>
                    <td colspan="10"><table class="headCol">
                        <tr>
                            <th rowspan="2" class="stdCodeCol">รหัสนักศึกษา</th>
                            <th rowspan="2">ชื่อ-นามสกุล</th>
                            <th colspan="3">SEM-CR.</th>
                            <th rowspan="2">GPA</th>
                            <th colspan="3">CUM-CR.</th>
                            <th rowspan="2">GPAX</th>
                        </tr>
                        <tr>
                            <th width="7%">ลง</th>
                            <th width="7%">ผ่าน</th>
                            <th width="7%">คิดเกรด</th>
                            <th width="7%">ลง</th>
                            <th width="7%">ผ่าน</th>
                            <th width="7%">คิดเกรด</th>
                        </tr>
<?php
                $i 
0;
                if(
$rs_std->num_rows()) {
                    foreach(
$rs_std->result() as $row) {
                        echo 
"<tr onmouseover=\"bgColor='".$tr_color_even."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">";
?>
                            <td height="22" align="center"><font size="2"><?php echo $row->stdCode;?></font></td>
                            <td class="indent" onClick="sendPost(
                            'form_detail',
                            {'stdId':<?php echo $row->stdId;?>,
                             'acY':<?php echo $acY;?>,
                             'tmId':<?php echo $rowTm->tmId;?>},
                             '<?php echo site_url($this->config->item('rg_folder').'popup/showRd');?>',{})"><span class="hand"><?php echo $row->prefixName.$row->stdName.' '.$row->stdSurname;?></span></td>
                            <td align="center"><font size="2"><?php echo number_format($row->ssmCreditAttempt);?></font></td>
                            <td align="center"><font size="2"><?php echo number_format($row->ssmCreditSatisfy);?></font></td>
                            <td align="center"><font size="2"><?php echo number_format($row->ssmCreditPoint);?></font></td>
                            <td align="center"><font size="2"><?php echo number_format($row->ssmGPA,2);?></font></td>
                            <td align="center"><font size="2"><?php echo number_format($row->ssmSumCreditAttempt);?></font></td>
                            <td align="center"><font size="2"><?php echo number_format($row->ssmSumCreditSatisfy);?></font></td>
                            <td align="center"><font size="2"><?php echo number_format($row->ssmSumCreditPoint);?></font></td>
                            <td align="center"><font size="2"><?php echo number_format($row->ssmGPAX,2);?></font></td>
                        </tr>
<?php
                        $i
++;
                    }
                } else {
?>
                        <tr>
                            <td height="22" colspan="10" align="center"><font size="2" color="<?php echo $font_color_err;?>">** ไม่ปรากฏรายชื่อนักศึกษาดังกล่าว **</font></td>
                        </tr>
<?php
                
}
?>
                    </table></td>
                </tr>
                <tr>
                    <td><br></td>
                    <td colspan="9" align="right"><font size="2">รวม <?php echo $i;?> รายการ</font></td>
                </tr>
                <tr>
                    <td height="22" colspan="10"></td>
                </tr>
            </table></div>
        <br><font size="2" color="<?php echo $font_color_err;?>"><b>หมายเหตุ : </b>นำเมาส์ไปคลิกที่ชื่อ-นามสกุลนักศึกษา เพื่อดูรายวิชาที่ลงทะเบียนเรียน</font></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.0129 ]--