!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/mis2222/application/views/eregis/   drwxrwxrwx
Free 50.65 GB of 127.8 GB (39.63%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     v_std_showResStudy.php (7.61 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
$row_std 
= isset($qu_std) ? $qu_std->row() : NULL;
?>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
        <td>
            <div align="center"><span class="h" style="color:<?php echo $font_color_err;?>">ผลการศึกษา</span>
            <table width="100%" border="0" cellspacing="1" cellpadding="1" align="center">
                <tr>
                    <td><br /></td>
                </tr>
<?php
                
if (!isset($err_msg)) {
?>
                <tr>
                    <td><table class="szone">
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone"><span><b>รหัสนักศึกษา</b></span></td>
                            <td><span><?php echo getval('stdCode'$row_std);?></span></td>
                            <td rowspan="5" align="center" valign="absmiddle"><img src="<?php echo base_url().$this->config->item('rg_upload_pictureStd').getval('sdtPicturePath'$row_std);?>" align="absmiddle" border="1" width="100" height="115" />
                            </td>
                        </tr>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone"><span><b>ชื่อ-นามสกุลนักศึกษา</b></span></td>
                            <td><span><?php echo getval('prefixName'$row_std).getval('stdName'$row_std).' '.getval('stdSurname'$row_std);?></span></td>
                        </tr>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone"><span><b>หลักสูตร</b></span></td>
                            <td><span><?php echo explodeSquare(getval('curName'$row_std));?></span></td>
                        </tr>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone"><span><b>ระดับการศึกษา</b></span></td>
                            <td><span><?php echo getval('levelName'$row_std);?></span></td>
                        </tr>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone"><span><b>ชั้นปีที่</b></span></td>
                            <td><span><?php echo getval('syCode'$row_std);?></span></td>
                        </tr>
                    </table></td>
                </tr>
                <tr>
                    <td><br /></td>
                </tr>
<?php
                $i 
0;
                if (
$rs) {
                    foreach (
$rs as $key => $val) {
                        
$row_ssm $rs[$key]['qu_ssm']->row();
?>
                <tr>
                    <td><table width="100%" background="<?php echo base_url().$this->config->item('rg_bg_back1');?>">
                        <tr>
                            <td><table class="headCol">
                                <tr bgcolor="<?php echo $this->config->item('rg_head_tb_color');?>">
                                    <td colspan="5" align="center"><span class="h" style="color:<?php echo $font_color_err;?>"><b>ปีการศึกษา / ภาคการศึกษา :
                                    <?php echo $row_ssm->ssmAcY.' / '.$row_ssm->tmCode;?></b></span></td>
                                </tr>
                                <tr>
                                    <th class="stdCodeCol"><span>รหัสรายวิชา</span></th>
                                    <th><span>ชื่อรายวิชา</span></th>
                                    <th class="stdCodeCol"><span>หน่วยกิต</span></th>
                                    <th class="editCol"><span>กลุ่ม</span></th>
                                    <th class="editCol"><span>เกรด</span></th>
                                </tr>
<?php
                            $i 
0;
                            foreach (
$rs[$key]['rs_rd']->result() as $row_rd) {
                                echo 
"<tr>";
?>
                                    <td class="indent"><span><?php echo $row_rd->crsCode;?></span></td>
                                    <td class="indent"><span><?php echo explodeSquare($row_rd->crsName);?></span></td>
                                    <td align="center"><span><?php echo $row_rd->crsUnit;?></span></td>
                                    <td align="center"><span><?php echo $row_rd->coSection;?></span></td>
                                    <td align="center"><span><?php if($row_rd->rfBalance == 0){
                                                                            if(
$row_rd->coDeclareStatus == 'Y'){
                                                                               echo 
$row_rd->rdGrade;
                                                                            }else{ 
                                                                                echo 
''
                                                                            }
                                                                        }else{
                                                                            echo 
'<font color="red">*rf</font>';
                                                                        }
                                                            
?></span></td>
                                </tr>
<?php
                                $i
++;
                            }    
// end foreach

                            
if (isset($rs[$key]['kssFlag'])) {
?>
                                <tr>
                                    <td colspan="5" align="center"><span style="color:<?php echo $font_color_err;?>"><?php echo $rs[$key]['kssFlag'];?></span></td>
                                </tr>
<?php
                            
}
?>
                                <tr bgcolor="<?php echo $this->config->item('rg_head_tb_headCol');?>">
                                    <td colspan="2" align="right"><span><b>รวมหน่วยกิต</b></span></td>
                                    <td align="center"><span><?php echo number_format($rs[$key]['sumCrAt']);?></span></td>
                                    <td colspan="2"></td>
                                </tr>
                            </table></td>
                        </tr>
                        <tr>
                            <td><table class="szone">
                                <tr>
                                    <td height="22" width="70%"><span><b>เกรดเฉลี่ยรายภาคการศึกษา</b></span></td>
                                    <td height="22" width="10%"><span>: <?php echo number_format($row_ssm->ssmGPA2);?></span></td>
                                    <td height="22" width="20%"></td>
                                </tr>
                                <tr>
                                    <td height="22"><span><b>หน่วยกิตรายภาคการศึกษา</b></span></td>
                                    <td height="22"><span>: <?php echo $row_ssm->ssmCreditAttempt;?></span></td>
                                    <td height="22"><span>หน่วยกิต</span></td>
                                </tr>
                                <tr>
                                    <td height="22"><span><b>หน่วยกิตที่ผ่านรายภาคการศึกษา</b></span></td>
                                    <td height="22"><span>: <?php echo $row_ssm->ssmCreditSatisfy;?></span></td>
                                    <td height="22"><span>หน่วยกิต</span></td>
                                </tr>
                                <tr>
                                    <td height="22"><span><b>หน่วยกิตที่ผ่านและคิดเกรดรายภาคการศึกษา</b></span></td>
                                    <td height="22"><span>: <?php echo $row_ssm->ssmCreditPoint;?></span></td>
                                    <td height="22"><span>หน่วยกิต</span></td>
                                </tr>
                                <tr>
                                    <td height="22"><span><b>เกรดเฉลี่ยสะสม</b></span></td>
                                    <td height="22"><span>: <?php echo number_format($row_ssm->ssmGPAX2);?></span></td>
                                </tr>
                                <tr>
                                    <td height="22"><span><b>หน่วยกิตสะสม</b></span></td>
                                    <td height="22"><span>: <?php echo $row_ssm->ssmSumCreditAttempt;?></span></td>
                                    <td height="22"><span>หน่วยกิต</span></td>
                                </tr>
                                <tr>
                                    <td height="22"><span><b>หน่วยกิตที่ผ่านสะสม</b></span></td>
                                    <td height="22"><span>: <?php echo $row_ssm->ssmSumCreditSatisfy;?></span></td>
                                    <td height="22"><span>หน่วยกิต</span></td>
                                </tr>
                                <tr>
                                    <td height="22"><span><b>หน่วยกิตที่ผ่านและคิดเกรดสะสม</b></span></td>
                                    <td height="22"><span>: <?php echo $row_ssm->ssmSumCreditPoint;?></span></td>
                                    <td height="22"><span>หน่วยกิต</span></td>
                                </tr>
                            </table></td>
                        </tr>
                            <tr>
                            <td><table class="szone">
                            <font color="red" size="2">*rf หมายถึง ค้างชำระค่าใช้จ่ายลงทะเบียนเรียน โปรดติดต่อเจ้าหน้าที่</span>
                            </td>
                            </tr>
                    </table></td>
                </tr>
                <tr>
                    <td><br /></td>
                </tr>
<?php
                            $i
++;
                        }
                    } else {
?>
                <tr>
                    <td align="center"><font color="<?php //echo $GLOBALS["COLOR_FONT_3"];?>" size="2">** ไม่ปรากฏรายการผลการศึกษาในฐานข้อมูล **</span></td>
                </tr>
<?php    
                    
}
                } else {
?>
                <tr>
                    <td align="center"><font size="2" color="<?php //echo $GLOBALS["COLOR_FONT_3"];?>"><?php echo $err_msg;?></span></td>
                </tr>
<?php
                
}    // end if search
?>
            </table><br></div>
        </fieldset><br></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.0103 ]--